Sign in to follow this  
Followers 0
Delta01

Not existing....

4 posts in this topic

#1 ·  Posted (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 by Delta01

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0