Get inputhook to trap function keys

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jmorr
Posts: 28
Joined: 23 Mar 2022, 15:26

Get inputhook to trap function keys

25 Apr 2024, 23:02

I have not set option V or -S but function keys are reaching the app. I guess they go there before they even get to AHK. Is there a solution to this? I want the keypress to go into the input buffer and nowhere else.
Rohwedder
Posts: 7697
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Get inputhook to trap function keys

26 Apr 2024, 01:05

Hallo,
see https://www.autohotkey.com/docs/v1/lib/InputHook.htm#VisibleNonText
Controls whether keys or key combinations which do not produce text are visible (not blocked).
CurrentSetting is NewSetting if assigned, otherwise 1 (true) by default. The V option sets this to 1 (true).
Just set to false (blocked)!

(I was just a bit irritated myself until I discovered that in the German manual I was using, blocking and non-blocking were unfortunately swapped around.
My german change request: viewtopic.php?p=569596#p569596 )
jmorr
Posts: 28
Joined: 23 Mar 2022, 15:26

Re: Get inputhook to trap function keys

26 Apr 2024, 05:12

Thanks. I didn't read past "V: Sets VisibleText and VisibleNonText to 1 (true). Normally, the user's input is blocked (hidden from the system). Use this option to have the user's keystrokes sent to the active window." If I had I would have seen that it's only text characters that are normally blocked.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], digidings, EUPHORlCc, GEOVAN and 159 guests