Zohar Posted August 13, 2021 Share Posted August 13, 2021 Hi all I have this function that I use for years, that checks if all Modifier Keys are up: Func KeyBoard_WaitForModifierKeysUp() While(_IsPressed("10") Or _IsPressed("11") Or _IsPressed("12") Or _IsPressed("5B") Or _IsPressed("5C")) ;Shift,Ctrl,Alt,LWin,RWin Sleep(50) WEnd EndFunc It uses the _IsPressed() function, and calls it 5 times on each run. While it works very well, I am curious If it's possible to achieve the same functionality, via another function, with only a single call. For example, a function that returns a bit-set, with 1 it for every modifier key, and then you test the bits.. I assume there isn't a built-in AutoIt function that does it, so maybe there's a Windows API function that can do it? Thank you Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now