ExecutionUpdated 2026-07-24

Starting, stopping, and testing combos

Control named combo instances from main and avoid restarting an active sequence every loop.

Overview

Combo control functions let main start, stop, restart, or query a declared timed sequence. Edge-triggered starts usually produce clearer behavior than level-triggered starts.

A combo name is a compile-time symbol, not a string. Use the official function details to confirm restart behavior for the current runtime.

Key facts

  • combo_run starts a declared combo.
  • combo_stop stops a declared combo.
  • A running-state check prevents accidental repeated starts.
  • Combo control is separate from the combo-only call command.

GPC syntax examples

Examples are intentionally small. Replace identifiers only with values documented for your target.

Start once on pressexample.gpc
main {
    if (event_press(XB1_A) && !combo_running(Tap)) {
        combo_run(Tap);
    }
}

combo Tap {
    set_val(XB1_A, 100);
    wait(40);
}

Functions, commands, and terms

Names below are catalog entries, not guessed signatures. Open the official sources for current parameter and return-value details.

NameKindPurpose
combo_runfunction · Zen and Plus

Starts a named combo.

combo_runningfunction · Zen and Plus

Reports whether a named combo is active.

combo_stopfunction · Zen and Plus

Stops a named combo.

combo_restartfunction · Zen and Plus

Restarts a named combo.

combo_suspendfunction · Zen and Plus

Suspends a named combo.

combo_suspendedfunction · Zen and Plus

Reports whether a named combo is suspended.

combo_current_stepfunction · Zen only

Returns the current step of a named combo.

combo_step_time_leftfunction · Zen only

Returns the time remaining in a combo's current step.

combo_stop_allfunction · Zen only

Stops all running combos.

combo_suspend_allfunction · Zen only

Suspends all running combos.

combo_resumefunction · Zen only

Resumes a suspended named combo.

combo_resume_allfunction · Zen only

Resumes all suspended combos.

Common mistakes

Starting the same combo on every held-input cycle.

Passing a quoted combo name.

Confusing call with combo_run.

Official GPC sources

Use these first-party references to confirm exact syntax and runtime behavior for your installed firmware and Studio version.

Related GPC references