botanic Posted January 11, 2007 Share Posted January 11, 2007 (edited) how can i see at what point of my script it closes? PS: its not an error i just need to see where i told it to close because i cant tell when it is closing... Edited January 11, 2007 by botanic Link to comment Share on other sites More sharing options...
Paulie Posted January 11, 2007 Share Posted January 11, 2007 (edited) how can i see at what point of my script it closes???What? You want it to do something when it closes? Use "OnExitFunc" and write a function that tells you something, like this: Opt("OnExitFunc", "Detect") HotKeySet("{ESC}", "Quit") While 1 Sleep(1000) Tooltip("I'm Doing Something..Push Escape to close",0,0) Wend Func Detect() Msgbox(0,"Closed","Script closed") EndFunc Func Quit() Exit EndFunc Edited January 11, 2007 by Paulie Link to comment Share on other sites More sharing options...
nitekram Posted January 11, 2007 Share Posted January 11, 2007 why not look for the word EXIT - put a msgbox() on all of them and name them differently 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator Link to comment Share on other sites More sharing options...
Paulie Posted January 11, 2007 Share Posted January 11, 2007 why not look for the word EXIT - put a msgbox() on all of them and name them differentlyMy way uses less code(assuming there are more then one possible places that it exits) Link to comment Share on other sites More sharing options...
nitekram Posted January 11, 2007 Share Posted January 11, 2007 My way uses less code(assuming there are more then one possible places that it exits)I might be wrong but yours shows when it exits and he wants to know where it exits 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator Link to comment Share on other sites More sharing options...
Psibernetic Posted January 11, 2007 Share Posted January 11, 2007 in my opinion he simply shoud have posted the code... save alot of time and apparently arguments...but seriously...if you dont know when your program closes...that seems like perhaps you should redo the entire script... obviously you dont understand it well enough..(not to be offensive)...if you cant understand parts of your script now a couple months down the line it'll be a foreign language..(speaking from...VAST ammounts of experiences) [sup]Psibernetic[/sup]My Creations:X-HideSecuracy 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