Welcome to my Tcl/Tk page.

CWind Package

WinTclSend users can now give the same tasks a try on Windows,
making use of the 'CWind' clone of WinTclSend.
With this CWind Package you can test the application automatically on Windows.

Comparison Chart:

Features CWind
v1.4
WinTclSend
v1.5
Keyboard event
Mouse event
Glob-style matching
Internationalization
MDI window
Windows Message
Installer
Free and Open
Requirement Tcl8.1 or higher Tcl8.2 or higher

Documentation:

Version1.4: Specifications

Download:

You can get the package here.

Version1.4 Binary: cwind14.zip 26-Oct-2003

Version1.4 Source: cwind14src.zip 26-Oct-2003

The CWind package is available for Windows 95/98/Me/NT4.0/2000/XP.
Please note that you can install only for Tcl8.1 or higher.

Installation:

To install all the files included in this extension, run "install.tcl"
To use this extension, use the command "package require cwind"

ChangeLog:

Changes with CWind 1.4
*) Add mouse event.
*) Add installer

Changes with CWind 1.3.1

*) Fix bug about ::cwind::putcb.
*) Fix compile problems with VC5 english version.

Changes with CWind 1.3

*) Add ::cwind::sendmessage command.
*) Add ::cwind::postmessage command.
*) Fix bug about ::cwind::send.
*) Change to glob pattern matching.
*) Add install.tcl

License:

CWind is free software that is copyrighted by Satoshi Imai.
You can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation.
Use this package at your own risk and expense.

Sample:

package require cwind

exec $env(COMSPEC) /c start wordpad.exe &
::cwind::waitwind {*WordPad} 10
::cwind::send {Hello World!} |RET|
after 1000
::cwind::send |CTRL+| a |CTRL-|
after 1000
::cwind::send |CTRL+| c |CTRL-|
after 1000
set clip [::cwind::getcb]
after 1000
::cwind::send |END| |CTRL+| v |CTRL-|
after 1000
::cwind::send |ALT+| h |ALT-| a
after 1000
::cwind::send |ALT+| |SNAP| |ALT-|

exec $env(COMSPEC) /c start mspaint.exe &
::cwind::waitwind {*Paint} 10
::cwind::send |ALT+| e |ALT-| p

exit

Credits:

Thank you for the patch which Kai Morich presented.

See Also:

WinTclSend


Satoshi Imai
[HOME]