VoiceMeeter-interface/flag.ahk

9 lines
333 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")
2022-03-14 10:34:40 -05:00
req.Open("GET", msg, False) ; Don't need the script to be responsive for anything else, its only doing this. This also makes sure that the request gets sent instead of exiting prematurely
req.Send()
Exit