The Run Command (foo_runcmd) component for foobar2000 is an essential plugin that allows users to search for and execute menu commands directly via the command line or a graphical interface. Designed by foosion, this lightweight utility unlocks powerful automation capabilities. It allows you to trigger deep, buried menu actions in your foobar2000 audio player using text strings.
This step-by-step guide covers how to install, configure, and maximize the efficiency of foo_runcmd to streamline your media management workflows. What is foo_runcmd?
In foobar2000, navigating complex context menus to randomize a playlist, update tags, or clear the console can slow you down. The Run Command component bridges this gap. It provides a fast, unified search prompt for all menu interactions and enables command-line control over your player’s hidden actions. Step 1: Download and Install the Component
To use the tool, you must first add it to your player environment.
Download the official component file from the foobar2000 Components Repository. Open foobar2000. Navigate to File > Preferences > Components. Click the Install… button. Select the downloaded foo_runcmd.fb2k-component file. Click Apply and restart your player. Step 2: Accessing the Graphical Interface
Once installed, you can query and execute commands instantly without writing terminal strings.
Open the interface by selecting File > Run Command from the top main menu.
Type a keyword into the pop-up search bar (e.g., “Randomize” or “Console”).
Select the desired command from the filtered list to execute it immediately. Step 3: Triggering Actions via the Command Line
The real power of foo_runcmd lies in system automation, external script execution, or custom desktop shortcuts.
Open your Windows Command Prompt or a batch script and invoke the main executable file using the /runcmd flag: foobar2000.exe /runcmd=” Use code with caution. Important Command Configurations
The syntax must exactly match your intended menu string. Ensure you pick the right parameter variant depending on what you want to control: Parameter Flag /runcmd= Triggers a global main menu action. foobar2000.exe /runcmd=“View/Console” /runcmd-playing= Targets the track currently playing. foobar2000.exe /runcmd-playing=“Properties” /runcmd-playlist= Executes a command on active playlist items. foobar2000.exe /runcmd-playlist=“Edit/Sort/Randomize”
Note: The pattern string must match an unambiguous menu item name. If multiple items match, the component will not execute any action to prevent errors. Step 4: Binding Commands to Global Hotkeys
You can bind specialized strings to physical keyboard shortcuts. Go to Preferences > Keyboard Shortcuts. Click Add New. Scroll down to find the [main] / Run Command options. Assign your specific text string pattern.
Map your preferred physical key combination and check Global if you want it to trigger outside the application window. Troubleshooting Common Errors
Ambiguity Failures: If your command fails silently, your search pattern is likely matching more than one menu entry. Be specific (e.g., use “Playback/Volume/Up” instead of just “Up”).
Quotes Missing: When utilizing command line strings, wrap your parameter arguments tightly in straight quotation marks to avoid your OS shell mishandling path spaces.
If you want to optimize your player workflow further, I can provide examples for advanced script automation, specific keyword matching formulas, or help you map out a custom hotkey strategy. Which of these Foobar2000:Commandline Guide – Hydrogenaudio Knowledgebase
Leave a Reply