Jump to content

intercept ConsoleWrite from running script outside Scite


frank10
 Share

Recommended Posts

If I run my script from Scite I can see all the ConsoleWrite executed by the script.

I want to see the Consoleout of a running script , started outside Scite ( even using another Consoleout program if needed).

Is this possible?

PS:

I tried with DebugView with no luck.

Edited by frank10
Link to comment
Share on other sites

  • Moderators

ConsoleRead()?

StdoutRead()?

Or are you trying to "hijack" another apps output?

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

I have an autoit3.exe process running with some consolewrite() in it.

Then I launch from Scite this script:

Local $aProcessList = ProcessList("AutoIt3.exe")
Local $iPID = $aProcessList[1][1] 
Local $sOutput =''

while 1
    $sOutput = StdoutRead($iPID)
    if $sOutput <> '' Then ConsoleWrite( $sOutput  & @CRLF)
    Sleep(10)
WEnd

But I don't get any Consolewrite from that autoit's PID.

Link to comment
Share on other sites

mmm, yes, I think that's the problem.

But I don't want to link the two scripts, I wolud like to see the consoleout of a general script without to restart it into Scite, (even using an external prog to monitor)...

Edited by frank10
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...