Jump to content

help about mouse code


Recommended Posts

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...