 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
corrupt
Joined: 29 Dec 2004 Posts: 2446
|
Posted: Thu Aug 02, 2007 4:44 am Post subject: |
|
|
| Btw, I should probably mention that there are a couple of known issues with the current release of the dll version of CMDret that is currently available for download (as described here). The next version should resolve these issues and provide a bit more functionality. An alternate version that seems to resolve the issues mentioned for the RunWEx function is available here until the next version is available. |
|
| Back to top |
|
 |
Schizophrenie1b Guest
|
Posted: Mon Sep 10, 2007 9:38 pm Post subject: |
|
|
@Bobo:
*coming-out-of-a-shadow*...meinst du mich...?
(Wenn nich, auch nich schlimm, meld ich mich einfach mal wieder. Hab seit über einem Monat das Forum hauptsächlich stumm verfolgt, kleb auch grad am Problem CMDret und Piping.)
...and for the ones, asking themselves, what the heck we damn german ones have been mumbling 'bout:
*...* you've been talking about me?
(If not, no prob; I'm just saying hello. I've been watching the entire forum for over a month in a more silent way, but caught up on that CMDret and Piping-Problem, too.)
Satisfied? Well, just thought so. (But I have to mention, that I'm not going to translate all the nasty words...
Btw: is anyone conscious of a way getting Pipes to work with CMDret?
(I'm using Piperec [@ ..?] outputting mic into SoX [@ Sourceforge])
Using simple
| Code: | | StrOut := DllCall("cmdret.dll\RunInControl", "str", "piperec ParamX ParamY ParamZ | sox - C:\test.wav Params", "Uint", OutputWindow, "str", "Edit", "int", "1") |
wont work. --wrong start?
Thanks,
Schizo and the other one |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2446
|
Posted: Wed Sep 12, 2007 12:27 pm Post subject: |
|
|
| Schizophrenie1b wrote: | Btw: is anyone conscious of a way getting Pipes to work with CMDret?
(I'm using Piperec [@ ..?] outputting mic into SoX [@ Sourceforge])
Using simple
| Code: | | StrOut := DllCall("cmdret.dll\RunInControl", "str", "piperec ParamX ParamY ParamZ | sox - C:\test.wav Params", "Uint", OutputWindow, "str", "Edit", "int", "1") |
wont work. --wrong start?
Thanks,
Schizo and the other one | Hi Schizophrenie1b,
Thanks for the report. I'm aware of a few issues with the current code for the RunInConrol function the dll . I'll try and update the code soon which will hopefully solve the issue. I'm not too familiar with piperec and SoX though. Would you mind providing a small, complete script for testing and links to download the versions of the files that you are using so that I can do a bit of testing?  |
|
| Back to top |
|
 |
DJAnonimo
Joined: 10 Sep 2006 Posts: 156
|
Posted: Sun Sep 30, 2007 3:25 pm Post subject: |
|
|
nice but when i call the dll it freezes my AHK script since it finish
executing the command line program.
its possible to call in background ?
thanks in advance |
|
| Back to top |
|
 |
Mbailey766 Guest
|
Posted: Wed Oct 31, 2007 10:05 pm Post subject: |
|
|
| I cant seem to get this to work is there instruction on how to use this |
|
| Back to top |
|
 |
Mkbailey755
Joined: 20 Aug 2007 Posts: 185
|
Posted: Wed Oct 31, 2007 10:06 pm Post subject: |
|
|
I'm trying to use this program to look for text inside of a telnet window so I can automate it basically I want to send keystrokes to it after the telnet script "NEWhoip" stops running. basically I WANT TO "RTFM" but cant find any instruction just prewritten code that I can't understand? Thank you in advance.
also is this the correct route or should I do more of an ORC |
|
| Back to top |
|
 |
DJAnonimo
Joined: 10 Sep 2006 Posts: 156
|
Posted: Thu Nov 01, 2007 12:33 am Post subject: |
|
|
i use it in this way
| Code: | OutputWindow := WinExist("Normalizer")
StrOut := DllCall("cmdret.dll\RunInControl", "str", CMD, "Uint",
OutputWindow, "str", "Edit", "int", "1") |
it fills the command prompt text in a editbox
when the dll is called ahk is freezed.
cos AHK dont supports multi-thread. |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2446
|
|
| Back to top |
|
 |
unlfrank Guest
|
Posted: Sun Mar 30, 2008 2:23 pm Post subject: |
|
|
Hey, I want to be able to control mplayer with stdin commands as shown here:
http://www.mplayerhq.hu/DOCS/tech/slave.txt
Is "RunWWx" the correct command to use? I got RunRedirect and RunInControl to both display the output, but neither allowed standard input to be sent while the target program (mplayer.exe) was executing... Is this possible?
->Frank |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2446
|
Posted: Fri Apr 04, 2008 1:46 am Post subject: |
|
|
I'll look into adding an option to RunInControl. Thanks for the suggestion . |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2446
|
Posted: Sun Apr 06, 2008 8:06 am Post subject: |
|
|
| In case anyone is interested in testing, a beta version of CMDret 4a and a sample script is available for download here. This version of the dll contains a callback function... |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Sun Apr 06, 2008 12:08 pm Post subject: |
|
|
Thanks, corrupt! |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2446
|
Posted: Sun Apr 06, 2008 5:47 pm Post subject: |
|
|
| n-l-i-d wrote: |
Thanks, corrupt! | You're welcome
I should hopefully have a version available with a few more options soon... |
|
| Back to top |
|
 |
digitap Guest
|
Posted: Fri Jul 11, 2008 4:58 am Post subject: Interaction w/ cmdret |
|
|
I have a dos program that requires input from the user. I can use these scripts to start the program, but then it is waiting for more input. How can I get input values back into the command prompt?
For instance when you start the program, the output of the command prompt comes up fine (I'm using the run in control). But the first question the program has requires a Y/N response, with a simple return defaulting to yes. The program continues to ask questions that require input. How can I create another control (for example a second text box) that could be used to send input to the dos program to allow it to continue to the next step? |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2446
|
Posted: Sun Jul 13, 2008 5:51 pm Post subject: Re: Interaction w/ cmdret |
|
|
| digitap wrote: | I have a dos program that requires input from the user. I can use these scripts to start the program, but then it is waiting for more input. How can I get input values back into the command prompt?
For instance when you start the program, the output of the command prompt comes up fine (I'm using the run in control). But the first question the program has requires a Y/N response, with a simple return defaulting to yes. The program continues to ask questions that require input. How can I create another control (for example a second text box) that could be used to send input to the dos program to allow it to continue to the next step? | The current version is not designed to allow automation of command line utilities but I might add this functionality in a future version due to the number of requests for it. Thanks for the suggestion . |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|