Jump to content
c.haslam

How to get stdout to show in SciTE

Recommended Posts

c.haslam

Consider this script:

Local $auPath = RegRead("HKLM\SOFTWARE\AutoIt v3\AutoIt", "InstallDir")&'\'
RunWait('"'&$auPath&'Beta\AutoIt3.exe" "F:\AutoIt scripts\TraceCalls\test2.au3"')
If @error Then MsgBox(0,'',@error)

test2.au3 has ConsoleWrite calls in it, which work when test2.au3 is run from SciTE using Alt_F5. But they do not write to SciTE's output pane when I run the above script.from SciTE using Alt_F5.

How can I get test2's stdout stuff to show in SCiTE?


Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

Share this post


Link to post
Share on other sites
Jos

Use Run() with the appropriate parameters so you can read the produced output with StdOutRead().in a subsequent loop which you show with ConsoleWrite().
Helpfile should be your best friend. :)

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
c.haslam

Jos,

Thanks.

I guess that when I have retrieved the stdout stuff, I then use SCiTE Director's output command to write it to the output pane.

...chris


Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

Share this post


Link to post
Share on other sites
c.haslam

Jos,

Your suggestion works AOK. I followed the example for StdOutRead().

...chris


Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

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

×