Jump to content

Recommended Posts

Posted

The script below works fine with IE but not with Firefox if, when run, a Firefox window is already open.

In this case the program doesn't wait for firefox to be closed to send the "Good Bye" message

Does someone know why ?

$sNavigateur=RegRead("HKEY_CLASSES_ROOT\HTTP\shell\open\command","")

$aNavigateur=StringSplit($sNavigateur,'-')

$sNavigateur=$aNavigateur[1]

RunWait($sNavigateur & " http://www.google.com")

;this message should pop up when we close browser

MsgBox(0,"Test","Good Bye ...")

Posted

From the help file (RunWait()):

Some programs will appear to return immediately even though they are still running; these programs spawn another process - you may be able to use the ProcessWaitClose function to handle these cases.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...