From 6f37d6aa9ef36688a313efcf2f763d5b8d61f336 Mon Sep 17 00:00:00 2001 From: David Daily Date: Tue, 21 Jun 2022 12:05:51 -0500 Subject: [PATCH] minor update --- flag.ahk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flag.ahk b/flag.ahk index ec9eb48..b20e976 100644 --- a/flag.ahk +++ b/flag.ahk @@ -2,9 +2,10 @@ If !(A_Args[1]) { Exit } -ComObjError(0) ; makes it not throw errors when it can't reach the IP +ComObjError(0) msg := "http://RasPi.daily:8888/lights/" . A_Args[1] req := ComObjCreate("WinHttp.WinHttpRequest.5.1") -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.Open("GET", msg, True) req.Send() +Sleep, 75 Exit \ No newline at end of file