Sign in to follow this  
Followers 0
sambuddy

Console Output of my script displayed in my script

2 posts in this topic

Hello All,

I use ConsoleWrite and ConsoleWriteError in my scripts to show what is happening and to show that the script hasn't locked up which is great in scite. When my script runs as an exe, it shows a little window with an exit button on it so i can stop the script in a controlled manner. Is there any way i can add a console window (like what we have in scite) to display the output of ConsoleWrite and ConsoleWriteError.

I get the feeling that i am unable to redirect my own output back into my script, so if anyone has any other suggestions i am interested to know what you do.

Thanks

Share this post


Link to post
Share on other sites



Sounds like a 'rigged' solution to me... But I do it all the time... :P

Simply try...

$Edit = GUICtrlCreateEdit("text","left","top","width","height","style-optional","exStyle-optional")

GUICtrlSetData($Edit,GUICtrlRead($Edit)+"VARIABLE OR INFO HERE")

That will create an edit that will fill in required info at the scripts will... Use GUICtrlRead() in conjunction with AND or "+" to 'append' data... There is an easier function to do so... but I seem to have lost it... :unsure:

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  
Followers 0