russell Posted October 26, 2010 Share Posted October 26, 2010 I have several scrips broken and referenced back and forth upon different situations, is there a GOTO function that i could use instead? It would see that it would help out alot. Like to goto another line in the script muppet hands are so soft :) Link to comment Share on other sites More sharing options...
Developers Jos Posted October 26, 2010 Developers Share Posted October 26, 2010 Tried searching the help file for Goto? 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...
russell Posted October 26, 2010 Author Share Posted October 26, 2010 i did and i get results like global and such, nothing i cant find pertaining to goto muppet hands are so soft :) Link to comment Share on other sites More sharing options...
whim Posted October 26, 2010 Share Posted October 26, 2010 (edited) From Help file -> AutoIt -> Frequently Asked Qestions (FAQ) -> #4:4. Where is the "goto" command? Gone. It's evil. No, you can't ask why - it just is. It's like that lump of rock they find in the microwave at the end of the film <a class="ext" href="http://www.imdb.com/title/tt0081633/">Time Bandits AutoIt v3 features most of the common "loops" in use today and with these Goto is no longer required. Look up While, Do, For, ExitLoop, ContinueLoop and Functions for the modern way of doing things And while you are looking at help file sections check out these on loops, conditional statements and functions. I promise you, once you have got the hang of such things you will be able to script in virtually any other language within a couple of minutes. Just to get you started, the most basic use of Goto in version 2.64 was an infinite loop like: :mylabel...do something......and something else...goto, mylabel A simple v3 version of that is a While loop that is always "true". While 1 = 1 ...do something... ...do something else...Wend BTW First result found after typing "goto" in the search box ... Edited October 26, 2010 by whim Link to comment Share on other sites More sharing options...
Varian Posted October 26, 2010 Share Posted October 26, 2010 That is where the programmer's logic must prevail. You need to figure out the logic by sketching a Gannt chart to make your script work. If you post code/relevant details we may be able to help you out. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 26, 2010 Share Posted October 26, 2010 i did and i get results like global and such, nothing i cant find pertaining to gotoIf you open the helpfile and searth for goto there's only 3 results! .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Developers Jos Posted October 27, 2010 Developers Share Posted October 27, 2010 I indeed said Search, not look at its index as obviously there is no GOTO so it will not appear in the index. 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...
Chimaera Posted October 27, 2010 Share Posted October 27, 2010 I think people ought to remember we are not all programmers here.. some off us are just ordinary people trying to make our lives easier sketching a Gannt chart??? i had to check google to see what it was!! ps not trying to cause offence If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
Varian Posted October 27, 2010 Share Posted October 27, 2010 (edited) I think people ought to remember we are not all programmers here.. some off us are just ordinary people trying to make our lives easiersketching a Gannt chart??? i had to check google to see what it was!!ps not trying to cause offenceThe main idea here is to visualize your scrnipt. I am not a programmer per se, rather I create scripts to automate my needs. The gannt chart may be more formal than what you need, but it us good practice for more complicated scripts. Understanding logic is the key to success. Edited October 27, 2010 by Varian Link to comment Share on other sites More sharing options...
Oneqa Posted October 27, 2010 Share Posted October 27, 2010 my best bet for you is try to utilize the use of ContinueLoop, ExitLoop and Return command Link to comment Share on other sites More sharing options...
russell Posted November 5, 2010 Author Share Posted November 5, 2010 Well you have cleared up for me that there is no GOTO. I miss it but do understand what you all are speaking of. My mind has over the past two weeks worked its way into seeing the scrit like scymatics and the order in which thing happen. In a way im glad they removed it so my "pratice" isnt tainted muppet hands are so soft :) 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