Skip to content
cajhin edited this page Jan 1, 2021 · 3 revisions

combo (keyLabel1 + keyLabel2)

keyLabel : any real key (LSHF, F1, A, ...)
Using virtual keys makes no sense since they will not be sent out.

Sends a sequence of

  1. key1 down
  2. key2 down
  3. key2 up
  4. key1 up

Pressed keys are not touched.
This can be a problem when combo() is triggered by a real modifier; see Function: key() for explanation.

In comparison to Function: moddedKey():
combo() can deal with only one modifier, but it can also create combos with non-modifiers (e.g. I use F14+C to tell AHK to start the Calculator)

Example

On MOD9+N, send Ctrl+Left

COMBO N [...& .... ....] > combo(LCtrl+Left)

On MOD11+C, send F14+C

COMBO C [.&.. .... ....] > combo(F14+C)