Normal mapping and key reuse

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
drakgoku
Posts: 19
Joined: 01 Feb 2020, 07:12

Normal mapping and key reuse

01 Feb 2020, 12:41

Hello,

This is a question that has nothing to do with the previous two.

When you map the LAlt with F10 and assign it a key, when you only press "LAlt" it works as if it were F10. But when to the assignment of LAlt being F10 and press LAlt + (some key) does not make F10 + some key

Code: Select all

LAlt::F10

F10::
 ;// Enter when you press F10
return

F10 & 1::
 ;// Never Enter (When you press Lalt  + 1 = Lalt +1, mapping does not work)
return
I think they are having internal programming problems.
If this is not the case, can someone tell me why?

Regards.
Tcharr
Posts: 41
Joined: 25 Jan 2020, 15:38

Re: Normal mapping and key reuse

01 Feb 2020, 15:42

Does it work when you press F10 and 1?
gregster
Posts: 9053
Joined: 30 Sep 2013, 06:48

Re: Normal mapping and key reuse

02 Feb 2020, 01:39

https://www.autohotkey.com/docs/commands/SendLevel.htm#General_Remarks wrote:By default, hook hotkeys and hotstrings ignore keyboard and mouse events generated by any AutoHotkey script. In some cases it can be useful to override this behaviour; for instance, to allow a remapped key to be used to trigger other hotkeys. SendLevel and #InputLevel provide the means to achieve this.
Try:

Code: Select all

#InputLevel 1	; #InputLevel controls which artificial keyboard and mouse events are ignored by hotkeys and hotstrings.
LAlt::F10

#InputLevel 0
F10::
	msgbox F10
return

F10 & 1::
 	msgbox F10 & 1 
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: hiahkforum and 407 guests