Jump to content
Sign in to follow this  
cyclogenisis

MouseMove

Recommended Posts

cyclogenisis

Hi Everyone!

Are the coordinates based on pixels, percentage? Is there a sure way of sending the cursor to the exact same spot on screen despite resolution differences?

Thank you.

Share this post


Link to post
Share on other sites
HiNoTora

pixels, and if u change ur reso, then cordinates wont work no more.

Mouseclick("left", 250, 350, 2, 0)

i would try pixel search

HotKeySet("{ESC}", "Terminate"); for exit program, pres esc
while 1
$coord = PixelSearch(0, 0, 1247, 858, 0xxxxxxx); 0xxxxxxx= Your pixel colour code
If Not @error Then
    MouseClick("primary", $coord[0], $coord[1], 1, 0)
 EndIf
 wend 
 Func Terminate()
    Exit
EndFunc

Share this post


Link to post
Share on other sites
Jfish

You can specify this behavior:

AutoItSetOption ( "option" [, param] )

MouseCoordMode Sets the way coords are used in the mouse functions, either absolute coords or coords relative to the current active window:
0 = relative coords to the active window
1 = absolute screen coordinates (default)
2 = relative coords to the client area of the active window

Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt

Share this post


Link to post
Share on other sites
cyclogenisis

AuTID. Using it to click the time on the bottom right, resolutions for users could vary.

Share this post


Link to post
Share on other sites
cyclogenisis

I guess i could have an if statement to find the resolution of the host and do a pixel search based on the resolution...

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  

×