faire Posted May 17, 2008 Share Posted May 17, 2008 I have experience with BATCH and USCRIPT programming. In batch you can use goto. What is the equivalent of this function in AutoIt? I'm also used to setting timers to check things. For example: settimer(3.0, [optional:repeat] ) func timer() do some stuff every 3 sec endfunc How can I do this in AutoIt? Link to comment Share on other sites More sharing options...
theguy0000 Posted May 17, 2008 Share Posted May 17, 2008 AdLibEnable The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
faire Posted May 17, 2008 Author Share Posted May 17, 2008 AdLibEnableIs that the only way? From the description: "The adlib function should be kept simple as it is executed often and during this time the main script is paused. Also, the time parameter should be used carefully to avoid CPU load."This makes it sound like a tick function, which is indeed very processor intensive. What I'm really after is a true timer that only gets called once every time seconds. Also the main script shouldn't be paused during the execution of the timer(!). Link to comment Share on other sites More sharing options...
Developers Jos Posted May 17, 2008 Developers Share Posted May 17, 2008 Is that the only way? From the description: "The adlib function should be kept simple as it is executed often and during this time the main script is paused. Also, the time parameter should be used carefully to avoid CPU load."This makes it sound like a tick function, which is indeed very processor intensive. What I'm really after is a true timer that only gets called once every time seconds. Also the main script shouldn't be paused during the execution of the timer(!).Nah, you determine how 'tick" this function becomes.and ofcourse the main function is interupted... what else do you expect? Paralel/multi tasking isn't working. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Zedna Posted May 17, 2008 Share Posted May 17, 2008 I have experience with BATCH and USCRIPT programming. In batch you can use goto. What is the equivalent of this function in AutoIt?Equivavlent of GOTO is keyword Func declare function and instead of GOTO just call your function. Resources UDF ResourcesEx UDF AutoIt Forum Search 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