potitpanda Posted November 1, 2007 Share Posted November 1, 2007 Hello I want to loop a functiion undefinitely every 30 sec How can I proceed That's a schema of my code (...) Param() Func Param() .... Param() End Func Is it the good solution to make this ? Thanks for help me I'm a newbie in autoIt Link to comment Share on other sites More sharing options...
Achilles Posted November 1, 2007 Share Posted November 1, 2007 While 1 Sleep(30 * 1000);Thirty seconds Param() WEnd Func Param() EndFuncIn this code the Sleep and Param will loop forever... My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Nahuel Posted November 1, 2007 Share Posted November 1, 2007 Is AdlibEnable() better? This is better if you want to do something else... Link to comment Share on other sites More sharing options...
Achilles Posted November 1, 2007 Share Posted November 1, 2007 Is AdlibEnable() better? This is better if you want to do something else...If the whole purpose of the script it do do the Param() function every 30 seconds I think that just having it in the While loop is the best idea. If you have other functions and stuff being called besides the every 30 second one then using AdLibEnable() would be preferable. Or that's the general impression I've gotten from using it... My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] 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