There are ways to test your program. One method would be to use 'cxtest' (see cxtest.org) but an easier and likely better way is to use autohotkey. Austin English has been working on that for gsoc, see for instance http://code.google.com/p/winezeug/source/browse/#svn/trunk/appinstall