From 6a6b8ad9c6211b87e6d45280fd81e4c54eace652 Mon Sep 17 00:00:00 2001 From: David Daily Date: Mon, 14 Mar 2022 10:34:40 -0500 Subject: [PATCH] remove Sleep --- flag.ahk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flag.ahk b/flag.ahk index 7f3be01..f6e4491 100644 --- a/flag.ahk +++ b/flag.ahk @@ -4,7 +4,6 @@ If !(A_Args[1]) } msg := "http://RasPi.daily:8888/lights/" . A_Args[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() -Sleep, 50 ; make sure the request actually gets sent before we exit Exit \ No newline at end of file