Buckw1 Posted May 16, 2006 Share Posted May 16, 2006 Hi, Am just starting to do some coding with autoit and have a few questions...btw, I'm very used to MacroScheduler. Is there a break command I can add into the script to stop execution. I'm using the sci editor. Is there any way to step thru the code? Buck Link to comment Share on other sites More sharing options...
Developers Jos Posted May 16, 2006 Developers Share Posted May 16, 2006 Hi, Am just starting to do some coding with autoit and have a few questions...btw, I'm very used to MacroScheduler.Is there a break command I can add into the script to stop execution. I'm using the sci editor.Is there any way to step thru the code?BuckAutoIt3 doesn't support step mode (yet) .When you mean you are using SciTE, you could have a look at the Trace and debug options which insert ConsoleWrite or MsgBoxes in your script for debugging/tracing.... 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...
Bert Posted May 16, 2006 Share Posted May 16, 2006 One trick I do since you can't step thru is to put msgbox in a spot to check to see if what I want to happen does. For example, I will use a msgbox to see of a window is seen. $test = winexists("Untitled","") if $test = 1 then msgbox(0,"","")[code=auto:0] It doesn't always work, for it depends on what you are doing, but it helps. Also, with what Jdeb suggest, it will work well also. I try to use both when debugging. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Valuater Posted May 16, 2006 Share Posted May 16, 2006 volly... you need to get your closing "/" in the code box's ( in the PM also) i use message boxes also, its a great way to "stop" the script at that point 8) Link to comment Share on other sites More sharing options...
jefhal Posted May 16, 2006 Share Posted May 16, 2006 Hi, Am just starting to do some coding with autoit and have a few questions...btw, I'm very used to MacroScheduler.Is there a break command I can add into the script to stop execution. I'm using the sci editor.Is there any way to step thru the code?BuckYou can also use "Tooltip" statements throughout your code, especially in big loops where values change rapidly. If you use Msgbox statements, you might want to add the timeout value in the statement so you don't have to press OK every time a message comes up. Additionally, you can use the option for tray debugging:TrayIconDebug If enabled shows the current script line in the tray icon tip to help debugging.0 = no debug information (default)1 = show debugThis let's you see exactly where your code hung up. ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format Link to comment Share on other sites More sharing options...
Buckw1 Posted May 17, 2006 Author Share Posted May 17, 2006 Thanks everyone, all answers helped. I think I'll use #cs/#ce to comment out the code from the point I want to stop at. Then I can just keep moving the #cs point down. Buck 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