dudenyc Posted August 20, 2006 Posted August 20, 2006 Hello all, I've been having troubles with IF... NOT ... ELSE statement.For Example:**********************************While (1)$pos = MouseGetPos()If $pos[0] NOT 840 Then ; <---------- problem MouseCLick("Left", 840, 540, 1, 1) Sleep(100)EndIfWEnd********************************How to write a proper IF ... NOT statement?I've tried:If $pos[0] NOT = 840 Then .... ; <-------- Did not workAslo tried If NOT $pos[0] = 840 Then .... ; <-------- Did not workAny comment is appreciated Thank 4 your helps.
Developers Jos Posted August 20, 2006 Developers Posted August 20, 2006 If $pos[0] <> 840 Then oÝ÷ ÚÚºÚ"µÍYÝ ÌÍÜÜÖÌHH H[ 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.
Examiner Posted August 20, 2006 Posted August 20, 2006 1 nice try for your first post 2 to place code on a posts use [ autoit] ; no spaces ; paste code [/ autoit] ; no spaces 3 example While (1) $pos = MouseGetPos() ToolTip("L " & $pos[0] & " R " & $pos[1], 5, 5) If $pos[0] <> 840 Then MouseClick("Left", 840, 540, 1, 1) EndIf Sleep(100) WEnd 4 be sure to get SciTE editor... it helps alot 8)
dudenyc Posted August 20, 2006 Author Posted August 20, 2006 Thanks 4 your quick replies guys. Kudos to JdeB and Examiner
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