Section sign (§) hotkey not working

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
HefaistoS
Posts: 18
Joined: 18 Jul 2017, 03:12

Section sign (§) hotkey not working

12 May 2019, 05:01

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 :)
gregster
Posts: 9001
Joined: 30 Sep 2013, 06:48

Re: Section sign (§) hotkey not working

12 May 2019, 11:17

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.
HefaistoS
Posts: 18
Joined: 18 Jul 2017, 03:12

Re: Section sign (§) hotkey not working

14 May 2019, 07:30

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 §.
kyuuuri
Posts: 340
Joined: 09 Jan 2016, 19:20

Re: Section sign (§) hotkey not working

14 May 2019, 07:45

You can install KeyBoardHook to see how the script detects the key and then use this value to create the hotkey

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, mcd, Nerafius, Rohwedder and 114 guests