Evolutionnext Posted March 2, 2012 Posted March 2, 2012 Hi there, I am new to autoit and programming alltogether, but I have started creating my own autopit scripts and came across a function that I can not find anywhere. My Script has a queue of reports to print until it is finished. It picks the first report in the queue, opens various documents etc. and when it is finished it removes the completed report from the queue and begins the whole process again. So in the end I have a command: If no reports are in queue tell me it is finished and exit... else: restart at line X. All that I am missing is some command that can do this last step.. go to line X. Is there such a command? Since my script is 5000 lines long and able to print 20 different kinds of reports or combine video files etc. I would not want to use a loop function but just to add a command that jumps to a certain line. Any ideas?
ProgAndy Posted March 2, 2012 Posted March 2, 2012 AutoIt does not support a GOTO command. You will have to create a function logic, for example: While $HAVE_REPORTS $report = POP_REPORT Process($report) WEnd *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
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