What | cwind |
Where | http://www.interq.or.jp/japan/s-imai/tcltk/cwind.html |
Description | Clone of WinTclSend, allowing you to test applications. |
Not all functions of WinTclSend are cloned so far. | |
This is a free package. | |
Currently at version 1.4. | |
Updated | 26-Oct-2003 |
Contact | mailto:[email protected] |
MHo An addition to wait for a window to appear:
proc ::cwind::findwind {title {max 5} } { set cur [::cwind::wlist] set i 1 set delay 100 set max [expr $max*1000/$delay] while { [lsearch -glob $cur $title]<0 && $i<=$max} { set cur [::cwind::wlist] incr i after $delay update } if {$i>$max} {puts "Can't find the window : $title"; return 0} else { return $i} }
See also:
How is the SendKeys page interesting?
Well, if someone actually filled it out, it might contain information about techniques for sending keystrokes to tcl applications, which is something that one would want to be able to do when testing an application. Alas, right now there is little info on that page along that line.
Also see TWAPI which provides mouse and keyboard input support as part of a broader Win32 API extension (Only explicitly supporting NT, Windows 2000, and Windows XP - not Windows 9x).
see cwind on avi2vcd
Mho 2011-11-03: Does someone know how to send the PIPE-character?
imdave - 2017-05-15 19:52:14
Re: Mho 2011-11-03: Does someone know how to send the PIPE-character? cwind::send \| ; # As a single text string
imdave - 2017-05-15 19:53:57
I've ported cwind 1.4 to win7x32 & x64 See https://chiselapp.com/user/iamdave/repository/CWind/