2022-03-14 10:31:19 -05:00
|
|
|
If !(A_Args[1])
|
2021-01-19 15:39:04 -06:00
|
|
|
{
|
2022-03-14 10:31:19 -05:00
|
|
|
Exit
|
2021-01-19 15:39:04 -06:00
|
|
|
}
|
2022-03-14 10:31:19 -05:00
|
|
|
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
|