donnyp02 Posted June 6, 2008 Posted June 6, 2008 I'm having an issue not having the goto function. I need to go from the middle of my script, back up to the upper part, then back down to the middle, etc... What can I use to do this as there is no goto? Thanks for your help!
Moderators SmOke_N Posted June 6, 2008 Moderators Posted June 6, 2008 I'm having an issue not having the goto function. I need to go from the middle of my script, back up to the upper part, then back down to the middle, etc... What can I use to do this as there is no goto?Thanks for your help!Use functions.If condition is true Then _myconditionfunc() Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Airwolf Posted June 6, 2008 Posted June 6, 2008 I'm having an issue not having the goto function. I need to go from the middle of my script, back up to the upper part, then back down to the middle, etc... What can I use to do this as there is no goto?Thanks for your help!Create functions that perform the actions you'd like to repeat and call them when needed. Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt
enaiman Posted June 6, 2008 Posted June 6, 2008 This is a sensitive matter - it was discussed before and we have to accept that GoTo is gone for good. Use function calls, returns, conditional statements ... that will help with a "healthy" script structure. Other programming languages got rid of this instruction too (it looks like it makes debugging very painful). SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :)
Moderators SmOke_N Posted June 6, 2008 Moderators Posted June 6, 2008 Fast replys there... so the consensus would be?? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
donnyp02 Posted June 6, 2008 Author Posted June 6, 2008 Thank you so very much for the quick response, I tried functions, and for some reasons my MouseClick's wont work inside of a function, any ideas?
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