Sign in to follow this  
Followers 0
themax90

When will or how do I get text from command lines

3 posts in this topic

I am working on my MChat project and to create a non commandline and gui based system, does anyone know WHEN or if already implemented HOW to retreive text from a commandline?

Thanks,

Agent Smith

Share this post


Link to post
Share on other sites

You could write a script to read the letters, horribly inefficient and crude but it'll work.


"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

Share this post


Link to post
Share on other sites

If You can not use redirected stdout, may be transfer via Clipboard can help:

;e.g. start a cmd.exe with:  start "test CMD" dir /p
WinWaitActive("test CMD")
Send("{ALTDOWN}{SPACE}{ALTUP}ES{ENTER}") ; Letters ES are language dependent!
$CmdCaptured = ClipGet()
MsgBox(0, "CMD-Capture", $CmdCaptured)

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