Delta01 Posted September 11, 2007 Share Posted September 11, 2007 (edited) Hi.. I've had a read through the help file, but couldn't find anything on it. I want to know if/how you can do a statement like the one that follows. (that actually works) ProcessExists("firefox.exe") <> ProcessExists("firefox.exe") Basically, i want to know which statement to use if something doesn't exist, not ProcessWaitClose, or ProcessWait. So, if there is no firefox open then I can tell the script to do something. Eg. ProcessNOTExist("firefox.exe") so if the process doesn't exist i can tell it to do something. - I know ProcessNOTExist is not a function. Sorry for the noob question, but I can't find an answer.. Edited September 11, 2007 by Delta01 Link to comment Share on other sites More sharing options...
RobertK Posted September 11, 2007 Share Posted September 11, 2007 Try this: If Not ProcessExists("FireFox.exe") Then RunWait("C:\Program Files\Firefox\firefox.exe") EndIf [font="Verdana"]I've gone to find myself. If I get back before I return, please keep me here.[/font] Link to comment Share on other sites More sharing options...
dbzfanatic Posted September 11, 2007 Share Posted September 11, 2007 You could always do that or tell your script to do something if it's not open then tell it to do something if it is, basically the same thing RobertK said but a little different. If ProcessExists("Firefox.exe") Then do something Else do something else Endif Quick sidenote, I hope you're not hoping to do much firefox automation because autoit doesn't have any support for it. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
Delta01 Posted September 11, 2007 Author Share Posted September 11, 2007 You could always do that or tell your script to do something if it's not open then tell it to do something if it is, basically the same thing RobertK said but a little different. If ProcessExists("Firefox.exe") Then do something Else do something else Endif Quick sidenote, I hope you're not hoping to do much firefox automation because autoit doesn't have any support for it. Oh, no no. I was just an example. Thanks guys/gals 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