SAMMI Extensions
Advanced Button Functions
Easily run a random button, check if a button is running or blocked, and more!
Features
- Run a random button from a specified deck or group
- Check if a button is currently running, in queue (and how many are in queue), or blocked
- Retrieve all running and blocked buttons
- Stop all buttons in a selected deck
- Get buttons by triggers
- Retrieve button information (deck name, group ID, image name, init variables, etc.)
Comes with a premade deck containing all available commands and explanations.
Setup
Compatibility
This extension may stop working if there are significant updates to SAMMI Core. If that happens, please contact the developer for an update.
- Ensure you're on the latest version of SAMMI.
- Install the extension. You can follow the Extension Install Guide.
- Press the red INIT button and wait for an alert indicating the extension is loaded. This only needs to be done once, as it will load automatically whenever you connect to Bridge.
- Review the premade deck "Advanced Button Functions" for all available extension commands.
Available Commands
Command Usage Reminder
These commands require a waiting period before 'Save Variable As' is populated. Use the Wait Until Variable Exists command, and remember to delete the variable you're waiting for beforehand.
Run Random Deck Button
Command Name: ADVBTN Run Random Deck Button
Runs a random button from a specified deck.
Box Name | Explanation |
---|---|
Deck ID | The ID of the deck you want to run a random button from. |
Queuable | Whether to run the button as queueable. |
Exclude Buttons | Comma-separated button IDs to exclude (e.g., ID1, ID2). |
Save Variable As | Variable name to save the random button ID. |
Run Random Group Button
Command Name: ADVBTN Run Random Group Button
Runs a random button from a specified group.
Box Name | Explanation |
---|---|
Group Name | The group name to randomly run the button from. |
Queuable | Whether to run the button as queueable. |
Exclude Buttons | Comma-separated button IDs to exclude (e.g., ID1, ID2). |
Save Variable As | Variable name to save the random button ID. |
Get Running Buttons
Command Name: ADVBTN Get Running Buttons
Retrieves all currently running button IDs in an array (not real-time, reflects state when executed).
Box Name | Explanation |
---|---|
Save Variable As | Variable name to save the array into. |
Get Blocked Buttons
Command Name: ADVBTN Get Blocked Buttons
Retrieves all currently blocked button IDs in an array (not real-time, reflects state when executed).
Box Name | Explanation |
---|---|
Save Variable As | Variable name to save the array into. |
Get All Buttons By Trigger
Command Name: ADVBTN Get All Buttons By Trigger
Retrieves an array of all button IDs the selected trigger is attached to.
Box Name | Explanation |
---|---|
Trigger Type | Trigger type to get the button IDs attached to. |
Save Variable As | Variable name to save the array into. |
Check Running Button
Command Name: ADVBTN Check Running Button
Checks if the given button is currently running, returns true/false (not real-time, reflects state when executed).
Box Name | Explanation |
---|---|
Button ID | Button ID to check if it's running. |
Save Variable As | Variable name to save the result into. |
Stop Buttons By Deck
Command Name: ADVBTN Stop Buttons By Deck
Stops all buttons in the specified deck.
Box Name | Explanation |
---|---|
Deck ID | The ID of the deck you want to stop all buttons in. |
Stop Ongoing | Whether to stop ongoing buttons. |
Stop Queued | Whether to stop queued buttons. |
Exclude Self | Whether to exclude the button that triggered the command. |
Unblock All Buttons
Command Name: ADVBTN Unblock All Buttons
Unblocks all currently blocked buttons, including those in disabled decks. A yellow notification alert is displayed if successful.
Get Help
Please see Troubleshooting for common extensions issues.