gautxori Posted August 15, 2010 Share Posted August 15, 2010 hi, i know there was some way to make debug messages be printed into a notepad window instead of the Autoit-GUI window. Can someone remind me of how to do it? (i would like to use the _debugSetup and _DebugOut functions, but with the standard notepad windows). Tanks. Link to comment Share on other sites More sharing options...
JohnOne Posted August 15, 2010 Share Posted August 15, 2010 (edited) Send() ? ControlSend() ? Whelcome. Edited August 15, 2010 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
MvGulik Posted August 15, 2010 Share Posted August 15, 2010 (edited) @JohnOne.Nope.Debug UDF used to write to a notepad window, before is got its own gui output window.@gautxori.You need to do the notepad setup yourself, but after that you can redirect the debug output by using its user function feature._DebugSetup ( $sTitle = Default, $bBugReportInfos = False, $vReportType = 1, $sLogFile = "" )$vReportType 1 - Report Log Window (Default).2 - ConsoleWrite.3 - MsgBox. (version > v3.3.6.1)4 - FileWrite into $sLogFile defines the filename.string - name of specific report function to be used.Erm. Can't remember the function parameters for the user function, but that should not be problem. At least one for the message text. Edited August 15, 2010 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
gautxori Posted August 15, 2010 Author Share Posted August 15, 2010 @gautxori.You need to do the notepad setup yourself, but after that you can redirect the debug output by using its user function feature._DebugSetup ( $sTitle = Default, $bBugReportInfos = False, $vReportType = 1, $sLogFile = "" )$vReportType 1 - Report Log Window (Default).2 - ConsoleWrite.3 - MsgBox. (version > v3.3.6.1)4 - FileWrite into $sLogFile defines the filename.string - name of specific report function to be used.Erm. Can't remember the function parameters for the user function, but that should not be problem. At least one for the message text.yep, i overlooked it at debug.au3, line 165. So, i must create alternative functions for __Debug_ReportWindowWrite (write to notepad) and __Debug_ReportWindowCreate (create notepad window).Two much work for just being able to resize and reposition the log window. WinMove ( $__gsReportWindowTitle_Debug, "", $x, $y , $w, $h) does it.Thanks both of you. Link to comment Share on other sites More sharing options...
gautxori Posted August 15, 2010 Author Share Posted August 15, 2010 (edited) for anyone interested: you must use _DebugSetup (...) _DebugOut (...) before WinMove ($__gsReportWindowTitle_Debug, "", $x, $y , $w, $h) so that the log window is created before being moved. Edited August 15, 2010 by gautxori 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