I use the simple hotkey
Code: Select all
F1::
centerWindow()
return
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