Jump to content

Newbie needs help with a loop


dontask
 Share

Recommended Posts

Im have learned a great deal here and the help files but Im having issues with a loop. I tried using While and Wend and have had no luck. This is the part of the script I need to repeat if the process is still running

If ProcessExists("firefox.exe") then
MsgBox(0,"Running","Looks like firefox is running.Please close firefox so we can back up your bookmarks and settings, then click OK!")
Else
EndIf

If a user clicks OK I want it to loop back up and check again.

Then continue with the rest of the script when firefox.exe is not found.

Link to comment
Share on other sites

While 1
If ProcessExists("firefox.exe") then
MsgBox(0,"Running","Looks like firefox is running.Please close firefox so we can back up your bookmarks and settings, then click OK!")
Else
ExitLoop
EndIf
Wend

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...