Kiti Posted July 1, 2008 Share Posted July 1, 2008 Is there any way to do this? Something like TimeInit and TimerDiff but TimerDiff should return the flow of the script to TimeInit. Is this possible? Cheers! Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 1, 2008 Share Posted July 1, 2008 Is there any way to do this? Something like TimeInit and TimerDiff but TimerDiff should return the flow of the script to TimeInit. Is this possible? Cheers!AdLibEnable()? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Kiti Posted July 2, 2008 Author Share Posted July 2, 2008 AdLibEnable()? And how can I set hotkeys to jump to diffrent parts of the program with AdLibEnable? Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Link to comment Share on other sites More sharing options...
nobbe Posted July 2, 2008 Share Posted July 2, 2008 maybe you tell us what you are trying to do (or show some code maybe) - or its a guessing game..? Link to comment Share on other sites More sharing options...
Kiti Posted July 2, 2008 Author Share Posted July 2, 2008 maybe you tell us what you are trying to do (or show some code maybe) - or its a guessing game..? At the moment, I don't want to do anything with it, but in the past few days I found many ocasions where it would've been very very helpful. In my mind, a rough exampl looks like this: HotKeySet("+!1", "CountDownFrom5") HotKeySet("+!2", "CountDownFrom3") HotKeySet("+!3", "CountDownFrom1") $1 = Jumpgate1() Msgbox(0,"","5") Msgbox(0,"","4") $2 = Jumpgate2() Msgbox(0,"","3") Msgbox(0,"","2") $3 = Jumpgate3() Msgbox(0,"","1") Msgbox(0,"","0") Func CountDownFrom5() JumpTo($1) EndFunc Func CountDownFrom3() JumpTo($2) EndFunc Func CountDownFrom1() JumpTo($3) EndFunc But where do you see the guessing game in a clear and direct statement (question) like "IS there anyway to redirect a script's flow?" ? Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Link to comment Share on other sites More sharing options...
ProgAndy Posted July 2, 2008 Share Posted July 2, 2008 (edited) NO. Autoit has NO GOTO. You could use functions and Loops instead. HotKeySet("+!1", "CountDownFrom5") HotKeySet("+!2", "CountDownFrom3") HotKeySet("+!3", "CountDownFrom1") While 1 Sleep(100) WEnd Func Countd($count) For $i = $count To 0 Step -1 Msgbox(0,"",$i) Next EndFunc Func CountDownFrom5() Countd(5) EndFunc Func CountDownFrom3() Countd(3) EndFunc Func CountDownFrom1() Countd(1) EndFunc Edited July 2, 2008 by ProgAndy *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 Link to comment Share on other sites More sharing options...
Kiti Posted July 2, 2008 Author Share Posted July 2, 2008 NO. Autoit has NO GOTO. You could use functions and Loops instead. HotKeySet("+!1", "CountDownFrom5") HotKeySet("+!2", "CountDownFrom3") HotKeySet("+!3", "CountDownFrom1") While 1 Sleep(100) WEnd Func Countd($count) For $i = $count To 0 Step -1 Msgbox(0,"",$i) Next EndFunc Func CountDownFrom5() Countd(5) EndFunc Func CountDownFrom3() Countd(3) EndFunc Func CountDownFrom1() Countd(1) EndFunc Hm.. so the answer is no. Thank you. I know how to count, I gave that example for nobbe to understand what I was trying to say. Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 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