Sign in to follow this  
Followers 0
blademonkey

Another Noobish question

3 posts in this topic

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



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