Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wait for Either/Or key Strokes
#8
Quote:Do you think it is possible to have a wait for any of the interactions:

Mouse-Click
KeyPress
Specific onscreen Button/element Click

Another way is to wait for different things in different threads.

Code:
Copy      Help
int+ g_stopwait=0
mac "wait_for_mouse"
mac "wait_for_key"
wait 0 V g_stopwait

Function wait_for_key
Code:
Copy      Help
wait 0 K
g_stopwait=1

Function wait_for_mouse
Code:
Copy      Help
wait 0 M
g_stopwait=1


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)