MBXRemote | MusicBee Remote Desktop Client | HALRAD Research

Initiator Actions

Initiator Actions are Remote Initiated Actions (RIA) that let you trigger complex automation scripts on the MusicBee system from your remote desktop. When you press a hotkey in MBXRemote, the action script is sent over the network to MusicBee, where it executes directly on the host machine.

The Jukebox Use Case

Imagine your MusicBee runs on a media center PC connected to your living room TV - a digital jukebox. With Initiator Actions, you can sit on your couch with a laptop and remotely switch between MusicBee's UI tabs displayed on the big screen. Change from Now Playing to your Library, switch playlists, or navigate visualizers - all from across the room.

Remote Execution: Unlike local macros, Initiator Actions run on the MusicBee host system. This means keyboard commands, mouse clicks, and program launches happen on the computer running MusicBee (your jukebox/media center), not on your remote client.

Plugin Requirement

Extended MusicBee Remote Plugin Required: Initiator Actions require the extended plugin v1.5.x with ARiA support enabled.

Setting Up MusicBee for RIA

This is the Important Part

Before using Initiator Actions, you must configure MusicBee itself with hotkeys. These are the hotkeys that MBXRemote will send remotely. You can send any hotkey you configure in MusicBee - tab switching is just one example.

Step 1: Open MusicBee Preferences > Hotkeys

  1. Open MusicBee on your jukebox/media center PC
  2. Go to Edit > Preferences
  3. Select Hotkeys from the left panel

Step 2: Configure Tab Navigation Hotkeys

Find the "General: Goto Tab X" actions and assign hotkeys. The screenshot below shows a typical configuration:

MusicBee Preferences > Hotkeys

MusicBee Hotkey Configuration

Example configuration using home-row keys:

MusicBee Action Hotkey Global
General: Goto Tab 1Ctrl+Alt+AYes
General: Goto Tab 2Ctrl+Alt+SYes
General: Goto Tab 3Ctrl+Alt+DYes
General: Goto Tab 4Ctrl+Alt+FYes
General: Goto Tab 5Ctrl+Alt+GYes
General: Goto Tab 6Ctrl+Alt+HYes
General: Goto Tab 7Ctrl+Alt+JYes
General: Goto Tab 8Ctrl+Alt+KYes
General: Goto Tab 9Ctrl+Alt+LYes
Tip: Check the "global" checkbox so the hotkeys work even when MusicBee isn't the focused window. This uses the home-row keys (A, S, D, F, G, H, J, K, L) for easy reach.

Step 3: Enable ARiA in Plugin Settings

  1. Still in Preferences, go to Plugins
  2. Find MusicBee Remote and click "Configure"
  3. Check "Enable ARiA (Arbitrary Remote Initiated Actions)"
  4. Click Save to apply all changes
Remember: You can configure any MusicBee hotkey and send it remotely via Initiator Actions - not just tab switching. Play/pause, volume, shuffle, visualizers - anything with a hotkey can be triggered remotely.

Auto-Configure MusicBee Hotkeys

Instead of manually configuring hotkeys in MusicBee, you can use MBXRemote to automatically add the ARiA hotkeys:

  1. In MBXRemote, go to Settings > Hotkeys
  2. Click "MusicBee ARiA Keys"
  3. Review the status and click Yes to add missing hotkeys
  4. Restart MusicBee to apply the changes

MBXRemote Auto-Configure

MBXRemote ARiA Auto-Configure

This automatically configures 10 global hotkeys in MusicBee:

Works Remotely Too: If MBXRemote is connected to a remote MusicBee server, clicking this button sends the configuration command over the network to configure hotkeys on the remote machine.

How It Works

1. Define Action

Create an Initiator Action in MBXRemote with a hotkey and action script.

2. Press Hotkey

Press the assigned hotkey on your remote Windows desktop.

3. Network Send

MBXRemote sends the action command over the network to MusicBee.

4. Remote Execute

The MusicBee plugin executes the script on the host machine.

