Jump to content

MouseMove


Recommended Posts

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
Link to comment
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

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