flag now runs off a RasPi with its own API. Response time is faster than the windows desktop app
10 lines
239 B
AutoHotkey
10 lines
239 B
AutoHotkey
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 |