I have a script to load certain files into a program, process them, and go on with the next file.
The script worked fine on Windows XP, so yesterday I tried running it on Windows 7, but it gets stuck pretty early. After some testing I think I found the problem. When sending keystrokes, mouseclicks or menuactions to a program which runs in compatibility mode, they just don't seem to be delivered. I tried a simple script for an editor (geany):
Opt("WinTitleMatchMode", 2)
$title = "Geany"
WinWait($title)
WinActivate($title)
Sleep(500)
Send("test")
If the editor runs normally, it works fine; if it runs in compatibility mode, the window gets activated, but I get no text. Problem is, the original program has to run in compatibility mode.
I searched in the forum, but couldn't find anything. Has anyone experienced a similar problem or has some ideas how to solve this?