Results 1 to 3 of 3

Thread: How do you make code wait for an amount of time?

  1. #1

    Thread Starter
    Addicted Member AmmerBow's Avatar
    Join Date
    Sep 2000
    Posts
    195

    How do you make code wait for an amount of time?

    How do you make code wait for an amount of time?

    For example

    Code:
    ? WASSUPPP
    wait for 5 seconds
    ? Yo man waaasup

  2. #2
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    messy but its how I do it

    dim t as string

    t=timer
    do until val(t)+5 < timer
    loop
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Add this code to a module:
    Code:
    Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
    Then just use this where you need it:
    Code:
    Sleep 5000 ' Sleep for 5 seconds
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width