EDIT/RECENT CHANGES
NAVIGATION
TABLE OF CONTENTS (Interprocess Communication):
Does Tcl Support "SendKey" And "SendMessage" (For Controlling Other Windows Applications)?
22/09/2003
Does Tcl includes the ability to control other applications, e.g. notepad? Other programming languages provide commands like Sendkey (VB) or Sendmessage (VC). So I can executing notepad, putting text into textbox and saving that in a file. That's all possible because of controlling menuoptions by sending Windows-Messages ... It is possible in Tcl too? - RS: See tcom for COM support, but not sure whether Notepad understands that.. - JPT: You could also try cwind (http://mini.net/tcl/5019 ). I've used it once and it did the (simple) job I had to do.
Using Exec To Capture A Child Processes Stdout And Stderr
Sep 26 - 2003 I want to make a frontend to gcc in tcl.
if {[catch {exec gcc -c $Compiler_Flags $Filename } Result]} { puts $Result exit 1 }
I want to map gcc's output messages to stdout and stderr, while the command runs. I could direct it to a file, but we'll proberbly be running this frontend, several persons at the same time. - RS: Experiment with
eval exec [list gcc ... > @stdout 2> @ stderr $Compiler_Flags [list $Filename]