I have two hosts (windows-7) running side by side. I use Mouse without Borders to use a single mouse/keyboard (using Synergy I have the same issue, so all here applies too).
In each host I am running some AHK scripts that provide some keyboard shortcuts. So if my setup is like this:
- Host A - AHK script A - keyboard A
- Host B - AHK script B - keyboard A (via Mouse without borders/synergy)
While typing in:
- Host A: my hotkey (for example CapsLock-S is always handled by the AHK-script-A (obviously)
- Host B: this is the problem...while typing in this host, my CapsLock-S keyword SOMETIMES is handled by AHK-script-B (the desired output) and SOMETIMES by AHK-script-A.
When typing in Host B only AHK B shortcuts should be triggered, and not a AHK A one (in Host A).
This probably depends on the order on which some programs (ahk etc) were run on each host, or on what application did last have focus or something, but I have no idea.
Does anyone have some clue on how to make this work? Or how to find some determinism on why sometimes it works and sometimes it does not?