Sardith Posted May 12, 2006 Share Posted May 12, 2006 (edited) Few things, this is my second big script.. First time using GUI's so... Anyways When I click my buttons it doesn't do the "Else" it doesn't bring up the Msgbox.. Could someone please help me? Edited May 12, 2006 by Sardith [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
Developers Jos Posted May 12, 2006 Developers Share Posted May 12, 2006 Anyways When I click my buttons it doesn't do the "Else" it doesn't bring up the Msgbox.. Could someone please help me?and the window doesn't exists ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Sardith Posted May 12, 2006 Author Share Posted May 12, 2006 Eh? The Msg box doesn't create when there's no client running. Run the program, it should make a message box with out the game Fear running in the background. [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
Developers Jos Posted May 12, 2006 Developers Share Posted May 12, 2006 Eh? The Msg box doesn't create when there's no client running. Run the program, it should make a message box with out the game Fear running in the background.Did you check the value of $WinH ?It will return "" when the window doesn exists..So then the WinExists("") will always be true ..... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Sardith Posted May 12, 2006 Author Share Posted May 12, 2006 (edited) Im sorta lost, Value? The Help file didn't really help either.. Edit: Got it thanks. Edited May 12, 2006 by Sardith [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
Developers Jos Posted May 12, 2006 Developers Share Posted May 12, 2006 (edited) Im sorta lost, Value? The Help file didn't really help either..Try debugging your script by putting consolewrite() or msgbox() statements in your source to verify the content of variables.As said this statement will set $WinH to ""Dim $WinH = WinGetHandle( "Fear")then when you do :If WinExists($WinH) Thenyou actually do test:If WinExists("") ThenI leave the rest to you to sort out.... Edited May 12, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Sardith Posted May 12, 2006 Author Share Posted May 12, 2006 Yeah, had it figured out 5mins back. Silly mistake even when I'm trying to keep my code very neat. [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/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