Have a look at the code below...
Syntax
Event = WindowEvent()
Description
Check if an event has occured on any of the opened windows.
Code: Select all
AddKeyboardShortcut(0,#PB_Shortcut_Return,5)
Code: Select all
WindowEvent()
If EventMenuID()=5 And shootball(closestball)=1 And dist<20
MessageRequester("message","define the desired direction and press space")
stage=2
EndIf
The problem: When the return key is pressed and released, EventMenuID() will still return 5, instead of 0...
Its not really a bug, its in conformance with the description of the WindowEvent() command... but is it possible to reset the window event history?
Dunno if the explanation of my problem is clear... ?