eKolin Posted May 24, 2016 Share Posted May 24, 2016 So, basicly i want to detect GUI AND use it's coordinates only. I hope that my image will explain it good enough. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 24, 2016 Moderators Share Posted May 24, 2016 (edited) @eKolin I am guessing you are looking to use Mouse functions. Look at MouseCoordMode in the help file to set it relative to the active window. Or, you can give a better explanation of what you're trying to accomplish and we can help you get away from all the messy Mouse-work altogether Edited May 24, 2016 by JLogan3o13 eKolin 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
eKolin Posted May 24, 2016 Author Share Posted May 24, 2016 @JLogan3o13 My goal is to use the interface coordinates instead of whole monitor coordinates = I can move the GUI without a worry that the coordinates will be incorrect. Thanks in advance Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 24, 2016 Moderators Share Posted May 24, 2016 I understand your goal; my question is why must you use Mouse functions on the GUI (is this a GUI you've created?). If you get the ID of the control you want to interact with, and use the Control* commands, it won't matter where the GUI is moved to "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
eKolin Posted May 24, 2016 Author Share Posted May 24, 2016 @JLogan3o13 My bad, i wasn't familiar with this function, basicly what i wanted was: Opt(MouseCoordMode,0) I don't really understand the difference between parameters 0 and 2 (probbably because i lack english skills) Can you explain please? 0 = relative coords to the active window 1 = (default) absolute screen coordinates 2 = relative coords to the client area of the active window Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 24, 2016 Moderators Share Posted May 24, 2016 @eKolin as I tell my son who is just beginning his journey into scripting - sometimes it is better to do it yourself than to have someone tell you. Mock up a script and try out the difference between 0 and 2; it should become pretty apparent to you. eKolin 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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