Sign in to follow this  
Followers 0
newbie01

help about mouse code

3 posts in this topic

I want to move mouse to search the coordinates which mouse turn to a cog-wheel icon and click at this coordinates.

Posted Image

Thanks!

Share this post


Link to post
Share on other sites



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?

Share this post


Link to post
Share on other sites

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???

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0