Obama (03-11-2010)
whats the wait code in visual basic 2008? thanks >.<
Lady Gaga: PApapapapappap Poker Face
Producer: One More Time From The Top And Try Not To Stutter
Lady Gaga: I Dont Sta-sta-sta-stutter
Producer: oh my god JUST SHUT UP!!!!!
(blows Brains Out With Pistol)
Lady Gaga: Misssttaa PraPraPraDucer???????
....... OH NOES!!!!!!
_____________________________________________
Obama (03-11-2010)
How long are you trying to make it wait for?
Sleep() function in the kernel32 library. I think for VB you have to declare these things manually. After you've done this.
Sleep(milliseconds)
In vb 2008
the code to pause a thread is simply:
Threading.thread.pause(1000)
Where 1000 = milliseconds
Obama is right. thanks for helping
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
Obama (03-11-2010)
[php]
' To Sleep
System.Threading.Thread.Sleep (1000)
'To Pause
System.Threading.Thread.Pause (1000)
' Code uses Miliseconds
[/php]
Obama was demonstrating the power of google
:waits for OP' to accept answer:
Obama (03-11-2010)
Here =)
orCode:Private Declare Sub Sleep Lib "kernel32" _ (ByVal dwMilliseconds As Long) Public Sub Wait(Seconds As Single) Dim lMilliSeconds As Long lMilliSeconds = Seconds * 1000 Sleep lMilliSeconds End Sub
Use Call Delay(integer)
Code:Sub Delay(dblSecs As Double) Const OneSec As Double = 1# / (1440# * 60#) Dim dblWaitTil As Date dblWaitTil = Now + OneSec * dblSecs Do Until Now > dblWaitTil DoEvents ' Allow windows messages to be processed Loop
Last edited by Unkn0wn_h4cker; 03-11-2010 at 01:00 AM.
Yup,suits the cause ^.^ I normally make a simple pause code and make a sub for it and call it when I need it,but I couldn't be bothered typing
NextGen1 (03-11-2010)
Hey on mine
system.threading.thread.sleep(1000) works
and
threading.thread.sleep(1000) work but
these don't work
system.threading.thread.pause(1000)
or
threading.thread.pause(1000)
it may be system.threading.thread.suspend
I'm going by memory, I don't use them often