Guest steveam Posted March 16, 2005 Share Posted March 16, 2005 In version 2.6 when you opened the task tray icon you were able to see where the script was. I am writing a script that is stopping, and I am having trouble identifing where in the code it's stopped. Where should I be looking? Thanks. Link to comment Share on other sites More sharing options...
SlimShady Posted March 16, 2005 Share Posted March 16, 2005 There is an option you can enable. It's called TrayIconDebug. If it's enabled you can see which line is currently executed. You see it when you hover over the tray icon. Here's the code: Opt("TrayIconDebug", 1) Link to comment Share on other sites More sharing options...
steveR Posted March 16, 2005 Share Posted March 16, 2005 Also helpful, if you are using the latest betas, is peppering your program with TrayTip() to show a balloon with info. AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass. Link to comment Share on other sites More sharing options...
trids Posted March 17, 2005 Share Posted March 17, 2005 Beware: TrayIconDebug does not work for NT.And you may also find the _Debug() UDF by Cyberslug extremely useful...Func _Debug($message) ;From Cyberslug, circa 2004-05-10 ;Until AutoIt gets full debugging features, the following might help some people: ; ; Example usage: ; _Debug('#ds');open log window ; ; start of script goes here... ; _Debug("The value of some variable foo is:" & $foo) ; _Debug("Another debug message") ; ; end of script... ; _Debug('#de');keep log window open until you close it $sAutoItWinGetTitle = AutoItWinGetTitle() If $message = "#ds" Then WinActivate( $sAutoItWinGetTitle ) WinMove ( $sAutoItWinGetTitle, "", @DESKTOPWIDTH / 4, @DESKTOPHEIGHT / 4, @DESKTOPWIDTH / 2, @DESKTOPHEIGHT / 2 ) WinSetState( $sAutoItWinGetTitle, "", @SW_SHOW ) ElseIf $message = "#de" Then WinWaitClose($sAutoItWinGetTitle) Else Local $previous = ControlGetText( $sAutoItWinGetTitle,"", "Edit1") ControlSetText ( $sAutoItWinGetTitle,"", "Edit1", $previous & $message & @CRLF) ControlSend( $sAutoItWinGetTitle,"", "Edit1", "^{END}") EndIf EndFunc Link to comment Share on other sites More sharing options...
Guest steveam Posted March 17, 2005 Share Posted March 17, 2005 Thanks. This is what I was looking for.There is an option you can enable.It's called TrayIconDebug. If it's enabled you can see which line is currently executed. You see it when you hover over the tray icon.Here's the code:Opt("TrayIconDebug", 1)<{POST_SNAPBACK}> 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