Reply To: Hotkey to automate

Home Forums Forum English (EN) Hotkey to automate Reply To: Hotkey to automate

#11859

xpclient

Here is a simple AutoHotKey script to toggle Stream What You Hear using the hotkeys Ctrl+Shift+S. You can of course modify the –streamto portion to include your UPnP/DLNA renderer’s name so it starts directly streaming to it:

^+s::StartClose(“SWYH.exe”)

StartClose(exe)
{
Process, Exist, %exe% ; check to see if program is running
If (ErrorLevel = 0) ; If program is not running -> Run
{
Run, C:\Program Files (x86)\Stream What You Hear\SWYH.exe –streamto:
}
Else ; If program is running, ErrorLevel = process id for the target program -> Close
{
Process, Close, %ErrorLevel%
}
}

Posted in