AutoHotkey ControlSend problem on one machine

Posted by Illotus on Stack Overflow See other posts from Stack Overflow or by Illotus
Published on 2009-12-13T00:02:29Z Indexed on 2010/06/17 17:03 UTC
Read the original article Hit count: 282

Filed under:

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
   }

© Stack Overflow or respective owner

Related posts about autohotkey