Jason786 Posted June 8, 2010 Share Posted June 8, 2010 (edited) Hey, basically I am new and want to see if there is a way that I can find a pixel on the page, click 6 times and then close? Edited June 8, 2010 by Jason786 Link to comment Share on other sites More sharing options...
JohnOne Posted June 8, 2010 Share Posted June 8, 2010 Helpfile > MouseMove() Helpfile > MouseClick() 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...
Jason786 Posted June 8, 2010 Author Share Posted June 8, 2010 Helpfile > MouseMove() Helpfile > MouseClick() This didn't do anything, should it do something? Basically I wanted it to click the pixel when I pressed a HotKeySet("{a}", "_Start") HotKeySet("{s}", "_Pause") HotKeySet("{d}", "_Exit") Global $Active = 0 While 1 If $Active = 1 Then $SquarePosition = PixelSearch(0, 0, 0, 0, 0x941616) If IsArray($SquarePosition) Then MouseMove($SquarePosition) Then MouseClick("left") EndIf EndIf WEnd Func _Start() $Active = 1 EndFunc ;==>_Start Func _Pause() $Active = 0 EndFunc ;==>_Pause Func _Exit() Exit EndFunc ;==>_Exit 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