Posts: 24
Threads: 11
Joined: Jan 2018
I dont know why but I have tried everything. Making sure hotkeys/triggers is enabled, making sure the triggerkey on the macro is correct and is stated so on the macro but everytime I press the trigger, nothing happens. However if I click RUN, the macro works.
Would really appreciate some help with this!!!
Posts: 12,074
Threads: 141
Joined: Dec 2002
01-07-2018, 07:50 AM
(This post was last modified: 01-08-2018, 06:54 AM by Gintaras.)
Some possible reasons, and how to fix or debug it:
Restart Quick Macros. Sometimes Windows disables a low-level hook because of timeout. These hooks are used for triggers.
In Options/Triggers, in the first list must be selected Keyboard. By default all are selected.
In Options/Trigger, Use low-level hook, try to uncheck Keyboard. Then Apply and test triggers. Check again if it does not help.
Run this macro to test whether low-level keyboard hooks work.
Function
LL_keyboard_hooks
int hh=SetWindowsHookEx(WH_KEYBOARD_LL &sub.LLKeyboardProc _hinst 0)
mes "Press several keys while this message box is open. It should display key names in QM output."
UnhookWindowsHookEx hh
#sub LLKeyboardProc
function nCode wParam KBDLLHOOKSTRUCT&h
FormatKeyString h.vkCode 0 &_s
out "%s %s%s" _s iif(h.flags&LLKHF_UP "up" "down") iif(h.flags&LLKHF_INJECTED ", injected" "")
ret CallNextHookEx(0 nCode wParam &h)
Also test mouse triggers.