|
-
Feb 21st, 2004, 05:34 PM
#1
Thread Starter
Addicted Member
Is there a way to make a program wait without a timer?
I am adding a function to my scripting language so that the program will wait . . . Is there a function call or maybe some API to make a program stop execution for a certain amount of time?
I suck with graphics. Can you help me out? If you are good with graphics there are rewards . . . email me, [email protected] . . .
[img src="www.cel-eration.com/anim1.gif"][/img]
-
Feb 21st, 2004, 05:40 PM
#2
Yes the Sleep API.
Public Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long)
Sleep 1000 'Delay or wait for 1 second
-
Feb 21st, 2004, 05:45 PM
#3
theres another api call, bit more code needed, which allows events to happen whilst in sleep, such as use the min button etc.. i cant remember the name but somebody in here will surely know.
-
Feb 21st, 2004, 06:20 PM
#4
I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)
-
Feb 21st, 2004, 07:19 PM
#5
Fanatic Member
If you need to be woken on a certain condition, WaitForSingleObject/WaitForMultipleObjects is useful.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|