Jump to content
Sign in to follow this  
diakonos1984

Create artificial console

Recommended Posts

diakonos1984

I really like using the ConsoleWrite function in SciTE for debugging.  However, I need to install a small AutoIT application on another computer that doesn't have SciTE or AutoIT.  I need to be able to debug my applications operation on this other computer.

I would like to build a console mimic into my application.  Possible an Edit control.  I want to dump whatever would have gone to the SciTE console to this edit instead.

It can't be that hard, but for the life of me, I can't figure out the right way to do this.

Surely someone else has done this before!

Thanks/

Share this post


Link to post
Share on other sites
JLogan3o13

Why not just write out to a log file (_FileWriteLog), and then create a GUI to parse through it?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
diakonos1984

I actually came up with a mostly effective solution:
 

Func MyConsoleWrite($MyText) ;Sends event log to SciTE console and to application log tab
     ConsoleWrite($MyText)
     GUICtrlSetData($Log,$MyText,"append")
EndFunc

My only complaint (and I'm getting over it) is that I can't use it for any events that occur before the $Log (Edit Control) are created in the GUI.  I guess that's okay.  It will record all user events now, just not application startup events.

Share this post


Link to post
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
Sign in to follow this  

×