coderrr Posted October 26, 2016 Share Posted October 26, 2016 I wrote a script that finds the coordinates of a pixel to click, but I found that the coordinates of the mouse pointer are different. Ho can i click on the coordinates that i found? Sorry if I made grammar mistakes. Link to comment Share on other sites More sharing options...
coderrr Posted October 26, 2016 Author Share Posted October 26, 2016 For example my resolution is 1920x1080, but if If use MouseGetPos() to obtain the coordinates of the bottom right corner i get 1535, 863. Link to comment Share on other sites More sharing options...
AutoBert Posted October 26, 2016 Share Posted October 26, 2016 Read about Opt("MouseCoordMode", 1) ;1=absolute, 0=relative, 2=client Opt("PixelCoordMode", 1) ;1=absolute, 0=relative, 2=client and Quote MouseGetPos Remarks See MouseCoordMode for relative/absolute position settings. If relative positioning, numbers may be negative. Link to comment Share on other sites More sharing options...
coderrr Posted October 26, 2016 Author Share Posted October 26, 2016 I already tried that but it unfortunatly doesn't solve the problem Link to comment Share on other sites More sharing options...
coderrr Posted October 26, 2016 Author Share Posted October 26, 2016 Coordinates seem to be scaled by a factor of about 1,25. How can I edit a previous post? Link to comment Share on other sites More sharing options...
coderrr Posted October 26, 2016 Author Share Posted October 26, 2016 Ok, sorry for the triple post. The problem was caused by Windows 10 Display Scaling, which was set to 100% instead of 150%. Link to comment Share on other sites More sharing options...
Bert Posted October 26, 2016 Share Posted October 26, 2016 is there a reason why you simply can't access the control and not use pixel searching? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
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