andrew01 Posted November 10, 2006 Share Posted November 10, 2006 Ok, so I have a function that takes about 5 minutes to run through completely. Once the function is completed, I would still like autoit to keep running because I want another function to be called every 30 minutes. I have looked into TimeInt/Diff and AdLibs but I cant really seem to work it out. So, basically: Function A runs 30 minutes later Function B runs (does some stuff, then at the end calls function A again to start) Then another 30 minutes later function B is called (does the same stuff again, then A is called again). I would like it to loop like this until I tell it to stop. Any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
ChrisL Posted November 10, 2006 Share Posted November 10, 2006 You could put it to sleep for 30 minutes if you don't need it to do anything else While 1 First() Sleep (1000 * 60 * 30) Second() Wend Func first() ;do stuff EndFunc Func Second() ;do stuff EndFunc [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
andrew01 Posted November 10, 2006 Author Share Posted November 10, 2006 I must be really tired haha. Thanks for the help. Worked perfectly. 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