ahha Posted January 25 Share Posted January 25 Is there a way to programmatically determine the state of MouseCoordMode in AutoIt? I've got a function that is called that must have Opt("MouseCoordMode", 1) 1=absolute, however when I'm done I'd like to return the MouseCoordMode to what the calling program was using so I don't mess it up. Yes, I know I've written the program, however different functions within the program use different values for MouseCoordMode and rather than using some Global to keep track I'm wondering if I can determine the state of MouseCoordMode programmatically. Thanks for any hints. Link to comment Share on other sites More sharing options...
ioa747 Posted January 25 Share Posted January 25 ConsoleWrite(Opt("MouseCoordMode") & @CRLF) ahha 1 Link to comment Share on other sites More sharing options...
Solution ahha Posted January 25 Author Solution Share Posted January 25 @ioa747Thanks I had no idea calling it would return the current state. Local $x = Opt("MouseCoordMode") works fine. I need to read the help file more carefully. ioa747 1 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