| View previous topic :: View next topic |
| Author |
Message |
gmaster1440 Master Cheater
Reputation: 0
Joined: 26 Jun 2006 Posts: 365 Location: a,b,c++
|
Posted: Sat Aug 11, 2007 8:34 am Post subject: Visual Basic Sleep function? |
|
|
Is there anyway that i can create a sleep/pause between commands in visual basic? Kinda like this:
swf.SetVariable("test", test)
Sleep("3000")
swf.SetVariable("test2", test)
_________________
c++ pointers... |
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Sat Aug 11, 2007 8:43 am Post subject: |
|
|
You can use Sleep, it's exported by kernel32. Then use it like this "Sleep 100". Here I found something on the internet.
| Code: | Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Command1_Click()
Debug.Print "Started - " & Time()
Sleep 1000
Debug.Print "Ended - " & Time()
End Sub
|
_________________
|
|
| Back to top |
|
 |
XTrinityX Expert Cheater
Reputation: 0
Joined: 18 May 2006 Posts: 123 Location: Connecticut
|
Posted: Sat Aug 11, 2007 8:58 am Post subject: |
|
|
| Threading.Thread.Sleep()
|
|
| Back to top |
|
 |
muffinman177 Master Cheater
Reputation: 0
Joined: 09 Dec 2006 Posts: 377 Location: Drury Lane
|
Posted: Mon Aug 13, 2007 5:45 pm Post subject: |
|
|
| How long would Sleep 1000 be? 10 seconds?
|
|
| Back to top |
|
 |
XTrinityX Expert Cheater
Reputation: 0
Joined: 18 May 2006 Posts: 123 Location: Connecticut
|
Posted: Mon Aug 13, 2007 9:36 pm Post subject: |
|
|
1000 would be one second.
The parameter for sleep is in milliseconds. 1000 milliseconds = 1 second.
~XTrinityX
|
|
| Back to top |
|
 |
|