Sleep Command?
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!
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!
0
-
Shotaro Ito
★ BarTender Hero ★
[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]0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
1 commentaire