We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use SetWindowHookEx() to create a KeyboardHook to ensure all keys sent by keybd_event() are received.
SetWindowHookEx()
Pseudo-code:
Function KeybdHook(key, ...) For iKey = 1 to len(keys) if not keys(iKey).received then if key.code = keys(iKey).code then key.received = true exit for end if exit for end if next KeybdHook = CallNextHookEx(...) End Function Function SendKeysEvent(..., Optional bWaitForRetrieval as boolean) if bWaitForRetrieval then iHook = SetWindowHookEx(ActiveWnd, WH_KEYBOARD, AddressOf KeybdHook) For iKey = 1 to len(keys) keybd_event(keys(iKey)) next if bWaitForRetrieval then While not keys(len(keys)).received DoEvents Wend Call ClearWindowHookEx(iHook) end if End Function
See also:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Use
SetWindowHookEx()
to create a KeyboardHook to ensure all keys sent by keybd_event() are received.Pseudo-code:
See also:
The text was updated successfully, but these errors were encountered: