Sleep Command? Follow

0
Avatar
Legacy Poster

Hey all,

I have a quick question. I've been messing with the VB Scripting in Bartender and need to pause my script briefly. I am familiar with the Sleep command in VB in the following applications...

[quote]
Declare Sub Sleep Lib "kernel32" (ByVal milliseconds As Long)
' pause for 5 seconds
Sleep 5000
[/quote]

or....

[quote]
' pause for 5 seconds
System.Threading.Thread.Sleep(5000)
[/quote]

Neither seem to be supported in Bartender and both throw runtime errors. Any ideas how to put my program to sleep or pause for a brief moment?

Thanks!

1 comments

0
Avatar
Shotaro Ito
Moderator
Comment actions Permalink

[quote name='martinarcher' timestamp='1333767308' post='2152']
Hey all,
I have a quick question. I've been messing with the VB Scripting in Bartender and need to pause my script briefly. I am familiar with the Sleep command in VB in the following applications...
[/quote]

You can do that by
[code]Sleep(5000)[/code]

Please sign in to leave a comment.