Hello i need help with understanding the out put of the "GetAsyncKeyState" API function.
Please help me with this:
KeyIsDown(Holding): i think this is -32767
Key Was Pressed once
Key is released.
Thanks
Printable View
Hello i need help with understanding the out put of the "GetAsyncKeyState" API function.
Please help me with this:
KeyIsDown(Holding): i think this is -32767
Key Was Pressed once
Key is released.
Thanks
At the time this expression is evaluated, if the spacebar is being pressed, you will get the message box. What are you trying to do exactly?Code:If GetAsyncKeyState(Keys.Space) = True Then
MsgBox("Spacebar was pressed")
End If
Maybe you should provide a full and clear description of what you're actually trying to achieve so we can advise the best way to achieve it.
GetAsyncKeyState is intended to tell you the state of a keyboard key at the time you call it. It is often used inappropriately when what the user actually wants is to be notified when a key is depressed or released.