Quick Start

  1. Go to Settings > Hotkeys
  2. Click "Initiator Actions"
  3. Click "Add Action"
  4. Set a name, hotkey, and action script
  5. Click "Save"

Initiator Actions Manager

Initiator Actions Manager

Command Reference

sndKeys - Send Keyboard Input to MusicBee Host

Sends keyboard combinations to the MusicBee host system. The keystrokes execute on the remote machine where MusicBee is running.

sndKeys(keys)

Key Modifiers

Modifier Symbol Alternative
Control^CTRL
Alt%ALT
Shift+SHIFT
Windows-WIN

Examples

sndKeys(^%a)           // Ctrl+Alt+A on MusicBee host
sndKeys(CTRL ALT Q)    // Ctrl+Alt+Q (alternative syntax)
sndKeys(^a)            // Ctrl+A (Select All) on host
sndKeys({F5})          // F5 key on host
sndKeys(Hello{ENTER})  // Type "Hello" and press Enter on host

Special Keys

Key Syntax
Enter{ENTER}
Tab{TAB}
Escape{ESC}
Function Keys{F1} - {F12}
Arrow Keys{UP} {DOWN} {LEFT} {RIGHT}
Backspace{BACKSPACE}
Delete{DELETE}
Home/End{HOME} {END}
Page Up/Down{PGUP} {PGDN}

delay - Add Delay Between Commands

Pauses execution between commands on the remote host.

delay(milliseconds)

// Examples:
delay(100)   // Wait 100ms
delay(1000)  // Wait 1 second
delay(5000)  // Wait 5 seconds

mouseClick - Remote Mouse Click

Clicks at specified screen coordinates on the MusicBee host machine.

mouseClick(x, y [, button])

// Examples:
mouseClick(500, 300)          // Left click at (500, 300) on host
mouseClick(100, 200, right)   // Right click on host
mouseClick(640, 480, middle)  // Middle click on host

volume - Control Windows System Volume

Controls the Windows system volume on the MusicBee host machine. This adjusts the OS-level audio, not MusicBee's internal volume (which is controlled via the standard playback commands).

volume(action)

// Examples:
volume(up)      // Increase system volume one step
volume(down)    // Decrease system volume one step
volume(mute)    // Toggle system mute
volume(5)       // Increase 5 steps
volume(-3)      // Decrease 3 steps
Note: This controls the Windows system volume on the host machine, not MusicBee's internal volume. Use the standard playervolume protocol command (via MBXRemote's volume slider) to control MusicBee's internal volume level.

restart - Restart MusicBee or Host System

Restarts MusicBee or the entire host Windows system.

restart(target)

// Examples:
restart(musicbee)  // Restart MusicBee on host
restart(mb)        // Restart MusicBee (short form)
restart(system)    // Restart the host computer
restart(host)      // Restart the host computer (alias)
restart(shutdown)  // Shutdown the host computer
Warning: restart(system) and restart(shutdown) will restart/shutdown the remote MusicBee host computer, not your local machine!

run - Launch Program on Host

Starts an external program on the MusicBee host system.

run(program[, arguments])

// Examples:
run(notepad.exe)                        // Open Notepad on host
run(calc.exe)                           // Open Calculator on host
run(C:\Program Files\app.exe)           // Run with full path
run(C:\Scripts\backup.bat, /silent)     // Run with arguments

Launching Remote Apps via Initiator Actions

A powerful use case is launching audio applications on your jukebox from your remote desktop. For example, if you have slPhantomRemote or other automation tools installed on your MusicBee host:

// Launch slPhantomRemote with dialog mode (shows UI picker)
run(slPhantomRemote, -play dialog)

// Launch slPhantomRemote with a specific preset
run(slPhantomRemote, -play arch)

// Launch a visualizer application
run(C:\Program Files\ProjectM\projectM.exe)

// Run a voice announcement script
run(powershell.exe, -File C:\Scripts\announce.ps1 "Now Playing")
Tip: Combine with delays and other commands for complex automation:
run(slPhantomRemote, -play arch);delay(2000);sndKeys(^%w)

