Jump to content
Sign in to follow this  


Recommended Posts

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

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)
 Func Terminate()

Share this post

Link to post
Share on other sites

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...