BluhBlah Posted September 24, 2009 Share Posted September 24, 2009 How do i add this: IF it finds pixel search xxxxxx then it will change loop and use that1 till it fins pixel search xxxxxxx and so on, Thanks alot Dim $stop = 0 HotKeySet("{F4}", "toggel") HotKeySet("{F5}", "off") While 1 If $stop = 1 Then If WinActive("Warcraft III") Then $coord = PixelSearch(146, 85, 146, 85, 0xD6593B) If Not @error Then Send ("B") Sleep (4000) Send ("1y7") Send ("{ENTER}") EndIf EndIf EndIf WEnd Func toggel() If $stop = 0 Then $stop = 1 Else $stop = 0 EndIf EndFunc Func off() Exit EndFunc Link to comment Share on other sites More sharing options...
JohnOne Posted September 24, 2009 Share Posted September 24, 2009 Perhaps a for next loop would better suit your purpose. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
BluhBlah Posted September 24, 2009 Author Share Posted September 24, 2009 whats that 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