News:

HOT TIP! Enable the History Window in the main UI when trying to problem solve. It provides a handy log of what is happening. Roll over lines in the History to get more details.

Main Menu

Non blocking wait commands.

Started by Telorast, November 14, 2012, 06:51:33 AM

Previous topic - Next topic

0 Members and 5 Guests are viewing this topic.

Telorast

It would be nice if wait commands were non blocking.

I tell the computer to shut down when I'm preparing to leave home, that makes it wait 5 min and then shut down. Would be nice if I could still give commands during that time.

jitterjames

A command will block if you use the VC.Pause Action.  This action is intended only for short pauses when doing things like a macro with keyboard emulation and you need to pause for 200 milliseconds to wait for a window to open etc.

If you want to trigger a command with a more substantial delay you can use the action: VC.SetEventTimer

If you are not familiar with using events in VC then check out this tutorial: http://www.youtube.com/watch?v=AA4Lm6ZiEgM

Telorast

Ahh that explains it. Didn't see that command.

Maybe a request to add that tip in the paus tooltip :)