That is completely correct. And if I then focus some other window the "Test area - last input event" starts updating as it should, until I focus Firefox again.admin wrote: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?
Some programs deny hotkeys
Re: Some programs deny hotkeys
Re: Some programs deny hotkeys
Hmm, at my computer it works fine so I'm not able to check where's the problem .
Try to run hidmacros with debug parameter (just start "HidMacros.exe debug") and it will create debug log in hidmacros directory. Then you can check what happens if keys are processed correctly (in different app than FF) and what's the difference in log with FF as active app.
Or you can send me the log, but somehow mark correct and wrong version (or part).
Try to run hidmacros with debug parameter (just start "HidMacros.exe debug") and it will create debug log in hidmacros directory. Then you can check what happens if keys are processed correctly (in different app than FF) and what's the difference in log with FF as active app.
Or you can send me the log, but somehow mark correct and wrong version (or part).
Petr Medek
LUAmacros author
LUAmacros author
Re: Some programs deny hotkeys
Log for when I am on the desktop: http://pastebin.ca/2662501
Log for when I am in firefox: http://pastebin.ca/2662504
Log for when I switch from notepad to notepad++: http://pastebin.ca/2662505
We can quickly see that a typical keystroke on the dekstop looks like:
19:16:26.282 (35129546): WM_INPUT (35129546) KEYBOARD message WM_KEYDOWN. Key code: 65. Dev handle: 65599, ext info:0
19:16:26.282 (35129546): Received DLL asking message: WParam WM_KEYDOWN, LParam 0041
19:16:26.394 (35129656): WM_INPUT (35129656) KEYBOARD message WM_KEYUP. Key code: 65. Dev handle: 65599, ext info:0
19:16:26.394 (35129656): Received DLL asking message: WParam WM_KEYUP, LParam 0041
And in Firefox:
19:25:45.444 (35688703): WM_INPUT (35688703) KEYBOARD message WM_KEYDOWN. Key code: 65. Dev handle: 65599, ext info:0
19:25:45.544 (35688796): WM_INPUT (35688796) KEYBOARD message WM_KEYUP. Key code: 65. Dev handle: 65599, ext info:0
The same thing happens in the file where I switch from a working program to a non-working program.
Log for when I am in firefox: http://pastebin.ca/2662504
Log for when I switch from notepad to notepad++: http://pastebin.ca/2662505
We can quickly see that a typical keystroke on the dekstop looks like:
19:16:26.282 (35129546): WM_INPUT (35129546) KEYBOARD message WM_KEYDOWN. Key code: 65. Dev handle: 65599, ext info:0
19:16:26.282 (35129546): Received DLL asking message: WParam WM_KEYDOWN, LParam 0041
19:16:26.394 (35129656): WM_INPUT (35129656) KEYBOARD message WM_KEYUP. Key code: 65. Dev handle: 65599, ext info:0
19:16:26.394 (35129656): Received DLL asking message: WParam WM_KEYUP, LParam 0041
And in Firefox:
19:25:45.444 (35688703): WM_INPUT (35688703) KEYBOARD message WM_KEYDOWN. Key code: 65. Dev handle: 65599, ext info:0
19:25:45.544 (35688796): WM_INPUT (35688796) KEYBOARD message WM_KEYUP. Key code: 65. Dev handle: 65599, ext info:0
The same thing happens in the file where I switch from a working program to a non-working program.
Re: Some programs deny hotkeys
Do you use UAC in your windows 7?
Are you running all programs as the same user (especially HidMacros vs FF+Notepad++)?
Is not HidMacros influenced by your antivirus program (some kind of sand box)?
Try to run all (Hidmacros, FF) as Administrator.
It seems that something prevents FF and Notepad++ to accept global keyboard hook injected by HidMacros...
If none of those helps I'll have closer look into source code and probably prepare special version with imrpoved logging.
Are you running all programs as the same user (especially HidMacros vs FF+Notepad++)?
Is not HidMacros influenced by your antivirus program (some kind of sand box)?
Try to run all (Hidmacros, FF) as Administrator.
It seems that something prevents FF and Notepad++ to accept global keyboard hook injected by HidMacros...
If none of those helps I'll have closer look into source code and probably prepare special version with imrpoved logging.
Petr Medek
LUAmacros author
LUAmacros author
Re: Some programs deny hotkeys
No UAC and antivirus did not affect anything.admin wrote:Do you use UAC in your windows 7?
Are you running all programs as the same user (especially HidMacros vs FF+Notepad++)?
Is not HidMacros influenced by your antivirus program (some kind of sand box)?
Try to run all (Hidmacros, FF) as Administrator.
It seems that something prevents FF and Notepad++ to accept global keyboard hook injected by HidMacros...
If none of those helps I'll have closer look into source code and probably prepare special version with imrpoved logging.
Running as administrator solves the problem but it's not a great solution.
The AutoHotkey script I sent you worked without needing to launch as administrator so a solution should be possible.
Try to solve it if you have time and I will be here to support you if needed.