PDA

View Full Version : WaitMouseDown or WaitTime


kovitch
05-17-2012, 10:45 AM
Hi,

If I use:

yield viztask.waitTime(10)
yield viztask.waitMouseUp(viz.MOUSEBUTTON_LEFT)

the application will wait 10 seconds and then it will expect a left mouse click to continue. It's sequencial.

How can I do something like:

if time_is_up or mouse_clicked:
do_stuff()

using viztask?

Best regards,

Alex.

farshizzo
05-17-2012, 10:52 AM
Have a look at the viztask.waitAny command in the documentation. It should do exactly what you want.

kovitch
05-17-2012, 10:53 AM
You're right, it does! Thanks. :)