Jump to content

Beginners problem with ConsoleRead


BVinter
 Share

Recommended Posts

Hi -

I just got started with AutoIt which seems just like the kind of tool I need all the time!

For a script I need to pipe data from an application, my first attempt to do this failed misserably however :whistle:

My script is (test.au3):

$var = ConsoleRead(10)

MsgBox(0, "From keyboard", $var)

Exit

Which - for testing - I then just run as:

echo Hello | test.au3

But the script does not get any input but just gives me the emspy message box.

So obviously I'm missing something here, but I cant find any examples and Google for AutoIt ConsoleRead don't yield anything useful:(

Does anybody have a small example of using ConsoleRead I could have a peek at?

Cheers,

Brian

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