09-07-2015, 09:44 AM
I have a dialog in compiled .exe format.
It has keyboard shortcuts ALT+Z and ALT+X registered to it.
What I want is that the moment the user presses ALT+Z or ALT+X the code waits for the user to release ANY of the modfier keys and then continue execute code.
To make my request more clear, I have the following in my simple dialog code:
If user presses ALT+X the compiled qm exe immediately sends the sendkeys commands defined under the subfunctions.
The problem is that the user could still be pressing ALT, meaning the text "test" is not send but ALT+t , ALT+e, ALt+s, ALT+t.
So I want to wait until the user has released all the modfier keys. (Or released all keys, no keyboard commands beeing send from the user and then send the keyboard commands from the qm exe).
I do not know if it possible in exe.
It has keyboard shortcuts ALT+Z and ALT+X registered to it.
What I want is that the moment the user presses ALT+Z or ALT+X the code waits for the user to release ANY of the modfier keys and then continue execute code.
To make my request more clear, I have the following in my simple dialog code:
If user presses ALT+X the compiled qm exe immediately sends the sendkeys commands defined under the subfunctions.
The problem is that the user could still be pressing ALT, meaning the text "test" is not send but ALT+t , ALT+e, ALt+s, ALT+t.
So I want to wait until the user has released all the modfier keys. (Or released all keys, no keyboard commands beeing send from the user and then send the keyboard commands from the qm exe).
I do not know if it possible in exe.