Question

I have the follow autohotkey map:

    ^j:: Send ^{PgUp}

This works fine. It maps control + j to control+pagedown.

But I would like to map the keycombination

    s & j:: Send ^{PgUp}

So when you press s and j simultaneously, it will send control pagedown to Windows. Then i'm running into the problem that the character 's' never shows up in my input field, but the character 'j' is appearing as normal. That is weird. The combo key is working, by the way. But I want to get the character 's' key working too.

And are there ways to map the key combination sj (when the both are pressed simultaneously) ?

Was it helpful?

Solution

~s & j:: Send ^{PgUp} return

was the winning answer by the way, got it from the user RCHP on Autohotkey forum :)

OTHER TIPS

This is by design. The first key of a custom hotkey always loses it's original function. To work around this, create a new hotkey for "s" that sends "s".

In AutoHotKey, hotkeys override their normal function, which is generally desirable. In order to avoid this behavior, prefix your hotkey with a tilde.

~s & j:: Send ^{PgUp} return

The terrific AHK docs explain this.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top