Wait

Discussion in 'Programming General' started by Belgin_Mage, Jul 30, 2008.

Wait
  1. Unread #1 - Jul 30, 2008 at 4:52 PM
  2. Belgin_Mage
    Referrals:
    0

    Belgin_Mage Guest

    Wait

    I need a Wait thats simple to use and that acctualy works.. Ive been searching for 1 hour and dont find anything that works
     
  3. Unread #2 - Jul 30, 2008 at 5:00 PM
  4. cp
    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0

    cp an cat
    Banned

    Wait

    Code:
    System.Threading.Thread.Sleep(10) 'in milleseconds
    I think that should work at least, I don't use VB.
     
  5. Unread #3 - Jul 30, 2008 at 6:34 PM
  6. jdsfighter
    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0

    jdsfighter Forum Addict
    Visual Basic Programmers

    Wait

    Thats .Net, cp_

    here is VB

    Code:
    Public Declare Function timeGetTime Lib "winmm.dll" () As Long
    
    Public Sub Wait(TimeOut As Long)
        Dim TimeNow As Long
        TimeNow = timeGetTime()
        Do
            DoEvents
        Loop While TimeNow + TimeOut > timeGetTime()
    End Sub
    Use

    Code:
    wait 100
     
  7. Unread #4 - Jul 31, 2008 at 2:22 AM
  8. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Wait

    You're either lieing or incredibly stupid.
     
  9. Unread #5 - Aug 2, 2008 at 12:47 PM
  10. Belgin_Mage
    Referrals:
    0

    Belgin_Mage Guest

    Wait

    I found alot that worked, but all they did was freeze.. I dont want freeze:laugh:
     
< What Language Next? | Witch programming language is best? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site