Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running VMware Workstation 9 on Windows 7 and I wonder how do I make an AutoHotkey script (which does some key remapping) work only when the input is grabbed by a VMware virtual machine?

share|improve this question
up vote 3 down vote accepted


SetTitleMatchMode, 2
#IfWinActive, VMware
share|improve this answer
It's worth mentioning that the windows title in the script is not necessarily to be the full window title of your virtual machine, making it simply VMware works for any VM window. – Desmond Hume Mar 12 '13 at 17:51
@Desmond, I changed the script to include the SetTitleMatchMode to 2, so any window with VMWare in the title will work. – Robert Ilbrink Mar 12 '13 at 18:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.