Hotkeys in Firefox (60.0.1)?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Shiwayari
Posts: 5
Joined: 30 May 2018, 18:07

Hotkeys in Firefox (60.0.1)?

30 May 2018, 18:33

Hello,

I am trying to use ahk to remap some (keyboard) buttons (In particular Numpad w/o Numlock) systemwide. However, this does not seem to work at all when firefox is the active window?
I tried google and forum search etc. but could not find anything on this issue, only more specific and very old posts about formulars and similar. However, something as simple as

Code: Select all

a::
SendInput b
return
will not work for me if firefox is the active window. I.e. with the above script active, when I go to adress bar and press 'a', it will type in 'a', instead of 'b'. The script works everywhere else. (Curiously it does work with "buttons" F13 - F24 which i assigned to my mouse). I don't know the details of how windows and ahk handle incoming keypresses and what is different with firefox, but I suppose firefox somehow intercepts any signals from the keyboard, so maybe it is possible to switch priorities of ahk / firefox? Or is there any other, preferably 'non-workaroundy', way to properly use ahk with firefox?

Thanks for any help.
Guest

Re: Hotkeys in Firefox (60.0.1)?

17 Jul 2018, 20:02

I am having the same issue. None of my hotstrings are working in Firefox. I am not sure when exactly it happened, either windows update or Firefox update, but it stopped working recently.
gregster
Posts: 8989
Joined: 30 Sep 2013, 06:48

Re: Hotkeys in Firefox (60.0.1)?

17 Jul 2018, 21:12

Probably Firefox is running with elevated rights on your computer. Try running your script as admin...
robodesign
Posts: 934
Joined: 30 Sep 2017, 03:59
Location: Romania
Contact:

Re: Hotkeys in Firefox (60.0.1)?

22 Feb 2019, 17:57

I have this issue too....if I block the input for 300 milliseconds, it works.... But still...

Any ideas?....

Thank you.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
AHKStudent
Posts: 1472
Joined: 05 May 2018, 12:23

Re: Hotkeys in Firefox (60.0.1)?

22 Feb 2019, 18:19

robodesign wrote:
22 Feb 2019, 17:57
I have this issue too....if I block the input for 300 milliseconds, it works.... But still...

Any ideas?....

Thank you.
what version of firefox are you on?
robodesign
Posts: 934
Joined: 30 Sep 2017, 03:59
Location: Romania
Contact:

Re: Hotkeys in Firefox (60.0.1)?

22 Feb 2019, 18:30

Version 65
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
robodesign
Posts: 934
Joined: 30 Sep 2017, 03:59
Location: Romania
Contact:

Re: Hotkeys in Firefox (60.0.1)?

23 Feb 2019, 17:24

After doing more tests... This issue is only occurring on some websites.

In my case, the problem is on deviantart.com, but not on discord. Any ideas on this?

Best regards, Marius.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
gregster
Posts: 8989
Joined: 30 Sep 2013, 06:48

Re: Hotkeys in Firefox (60.0.1)?

23 Feb 2019, 17:32

I would guess that javascript might be interfering, but then again I cannot reproduce your problem on deviantart.com (neither without scripts, nor after allowing all scripts).
Hotstrings and hotkeys seem to work... at least in the search boxes. Any specific edit box that is not working?

Edit: Comment boxes work for me, too.
robodesign
Posts: 934
Joined: 30 Sep 2017, 03:59
Location: Romania
Contact:

Re: Hotkeys in Firefox (60.0.1)?

23 Feb 2019, 17:35

Not in edit boxes. Try to prevent escape or arrow keys, when skimming through the galleries of images.

Esc::Return

Left ::Return
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
gregster
Posts: 8989
Joined: 30 Sep 2013, 06:48

Re: Hotkeys in Firefox (60.0.1)?

23 Feb 2019, 17:47

Try to prevent escape or arrow keys, when skimming through the galleries of images.
You want to de-activate these? Yeah, this seems related to javascript (which seem to take precedence sometimes)- when you don't allow scripts, these keys aren't active anyway.
If you can identify the responsible script, you can probably selectively shut it down via a browser add-on, but I don't know how you could solve it with AHK alone...
robodesign
Posts: 934
Joined: 30 Sep 2017, 03:59
Location: Romania
Contact:

Re: Hotkeys in Firefox (60.0.1)?

23 Feb 2019, 17:50

The solution should be with AHK only....
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
gregster
Posts: 8989
Joined: 30 Sep 2013, 06:48

Re: Hotkeys in Firefox (60.0.1)?

23 Feb 2019, 17:57

Actually, de-activating with return seems to work for me now - so I have no idea how to solve this. Sorry.

By any chance, do you use context-sensitive hotkey defintions for Firefox that might be wrong and don't fire (and let through the original function of the keys)?
(SetTitleMatchmode correct?)
robodesign
Posts: 934
Joined: 30 Sep 2017, 03:59
Location: Romania
Contact:

Re: Hotkeys in Firefox (60.0.1)?

23 Feb 2019, 18:06

I don't use context sensitive hotkeys. And they do fire....

Anyways, thank you.
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: haomingchen1998, ReyAHK and 244 guests