Sign in to follow this  
Followers 0
frank10

intercept ConsoleWrite from running script outside Scite

8 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Good question.

But I checked with arraydisplay and msgbox.

The PID that remains unchanged is the one I want to get the Consolewrite: so, yes I checked it and it's correct, the first PID of the $aProcessList.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

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

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