usb foot switch for guitar pedal looping

Starter AutoHotKey Foot Switch Script for Use with Ableton Live

AutoHotKey can be used to string together keystrokes and reduce complex actions in Ableton to a single keystroke. That key can then be mapped to the USB foot switch for easy foot control. The foot switch shown above can trigger three different key sequences (one for each pedal). A simple example would be the sequence CTRL + Z reduced to a single key and then triggered with the foot switch. A more complex sequence might be Space Bar, CTRL + Z, F9. That sequence restarts recording in Ableton’s arrangement view. More examples below.

For PC:

  1. Copy the script below and paste it into a notepad file.
  2. Save the file as “Abelton Shortcuts.txt”
  3. Once saved, rename the file “Ableton Shortcuts.ahk”
  4. Download and install AutoHotKey (PC Only).
  5. Double click on “Abelton Shortcuts.ahk” to run the script.

Once you complete those steps, the following will happen:

When Pressing the Insert Key on Your Keyboard

When pressing the Insert key on your keyboard, AutoHotKey (AHK) will send the following keystrokes to Ableton:

  • Delete
  • Enter

When in a clip slot in Ableton, this will effectively restart recording of an active clip slot – either during the recording of that clip slot or right after.

When Pressing the Home Key on Your Keyboard

When pressing the Home key on your keyboard, AHK will send the following keystrokes to Ableton:

  • Space Bar (stops recording in arrangement view)
  • CTRL + Z (undoes previous recording)
  • F9 (starts recording again)

This shortcut is not for loop recording but rather for re-triggering record takes.

AutoHotKey can be used to string together any key sequence you can think of. So while the starter script below gives a couple of useful examples, the possibilities are large. Here is the list of keys in the AutoHotKey documentation. From there you can see how I built the starter script and make modifications.

For Mac:

AutoHotKey is for PC only. However, it may be possible to create key sequences directly in the MAC OS. I have a MAC coming soon and will be testing this setup. Alternatibely, you may also be able to use the BOME MIDI Translator along with the Behringer FCB1010 foot pedal.

Here’s the Code to Copy:

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.

SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

#IfWinActive ahk_exe Ableton Live 11 Suite.exe
Insert:: ; this resets recording of an active clip in session view
Send, {Delete}
Send, {Enter}
return

#IfWinActive ahk_exe Ableton Live 11 Suite.exe
Home:: ; this resets recording of an active track in arrangement view
SetKeyDelay, 200
Send, {Space}
Send, ^z
Send, {f9}
return

See It In Action: