User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Steps to reproduce:
- Create an AutoHotkey script with a Windows-key hotkey to Send text
- Compile the script
- Run the compiled program
- Use the hotkey in Firefox
The expected text should appear in Firefox.
Here's a sample AHK script:
; ⊞Win+C should paste "foobar"
Compile that and run the executable. Pressing win+c should now paste "foobar".
Here's the results of testing:
(0. "Everywhere" means in notepad, chrome, word, run-dialog, explorer, etc.)
- Running the raw script (.ahk file) works everywhere, including Firefox
- Running the compiled script (.exe file) works everywhere except Firefox
- Hotkeys with Ctrl/Alt/Shift work everywhere for raw and compiled scripts
e.g., "^!+c::send baz" will send "baz" when pressing Ctrl+Alt+Shift+C in Firefox
- Win-key macros from other hotkey programs work everywhere
For some reason, Firefox is blocking Send commands from AHK scripts, but only for the Windows key, and only when compiled. 😕
I'll cross-post this to the AHK forums, but this bug is specific to Firefox.