From 8e3fc209aaf0199bf1c2fae6d244d4c686711366 Mon Sep 17 00:00:00 2001 From: David Daily Date: Thu, 17 Mar 2022 15:26:39 -0500 Subject: [PATCH] Update 'flag.ahk' --- flag.ahk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flag.ahk b/flag.ahk index 2101508..ec9eb48 100644 --- a/flag.ahk +++ b/flag.ahk @@ -2,7 +2,7 @@ If !(A_Args[1]) { Exit } -ComObjError(0) ; makes it not throw errors when it can't reach the IP +ComObjError(0) ; makes it not throw errors when it can't reach the IP 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