Updated 2016-07-30 19:34:09 by dbohdan
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
      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?