| | NQC stdin & stdout Dean Husby
|
| | I'm looking for some way in windows to send files to and from stdin & stdout. I'm not 'C' savvy. I'm building a macro set for a editor to NQC for the disabled and would like to talk to NQC via the above. If I can't talk to it directly I'd love a cmd (...) (24 years ago, 9-Aug-00, to lugnet.robotics.rcx.nqc)
|
| | |
| | | | Re: NQC stdin & stdout Matthew Miller
|
| | | | (...) I think using '-' as the filename should work on windows as well as other platforms. (24 years ago, 9-Aug-00, to lugnet.robotics.rcx.nqc)
|
| | | | |
| | | | | | Re: NQC stdin & stdout Dean Husby
|
| | | | | (...) I know how to get NQC to wait for the stdin but I do not know how to get Windows to send a file or whatnot to that waiting port. Saving a file with '-' just made a file called '-'. sigh... Dean -- Coin-Op's For Sale!: (URL) Lego Workshop: (...) (24 years ago, 9-Aug-00, to lugnet.robotics.rcx.nqc)
|
| | | | | |
| | | | Re: NQC stdin & stdout Dave Baum
|
| | | | (...) I'm not sure about the specific calls, but when you invoke one program from another you typically can control what file handles are used as stdin, stdout, and stderr by the launched program. Usually these are just handed off from (...) (24 years ago, 13-Aug-00, to lugnet.robotics.rcx.nqc)
|
| | | | |
| | | | | | Re: NQC stdin & stdout Dean Husby
|
| | | | (...) Yes, that would be the easiest way but also the most annoying as it forces me to change the file name on the users editor. I'm looking in to a DDE command way to avoid this, but so far without success. Thanks for your help btw. Dean -- (...) (24 years ago, 15-Aug-00, to lugnet.robotics.rcx.nqc)
|
| | | | |
| | | | | | Re: NQC stdin & stdout Dave Baum
|
| | | | (...) Could you copy the entire contents to the clipboard, then have your program write the clipboard data to a temp file? (you'd still avoing having to create pipes, etc) Dave Baum (24 years ago, 16-Aug-00, to lugnet.robotics.rcx.nqc)
|
| | | | |
| | | | | | Re: NQC stdin & stdout Dean Husby
|
| | | | (...) That's my current plan. I tried the normal way and it lost the file name, the current dir, everything. It has become VERY frustrating... But I should have it soon. I'll be offering it free on our site. I'll post when it's done. Dean -- (...) (24 years ago, 16-Aug-00, to lugnet.robotics.rcx.nqc)
|
| | | | |