ckelsoe Posted July 23, 2013 Posted July 23, 2013 Hi all, I am migrating some scripts from AutoHotKey to AutoIT. In AHK the mouse coordinates are specific to the active window. In AutoIt the coordinates seems to be based on the screen and not the window. I am unable to find a way to duplicate the behavior of the AHK MouseClick which is based on the active window and not the screen. I found in the AutoIt Window Info app how to change the basis of the coordinates to Window via the Coord Mode option. How do I get that to apply to MouseClick in code? Thanks
Solution E1M1 Posted July 23, 2013 Solution Posted July 23, 2013 See help file: AutoItSetOption Opt("CaretCoordMode", 1) ;1=absolute, 0=relative, 2=client ckelsoe 1 edited
ckelsoe Posted July 23, 2013 Author Posted July 23, 2013 As a side note I looked into using the ControlClick function. However the web page controls does not have an ID, name, etc. I do see the X / Y of the control. So I am back to using the X,Y values which so far seem to be based on the screen and not the active window for the MouseClick.
ckelsoe Posted July 23, 2013 Author Posted July 23, 2013 Thanks E1M1 - I had not found that function yet.
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