Jump to content

Create artificial console


Go to solution Solved by diakonos1984,

Recommended Posts

Posted

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/

  • Solution
Posted

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.

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
×
×
  • Create New...