Some programs deny hotkeys

Announcements, general discussion
ZwuckeL
Posts: 5
Joined: 03 Feb 2012, 13:13

Some programs deny hotkeys

Post by ZwuckeL » 08 May 2012, 06:03

Until now, HIDMacros didnt work inside of Adobe Reader. Recently it also doesn't work when a google Chrome window is active. Is there a way for you to fix that? Or is it only the other applications blocking hotkeys?,
If you need examples: Ctrl + Alt + 1 , 2 , 3 , 4 , 5 won't work inside of a chrome window and inside a Adobe Reader window :/

ZwuckeL
Posts: 5
Joined: 03 Feb 2012, 13:13

Re: Some programs deny hotkeys

Post by ZwuckeL » 08 May 2012, 06:04

also an addtion, actually, when I press the hotkeys myself, they will work (in chrome, as well in adobe reader)

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Some programs deny hotkeys

Post by admin » 10 May 2012, 06:54

Before I check, is there someone else having this problem?
Petr Medek
LUAmacros author

ZwuckeL
Posts: 5
Joined: 03 Feb 2012, 13:13

Re: Some programs deny hotkeys

Post by ZwuckeL » 10 May 2012, 09:46

hey, glad you are responding. I can give a bit more detailed information.

I'm using HIDMacros to send commands like Ctrl + Alt + 1 to Winamp, which are global hotkeys configured inside of Winamp to rate, pause, skip songs. I'm using the macros on a keypad AND a wireless keyboard. Both work fine. Macros outside of the faulty programms from both work too, on both devices.

It used to work fine in chrome for a long time. Only lately it doesn't anymore.

BUT: If I press the hotkeys myself CTRL ALT 1 , it will work.

Programs i have tested where this same behaviour shows are:
Chrome 18.0.1025.168
Adobe Reader 10.1.3
Skype 5.8.0

Everything in Windows 7 64bit Professional

Also for a short time I am getting an error when I quit HIDmacros
Image

ZwuckeL
Posts: 5
Joined: 03 Feb 2012, 13:13

Re: Some programs deny hotkeys

Post by ZwuckeL » 10 May 2012, 09:57

Also I'd like to add that the Programs have to be active to will stop the macro from working. When I click on the desktop or Windows Explorer, I can start the macro by hitting the button on the Numpad or Wireless Keyboard

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Some programs deny hotkeys

Post by admin » 11 May 2012, 07:12

If you need to control winamp I would rather choose some script control through ActiveX. Try to google "winamp activex control", install some plugin and put appropriate script into scripted macro. This would be better way then rely on global hotkeys.
Regarding you problem - yes, I can do similar test as I'm using also Win7 64bit, but this will take time, because currently I have no time for my hobbies (like coding HIDmacros :-))
Petr Medek
LUAmacros author

Zalastax
Posts: 5
Joined: 11 Mar 2014, 21:21

Re: Some programs deny hotkeys

Post by Zalastax » 11 Mar 2014, 21:52

I am having this problem as well. Battlefield 3 worked first, but is not working any longer. Firefox seems to consume the key events as well. Is there anything I can do to help you resolve this issue?

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Some programs deny hotkeys

Post by admin » 12 Mar 2014, 08:49

Details?
What is your macro action, what exactly "doesn't work" means?
Petr Medek
LUAmacros author

Zalastax
Posts: 5
Joined: 11 Mar 2014, 21:21

Re: Some programs deny hotkeys

Post by Zalastax » 12 Mar 2014, 12:00

admin wrote:Details?
What is your macro action, what exactly "doesn't work" means?
I can see that HID macros doesn't receive the events at all. The "Test Area - last input event" updates correctly if a window that doesn't steal the events is focused. But it will not update if I have a window that steal the events focused (e.g. Firefox or Battlefield 3).
My macro action is sending the F13/F14/F15 keys, but I am completely sure that there is no issue with the macros themselves, as you can see in my explanation above.
Do you know of any tool I could use to identify the problem?

Upon further testing I found that events are not consumed. Using https://github.com/jleb/AHKHID I can intercept all events, even in Firefox.
To try it out yourself:
  • Install AutoHotkey. Download AHKHID.ahk and example_2.ahk.
  • Add the line #Include %A_ScriptDir%\AHKHID.ahk first in example_2.ahk.
  • Launch example_2.ahk and input into UsagePage:1 Usage:6 and tick RIDEV_INPUTSINK.
I appreciate your work and understand that it may take time to resolve this issue!

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Some programs deny hotkeys

Post by admin » 13 Mar 2014, 09:21

So it means:
- you start hidmacros
- you start Firefox and give it a focus
- then as you type in Firefox the "Test area - last input event" is not updated with pressed keys that go to Firefox? Any key is not logged in HidMacros just because you have Firefox window opened and active?
Petr Medek
LUAmacros author

Post Reply