Community Forums
Results 1 to 4 of 4

Thread: Delay by something other than full seconds

  1. #1
    Join Date
    Dec 2001
    Location
    Cary, NC, USA
    Posts
    67

    Delay by something other than full seconds

    Using installScript, I want to delay the processing of each file by .25 seconds. The Delay() function will only let me use integers, so the shortest delay is 1 second, which is too long.

    Does anyone have any ideas on how to delay the processing by a fraction of a second?

    Thanks!
    - Bob

  2. #2
    Join Date
    Dec 2001
    Location
    Bellheim, Rheinland-Pfalz, Germany
    Posts
    122
    Use:

    Sleep(number);

    were number is the time interval for which execution is to be suspended, in milliseconds.

    regards

    Markus

  3. #3
    Join Date
    Dec 2001
    Location
    Cary, NC, USA
    Posts
    67
    Thanks. I kept thinking that a SLEEP command should be there, but only saw the Delay command in the documentation. Makes sense that this is so easy.

    I appreciate the response.

    - Bob

  4. #4
    Join Date
    Dec 2001
    Location
    Bellheim, Rheinland-Pfalz, Germany
    Posts
    122
    Yes a lot of Windows API's are prototyped into InstallScript by default.

    regards

    Markus

Posting Permissions

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