This launches slPhantomRemote, waits 2 seconds, then switches to MusicBee's Library tab.

Command Chaining

Chain multiple commands with semicolons (;). All commands execute sequentially on the remote host:

// Select all and copy (on MusicBee host)
sndKeys(^a);delay(100);sndKeys(^c)

// Navigate to MusicBee tab and refresh
sndKeys(^%q);delay(200);sndKeys({F5})

// Decrease system volume and navigate
volume(-3);delay(100);sndKeys(^%m)

// Complex remote automation
sndKeys(^i);delay(200);sndKeys(^a);delay(100);sndKeys(^c);delay(100);sndKeys({ESC})

Use Cases

Remote Tab Switching on Your TV

Your MusicBee is displaying on the living room TV. From your laptop on the couch, switch what's shown on the big screen:

sndKeys(^%q)  // Switch to Now Playing view on TV
sndKeys(^%w)  // Switch to Library view on TV
sndKeys(^%e)  // Switch to Playlists view on TV

Control the Jukebox Display

Navigate MusicBee's interface on your media center without getting up:

Remote Playlist Control

Trigger MusicBee playlist shortcuts on your jukebox system:

sndKeys(^%1)  // Play playlist 1 on MusicBee host

Remote System Control

Control the MusicBee host system when things go wrong:

restart(musicbee)  // Restart MusicBee if it's unresponsive

Complex Remote Workflows

Chain commands for complex remote automation on your media center:

volume(up);volume(up);delay(500);sndKeys(^%w);delay(500);sndKeys(^p)

Increases system volume two steps, switches to Library tab, starts playback - all executed on your media center.

Tab Navigation Scripts

With MusicBee configured as shown above, use these scripts to switch tabs remotely:

Tab MusicBee Hotkey Initiator Action Script
Tab 1Ctrl+Alt+AsndKeys(^%a) or sndKeys(CTRL ALT A)
Tab 2Ctrl+Alt+SsndKeys(^%s) or sndKeys(CTRL ALT S)
Tab 3Ctrl+Alt+DsndKeys(^%d) or sndKeys(CTRL ALT D)
Tab 4Ctrl+Alt+FsndKeys(^%f) or sndKeys(CTRL ALT F)
Tab 5Ctrl+Alt+GsndKeys(^%g) or sndKeys(CTRL ALT G)
Tab 6Ctrl+Alt+HsndKeys(^%h) or sndKeys(CTRL ALT H)
Tab 7Ctrl+Alt+JsndKeys(^%j) or sndKeys(CTRL ALT J)
Tab 8Ctrl+Alt+KsndKeys(^%k) or sndKeys(CTRL ALT K)
Tab 9Ctrl+Alt+LsndKeys(^%l) or sndKeys(CTRL ALT L)

Default Initiator Actions

MBXRemote includes pre-configured Initiator Actions that match the MusicBee setup above:

MBXRemote Hotkey Sends to MusicBee Result
Ctrl+Alt+AsndKeys(^%a)Goto Tab 1
Ctrl+Alt+SsndKeys(^%s)Goto Tab 2
Ctrl+Alt+DsndKeys(^%d)Goto Tab 3
Ctrl+Alt+FsndKeys(^%f)Goto Tab 4
Ctrl+Alt+GsndKeys(^%g)Goto Tab 5
Ctrl+Alt+HsndKeys(^%h)Goto Tab 6
Ctrl+Alt+JsndKeys(^%j)Goto Tab 7
Ctrl+Alt+KsndKeys(^%k)Goto Tab 8
Ctrl+Alt+LsndKeys(^%l)Goto Tab 9
Matching Hotkeys: When MBXRemote and MusicBee use the same hotkeys (Ctrl+Alt+A through L), pressing a key in MBXRemote sends that exact keystroke to MusicBee, which triggers the corresponding tab switch.

Tips & Best Practices

Timing

Hotkey Selection

Remote Execution

Troubleshooting

Action Not Triggering

Remote Commands Not Working

Limitations