cyclogenisis Posted October 29, 2013 Posted October 29, 2013 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.
HiNoTora Posted October 29, 2013 Posted October 29, 2013 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
AutID Posted October 29, 2013 Posted October 29, 2013 You want to use it on a window or on Desktop? https://iblockify.wordpress.com/
Jfish Posted October 30, 2013 Posted October 30, 2013 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
cyclogenisis Posted October 30, 2013 Author Posted October 30, 2013 AuTID. Using it to click the time on the bottom right, resolutions for users could vary.
cyclogenisis Posted October 30, 2013 Author Posted October 30, 2013 I guess i could have an if statement to find the resolution of the host and do a pixel search based on the resolution...
Jfish Posted October 30, 2013 Posted October 30, 2013 Are you just trying to run the clock by clicking on it? If so, would this do the trick? ShellExecute("Timedate.cpl") Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now