newbie01 Posted May 16, 2009 Share Posted May 16, 2009 I want to move mouse to search the coordinates which mouse turn to a cog-wheel icon and click at this coordinates.Thanks! Link to comment Share on other sites More sharing options...
MrMitchell Posted May 16, 2009 Share Posted May 16, 2009 So your mouse cursor turns into a cog wheel and when it does you want it to click? What script do you have so far? Link to comment Share on other sites More sharing options...
newbie01 Posted May 16, 2009 Author Share Posted May 16, 2009 i have created my script but it dont run extractly (when mouse move to the coord with this color, but it dont click immediately - mouse move one time again and click) Here's my code: while 1 $mpos = MouseGetPos() sleep(500) MouseMove($mpos[0]+30,$mpos[1]) sleep(1000) ;if PixelSearch($mpos[0] - 70, $mpos[1] - 70,$mpos[0]+70,$mpos[1]+70,0xFFFF8A) <> @error Then mouseclick("left",$mpos[0],$mpos[1]) sleep(7000) mouseclick("left",$mpos[0],$mpos[1]) sleep(7000) mouseclick("left",$mpos[0],$mpos[1]) sleep(4000) EndIf if $mpos[0] = 1023 Then mousemove($mpos[0]-640,$mpos[1]+30) endif WEnd Could U so me my error??? 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