Simbo0o Posted April 1, 2011 Share Posted April 1, 2011 Here's the deal...I have a program that closes it self. I want to make a script that opens the program if closed. Link to comment Share on other sites More sharing options...
bwochinski Posted April 1, 2011 Share Posted April 1, 2011 This ought to get you started... While True $programPID = ProcessExists("program.exe") If $programPID == 0 Then Run("C:\Program Files\program\program.exe") EndIf Sleep(1000) WEnd Link to comment Share on other sites More sharing options...
November Posted April 1, 2011 Share Posted April 1, 2011 Hi there, while 1 if Not ProcessExists("notepad.exe") Then run("notepad.exe") EndIf sleep (500) wend Just a way to do. Next time spend a little time searching in the great and usefull AutoIT Help, you'll be suprised what you can learn there. Cheers. Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now