probier mal das Tool:
http://www.hiddensoft.com/AutoIt/downloads.html(mit das beste Macrotoll, aber kA obs Deine Probs lösen kann)
hier mal kurz ne Beschreibung:
AutoIt is a simple tool that can simulate key presses, mouse movements and window commands (maximize, minimize, wait for, etc.) in order to automate any windows based task (or even windowed DOS tasks).
AutoIt was primarily designed to assist in automatically installing software that cannot be automatically installed by other means. This is most useful during a PC rollout where hundreds or thousands of client machines need to be automatically installed. However, AutoIt is not limited to software installation and can be used to automate most simple windows tasks.
When AutoIt is executed, it reads a specified script file. This script file allows AutoIt to perform a number of functions, these include:
Executing programs (Windows applications, DOS commands, etc.)
Sending keystrokes and mouse clicks (all characters, keyboard layout independent).
Window functions (e.g. minimizing, hiding, restoring, waiting for, activating).
Simple text clipboard functions.
Simple registry functions.
Simple string and variable functions.
Scripts can also be compiled into standalone executables using Aut2Exe.
Best of all, its small (self contained .exe, no DLL's, no registry entries) and FREE!
There is also an ActiveX control version of AutoIt called AutoItX. This is a stand alone control that can be used to great effect under other scripting languages such as WSH/VBScript.
A pure DLL version of AutoIt called AutoItDLL is also available for adding AutoIt functionality to your own programs and scripts. It includes full function documentation.