Examples
AutoHotKey Actions
Execute your Streamer.bot actions with AutoHotKey
You can use AutoHotKey to execute your Streamer.bot Actions in realtime via the UDP Server
Prerequisites
1
Install AutoHotKey v2
Navigate to the AutoHotKey website to download and install AutoHotKey v2
2
Download Example Scripts
Whipstickgostop/streamerbot-ahk
View source on GitHub or direct .zip download
Instructions
1
Enable the Streamer.bot UDP Server
Navigate to Servers/Clients > UDP Server in Streamer.bot
- Enable
Auto Start
and then start the UDP Server
2
Open Example Script in Editor
- Extract the
streamerbot-ahk
zip to any location. - Open the extracted folder and then open the
example-do-action.ahk
in any text editor.
3
Update Connection Settings
- If you changed UDP Server settings in Streamer.bot, update the
StreamerbotUDP
connection details to match your configuration.
example-do-action.ahk
; Update Streamer.bot Host IP and port as needed
sb := StreamerbotUDP("127.0.0.1", 4242)
4
Configure HotKeys
- Setup Key Combinations
- By default, the script is configured with hotkeys on F12 and F11.
- You can add or modify any hotkeys as needed.
- Update Action IDs
- In Streamer.bot, Right-Click on the action you want to execute from AHK, and select
Copy Action ID
- Update the
sb.DoAction("<action-id>")
lines to use your selected action ID
- In Streamer.bot, Right-Click on the action you want to execute from AHK, and select
example-do-action.ahk
; Set to your desired keybind or key combination
F11::
{
; Set to your desired Action ID
sb.DoAction("94754342-3397-4dbc-8b16-123906b34015")
}
5
Start Script
- Run the
example-do-action.ahk
script
F12 and F11(or your updated hotkey combinations) should now execute your selected actions!
Tips & Tricks
- You can easily create your own new scripts from scratch by simply including the core
lib/streamerbot.ahk
file from any new.ahk
script!
Â