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:s-imai@japan.interq.or.jp
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:
- SendKeys
- winbatch [1]
- cwind on avi2vcd
- As a definitive resource to look what's possible, see http://www.autoitscript.com/autoit3/.
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).