Jump to content

Recommended Posts

Posted (edited)

How can i do a while for 30 seconde?

Something like this:

$1= 30000

While $1

wend

Thanks :huh2:

Edited by Xav
  • Moderators
Posted

Xav,

Look at TimerInit and TimerDiff in the Help file. :huh2:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

Like this >>

Global $iSeconds = 3
Global $iTimer = TimerInit()

ConsoleWrite("Timer Started" & @CRLF)
Do

Until TimerDiff($iTimer) > ($iSeconds * 1000)
ConsoleWrite("Timer Ended" & @CRLF)

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

Thanks :huh2: !

  Quote

If what you want is just to stop the code for 30 seconds, you can use: Sleep(30000)

OBS: 30000 milliseconds = 30 seconds

No ;) i want my script running during 30 seconde....

Edited by Xav

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...