Jump to content

Help with problem - mousemove being weird.


Popeye1
 Share

Recommended Posts

If UBound($ucheck)>1 Then

ToolTip(" blah blah ", 400, 3)

Sleep(1000)

ExitLoop

Else

ToolTip(" blah blah ", 400, 3)

$coord = PixelSearch( 783, 175, 1003, 611, 0x733C9E, 10 )

If Not @error Then

; pixel found - do ur thing

;MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1])

MouseClick("right", $coord[0] , $coord[1])

Sleep(1000)

MouseClick("left", $coord[0] , $coord[1] +23)

Sleep(1000)

MouseClick("right", $coord[0] , $coord[1])

Sleep(1000)

MouseMove("right", $coord[0] , $coord[1] +100) ; <-- problem is here, this worked as MouseClick but stopped working as MouseMove

Sleep(1000)

MouseClick("right", $coord[0] -100 , $coord[1] +100)

EndIf

Sleep(300)

EndIf

I have a problem with this code, it all worked fine until I changed MouseMove("right", $coord[0] , $coord[1] +100). This used to be a MouseClick, but I don't want it to click, I just want it to move the mouse there. My issue is the mouse is not moved to the correct position when using the mousemove function, instead it just moves to the botton left of the screen, every time. I tried adding MouseCoordMode 0 and that didn't fix the problem either. Can someone help?

Edited by Popeye1
Link to comment
Share on other sites

Hint: Since you're moving, not clicking now, you don't want to specify the "right" button anymore, right?

:mellow:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...