SoftVoile Posted December 17, 2008 Posted December 17, 2008 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.
99ojo Posted December 17, 2008 Posted December 17, 2008 hi,how to end the While Loop after the specific time?i have read aboutTimerInit()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
SoftVoile Posted December 17, 2008 Author Posted December 17, 2008 thanks now working $begin = TimerInit () While 1 $dif = TimerDiff ($begin) if $dif > 5000 then exitloop WEnd Unresolved topics:1- Please help me in Editing or replacing a page in FireFox and IE.Please have a look at them.
James Posted December 17, 2008 Posted December 17, 2008 Create a timed variable. And instead of doing While 1, make it react to the time. PSEUDO: While myTimer < myDiffTime BLAH Wend Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
goldenix Posted December 17, 2008 Posted December 17, 2008 (edited) $min = @min While 1 If $min = $min +5 then ExitLoop WEnd Edited December 17, 2008 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]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now