Page 1 of 1

Section sign (§) hotkey not working

Posted: 12 May 2019, 05:01
by HefaistoS
Hi guys!

I want to map some action to the § key (Section sign key) from my keyboard. I just want to use it as a hotkey.
Let's just take a simple example like this one:

§::6

- have saved it as UTF-8-BOM and it doesn't work

6::§

- this one works. when i press "6" it will write "§"

Hope somebody can help me with this one :)

Re: Section sign (§) hotkey not working

Posted: 12 May 2019, 11:17
by gregster
What means doesn't work? Doesn't work at all or doesn't do what you want?

Your keyboard layout may be different than mine, but the effect should be comparable:
§::6 produces & on my keyboard layout. To get §, I have to type Shift+3, but & is Shift+6 - that means Shift doesn't get released. Why is that?

Try:

Code: Select all

§::Send 6
This is now a hotkey. Before you had a remapping:
https://www.autohotkey.com/docs/misc/Remap.htm#Remap wrote:[...] a remapping never "releases" the modifier keys which are used to trigger it. For example, A::b is typically equivalent to A::B and ^a::b is equivalent to ^a::^b. This is because each remapping internally uses {Blind} to allow the key or key combination to be combined with other modifiers.

Re: Section sign (§) hotkey not working

Posted: 14 May 2019, 07:30
by HefaistoS
HI!
On my keyboard layout i have a key that when i pressed produces: § .
I want to use this key to open a program/do something, doesn't matter explicitly.
So i've tried to use (with the purpose of testing) it in order to produce a number ( number 6 - as the example above). But it doesn't work. Nothing happens when i press §.

Re: Section sign (§) hotkey not working

Posted: 14 May 2019, 07:45
by kyuuuri
You can install KeyBoardHook to see how the script detects the key and then use this value to create the hotkey