geralt
geralt

Reputation: 1

AutoHotkey: shift + number mapping

I'm trying to remap some keys in AutoHotkey. This is the code I'm using in AutoHotkey.ahk:

+8::Send, {*}
+9::Send, {(}
+0::Send, {)}

However, this is not working at all. I keep getting ( when I type CTRL + 8.

Upvotes: 0

Views: 1694

Answers (2)

lintalist
lintalist

Reputation: 383

You could try using the & to create a custom combination of two keys - see http://ahkscript.org/docs/Hotkeys.htm#Features for an introduction.

shift & 8::Send {*}

Also note that:

The first comma of any command may be omitted (except when the first parameter is blank or starts with := or =, or the command is alone at the top of a continuation section - see http://ahkscript.org/docs/Scripts.htm#esc

Upvotes: 0

peterjtk
peterjtk

Reputation: 41

I think the problem is the comma, this should work:
+8::Send {*} +9::Send {(} +0::Send {)}

you can also map like this:
+8::* +9::( +0::)

Although I couldn't map number keys this way for some reason. finally if all else fails you could try mapping by scan code

Upvotes: 1

Related Questions