BRUNOYORK Posted August 14, 2007 Share Posted August 14, 2007 So impressed by this FREE software... May i ask if there is any function can allow me to run the script line by line, like VB pressing F8... Since when i test the scripts, always stucked in the middle, but i don't know where...it's keep waiting.. Many tks! Link to comment Share on other sites More sharing options...
enaiman Posted August 14, 2007 Share Posted August 14, 2007 On top of your script: Opt("TrayIconDebug", 1) I don't know about executing the lines 1 by 1 but in SciTE you have a couple of options: Tools menu - Debug to Messagebox - Debug to console - Trace: Add trace lines ... just take a look there 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 :) Link to comment Share on other sites More sharing options...
BRUNOYORK Posted August 14, 2007 Author Share Posted August 14, 2007 hi, Enaiman tks for your hlep, but pls ref to my attachment, i dont hv such option in the tools menu... Link to comment Share on other sites More sharing options...
Achilles Posted August 14, 2007 Share Posted August 14, 2007 So impressed by this FREE software...May i ask if there is any function can allow me to run the script line by line, like VB pressing F8...Since when i test the scripts, always stucked in the middle, but i don't know where...it's keep waiting..Many tks!I learned AutoIt before I learned VB and what I find easiest is putting message boxes in where I think the error might be. If you use scite it's very nice and gives you the error in the console (it shows the line of script and what part has an error), then you can double click the error message and it will go straight to the error. I put the message boxes in to test what my variables are 'cause most of the time I have some variable that's not what it's supposed to be and that becomes clear when the message box comes up. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
BRUNOYORK Posted August 14, 2007 Author Share Posted August 14, 2007 btw, i'm not using the setup version.. Link to comment Share on other sites More sharing options...
enaiman Posted August 14, 2007 Share Posted August 14, 2007 Download the latest SciTE from this page install it and you will have a muuuch longer Tools menu 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 :) Link to comment Share on other sites More sharing options...
BRUNOYORK Posted August 14, 2007 Author Share Posted August 14, 2007 I learned AutoIt before I learned VB and what I find easiest is putting message boxes in where I think the error might be. If you use scite it's very nice and gives you the error in the console (it shows the line of script and what part has an error), then you can double click the error message and it will go straight to the error. I put the message boxes in to test what my variables are 'cause most of the time I have some variable that's not what it's supposed to be and that becomes clear when the message box comes up.haha, i just did the msgbox thing....but the problem i'm facing now is the script is waiting eg: Winwaitactive...so there won't be an error msg... Link to comment Share on other sites More sharing options...
Achilles Posted August 14, 2007 Share Posted August 14, 2007 haha, i just did the msgbox thing.... but the problem i'm facing now is the script is waiting eg: Winwaitactive...so there won't be an error msg...Hmm, I know this doesn't answer your question about debugging, but could you post some of the code? Someone here can probably help... If the problem is actually WinWaitActive make sure you have the exact window name. Look in the helpfile for WinTitleMatchMode, this can let you match titles differently. For example, if you had it on Opt("WinTitleMatchMode", 2);(you put that line at the beginning of your code) And you had a line like this: WinWaitActive('Firefox') It would wait until "Firefox" was anywhere in the title.. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
BRUNOYORK Posted August 14, 2007 Author Share Posted August 14, 2007 Thank you so much.... You guys are so kind and helpful...i will test it... Link to comment Share on other sites More sharing options...
Stumpii Posted August 14, 2007 Share Posted August 14, 2007 You could also give this a try:Debugger Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity. Link to comment Share on other sites More sharing options...
BRUNOYORK Posted August 15, 2007 Author Share Posted August 15, 2007 You could also give this a try:Debuggeryo, tks, man 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