I have this AutoHotkey script that has a weird problem. It is used in 3 workstations, but in one the ControlSend doesn't seem to work as the hotkey doesn't work in program A. All three machines have Windows XP and are Pentium 4 level machines with mostly same software, the script is in exe form. I've tried a lot of different ways to send the hotkey to Program A, but nothing seems to work.
The idea of the script is simply to catch a hotkey and click in another window in addition to its normal function. The normal function just doesn't work.
Any ideas what could be the root of the problem and where I should look for it?
#IfWinActive, Program A
^H::
IfWinActive, Program A
{
ControlFocus, MDIClient1, Program A, , ,
ControlSend, , ^H, Program A, , ,
ControlClick, X46 Y135, Program B, , LEFT , 1
return
}