Jump to content

_DebugOut to a notepad window


Recommended Posts

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

@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 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

@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

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 by gautxori
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...