Jump to content

Recommended Posts

Posted

for some reason, i cant figure this out

opt ("wintitlematchmode",2)

if not winexists("title") or if not winexists("title2") then

eat a cookie

endif

see??? im trying to detect 2 windows.. if NONE exist.. then do something

whats the best way to do this. my syntax is in error

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Posted

Also change OR to AND.

If Not WinExists('title') And Not WinExists('title2') Then
; eat a cookie
EndIf

Think about it logically.

Or: I want to eat a cookie if this window or that window doesn't exist.

And: I want to eat a cookie if this window and that window don't exist.

Posted

mmmm cookies

mmmmmmm code

mmmmmmmmmmm beer

thanks

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

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
×
×
  • Create New...