Author Topic: Non blocking wait commands.  (Read 2717 times)

0 Members and 1 Guest are viewing this topic.

Telorast

  • $upporter
  • Jr. Member
  • *****
  • Posts: 28
  • Karma: 0
    • View Profile
Non blocking wait commands.
« on: November 14, 2012, 06:51:33 AM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Non blocking wait commands.
« Reply #1 on: November 14, 2012, 10:59:34 AM »
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:

Telorast

  • $upporter
  • Jr. Member
  • *****
  • Posts: 28
  • Karma: 0
    • View Profile
Re: Non blocking wait commands.
« Reply #2 on: November 15, 2012, 06:58:56 PM »
Ahh that explains it. Didn't see that command.

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