Sign in to follow this  
Followers 0
SoftVoile

how to end the While Loop after the specific time?

5 posts in this topic

hi,

how to end the While Loop after the specific time?

i have read about

TimerInit()

TimerDiff()

but it's not working for me, or maybe i am doing something wrong with it.

i want to run the 'While' Loop for 5mins and then exit.

now, how to do it?


Unresolved topics:1- Please help me in Editing or replacing a page in FireFox and IE.Please have a look at them.

Share this post


Link to post
Share on other sites



hi,

how to end the While Loop after the specific time?

i have read about

TimerInit()

TimerDiff()

but it's not working for me, or maybe i am doing something wrong with it.

i want to run the 'While' Loop for 5mins and then exit.

now, how to do it?

see help timerdiff.

you should set

$begin = TimerInit () before while Loop

and in while Loop

$dif = TimerDiff ($begin)

if $dif > 300000 then exitloop

;-))

Stefan

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

$min = @min
While 1
    If $min = $min +5 then ExitLoop
WEnd

Edited by goldenix

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0