remove Sleep
This commit is contained in:
parent
2047191848
commit
6a6b8ad9c6
3
flag.ahk
3
flag.ahk
@ -4,7 +4,6 @@ If !(A_Args[1])
|
|||||||
}
|
}
|
||||||
msg := "http://RasPi.daily:8888/lights/" . A_Args[1]
|
msg := "http://RasPi.daily:8888/lights/" . A_Args[1]
|
||||||
req := ComObjCreate("WinHttp.WinHttpRequest.5.1")
|
req := ComObjCreate("WinHttp.WinHttpRequest.5.1")
|
||||||
req.Open("GET", msg, True)
|
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()
|
req.Send()
|
||||||
Sleep, 50 ; make sure the request actually gets sent before we exit
|
|
||||||
Exit
|
Exit
|
Loading…
Reference in New Issue
Block a user