furrycow Posted September 5, 2008 Share Posted September 5, 2008 Hey, all i am looking for is for a timer to be counting down in seconds whilst a seperate while loop is taking place So to alaborate... my while loop is executing lots of things and going round in a loop for infinity. In this loop however there could be an If statement that says when the variable, $update =0, call Some Function, otherwise just ignore it. I want this variable to be counting down from 600 seconds to 0 seconds, but separate from the while loop; i dont want the while loop to "stop" for 600 seconds while its executing the if statement, i want the while loop to continue looping until 600 seconds have passed...i can't think how to go about it, and would be SO greatful for any help of thoughts...thank you! Instant Lockerz Invite - www.instantlockerzinvite.co.uk Link to comment Share on other sites More sharing options...
martin Posted September 5, 2008 Share Posted September 5, 2008 Hey, all i am looking for is for a timer to be counting down in seconds whilst a seperate while loop is taking placeSo to alaborate...my while loop is executing lots of things and going round in a loop for infinity. In this loop however there could be an If statement that says when the variable, $update =0, call Some Function, otherwise just ignore it. I want this variable to be counting down from 600 seconds to 0 seconds, but separate from the while loop; i dont want the while loop to "stop" for 600 seconds while its executing the if statement, i want the while loop to continue looping until 600 seconds have passed...i can't think how to go about it, and would be SO greatful for any help of thoughts...thank you!I think TimerInit would do what you want, then TimerDiff to see the elapsed time. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
dbzfanatic Posted September 5, 2008 Share Posted September 5, 2008 Easy and a few different methods. Try AdlibEnable() or TimerInt() and TimerDiff(). Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
furrycow Posted September 5, 2008 Author Share Posted September 5, 2008 Wow, that was quick. Thank you so much you guys! Instant Lockerz Invite - www.instantlockerzinvite.co.uk Link to comment Share on other sites More sharing options...
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