VoiceMeeter-interface/flag.ahk

10 lines
239 B
AutoHotkey
Raw Normal View History

If !(A_Args[1])
{
Exit
}
msg := "http://RasPi.daily:8888/lights/" . A_Args[1]
req := ComObjCreate("WinHttp.WinHttpRequest.5.1")
req.Open("GET", msg, True)
req.Send()
Sleep, 50 ; make sure the request actually gets sent before we exit
Exit