I'm writing a very small procedure to insert a pause and only a click or a key pressed should release the pause.
This is handy to verify a situation, before continuing.
The left/right click are working fine, but how do I get the event for 'any' key pressed?
Code: Select all
Procedure zWait()
Protected.i Event
Repeat
Event = WaitWindowEvent(1)
Select Event
Case #PB_Event_LeftClick, #PB_Event_RightClick;, #PB_Event_KeyDown
Break
EndSelect
ForEver
EndProcedure
