A window doesn't recognize my hotkey (VMware Workstation)

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
BenRen
Posts: 19
Joined: 19 Sep 2015, 02:38

A window doesn't recognize my hotkey (VMware Workstation)

Post by BenRen » 30 Jul 2022, 04:46

Hello all,

I use the simple hotkey

Code: Select all

F1::
  centerWindow()
return
to center the current /active window on screen.
This works well for almost all windows (I'm on Windows 10, Autohotkey 1.1.31.01), but not for "VMware Workstation".

I understand that VMware Workstation itself captures keypresses to send it to the VM.

But even if the VM itself does not have the focus, but the VMware Workstation window "around it" (e.g. by clicking on the title bar of VMware Workstation), a AHK hotkey is not recognized.

For example, pressing F1 (with my hotkey above) does not center the VMware Workstation window but opens the help file of VMware Workstation.


Can you image any smart or creative way to solve this? I would like to use other hotkeys with VMware Workstation, but no hotkey works.

Thanks a lot for your help!


Kind regards,
Ben

User avatar
mikeyww
Posts: 26936
Joined: 09 Sep 2014, 18:38

Re: A window doesn't recognize my hotkey (VMware Workstation)

Post by mikeyww » 07 Aug 2022, 09:43

You could try a different hotkey, in case you have a hook, hotkey, or other software conflict between AHK and your VM.

Post Reply

Return to “Ask for Help (v1)”