Jump to content

Plesae Help with a script using showPopUp


Recommended Posts

I want to use the function ShowPopUp to call some external programs.

I have something like this(vbscript):

 

============================

option explicit

dim myDVBViewer

dim myOSD

 

sub main()

Set myDVBViewer = GetObject(, "DVBViewerServer.DVBViewer")

Set myOSD = myDVBViewer.OSD

 

call myOSD.showPopUp("Heading","OPTION1,OPTION2",TRUE)

 

aaa = myOSD.showPopUp.selectedindex

if aaa = 0 then

msgbox ("OK")

end if

 

end sub

main

==============================

 

 

But it doesn't work...

Anyone who can help me?

Thank you.

Link to comment

============================
option explicit
dim myDVBViewer
dim myOSD
dim selectedindex

sub main()
Set myDVBViewer = GetObject(, "DVBViewerServer.DVBViewer")
Set myOSD = myDVBViewer.OSD

selectedindex = myOSD.showPopUp("Heading","OPTION1,OPTION2",TRUE)

Select Case selectedindex

case 0
msgbox ("OK")
End Select

end sub
main
==============================

 

Try this :)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...