Monkey5595
Monkey5595

Reputation: 3

Autohotkey script - Combining two keypresses into one

I have a question regarding combining two key presses

Alt and `

into one key press

`

I have tried to fiddle around and search for some similar examples but none have worked for me unfortunately!

I want to have my script hold down the Alt key (RAlt preferably) and then press

`

once (backtick character - usually located on the same key as the tilde). It triggers a menu in a certain game which used to be accessible by just pressing ` one time.

I've tried the following code segment but it doesn't work.

    `::
    KeyWait RAlt
    Send, {`}
    Return

Any and all help is greatly appreciated! Thanks.

Upvotes: 0

Views: 2412

Answers (1)

Elliot DeNolf
Elliot DeNolf

Reputation: 2999

This should be as simple as mapping the keys like this:

`::!`

If you really would like to use the RAlt specifically:

`::Send {RAlt Down}{``}{RAlt Up}

Upvotes: 1

Related Questions