[solved] if window exists do A else B
Posted: Tue Jun 19, 2007 9:58 pm
Hi,
just trying to figure out how to do this (guess it's in and I just can't find it):
If test.exe is running it should be closed, if it isn't it should be started.
I can make the "if" check work, but can't figure out how to do the "else" part.
Thanks in advance,
Lars
EDIT: just figured it out: create 2 macros (1+2) with the same event, and one without (3) an event. set (1) to find window and make it jump to (3). if the window isn't found (2) is run. don't forget to enable (1) and (2) in (3).
just trying to figure out how to do this (guess it's in and I just can't find it):
If test.exe is running it should be closed, if it isn't it should be started.
I can make the "if" check work, but can't figure out how to do the "else" part.
Thanks in advance,
Lars
EDIT: just figured it out: create 2 macros (1+2) with the same event, and one without (3) an event. set (1) to find window and make it jump to (3). if the window isn't found (2) is run. don't forget to enable (1) and (2) in (3).