Jump to content
Sign in to follow this  

Another Noobish question

Recommended Posts

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.


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

Share this post

Link to post
Share on other sites

#include <Constants.au3>

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))

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...