In a keyboard hook, when i use SendInput_() this API call a new time the hook
For not have this behavior, is it possible to modify the directly the CallNextHookEx_() in the hook rather using SendInput_()
I have try, but the character writing is not modified by a "R"
Code: Select all
#WH_KEYBOARD_LL = 13
Global Hook
Procedure KeyboardHook(nCode, wParam,lParam)
*keyInput.KBDLLHOOKSTRUCT = lParam
If wParam = #WM_KEYDOWN
*keyInput\vkCode = 82
*keyInput\scanCode = 13
Result = CallNextHookEx_(hook, nCode, wParam, *keyInput)
EndIf
ProcedureReturn Result
EndProcedure
OpenWindow(0, 0, 0, 350, 100, "")
hook = SetWindowsHookEx_(#WH_KEYBOARD_LL, @KeyboardHook(), GetModuleHandle_(0), 0)
Repeat : WaitWindowEvent(100) :Until GetAsyncKeyState_(#VK_ESCAPE)