Jump to content
Sign in to follow this  
blademonkey

Another Noobish question

Recommended Posts

blademonkey

I read the help on consolewrite() but im not sure how to use it.

How do you visually capture this output?

i tried "seeing" it with notepad but not sure how to implement.

a quick rundown + example would be much appreciated.

-Blademonkey


---"Educate the Mind, Make Savage the Body" -Mao Tse Tung

Share this post


Link to post
Share on other sites
GaryFrost

#include <Constants.au3>

Run("Notepad")
WinWaitActive("Untitled - Notepad")
$foo = Run(@ComSpec & " /c dir c:\", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)

While 1
    $line = StdoutRead($foo)
    If @error = -1 Then ExitLoop
 ControlSend("Untitled - Notepad","","Edit1",StringStripCR($line))
Wend

MsgBox(0, "Debug", "Exiting...")


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.