From 34a02bfd11bf686151970734cf6036e64bfa4d73 Mon Sep 17 00:00:00 2001 From: Narsty <132179825+narstybits@users.noreply.github.com> Date: Fri, 12 May 2023 22:51:20 -0500 Subject: [PATCH] Add files via upload --- Goodusb/Toggle Wifi.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Goodusb/Toggle Wifi.txt diff --git a/Goodusb/Toggle Wifi.txt b/Goodusb/Toggle Wifi.txt new file mode 100644 index 0000000..1d4661f --- /dev/null +++ b/Goodusb/Toggle Wifi.txt @@ -0,0 +1,26 @@ +REM Toggle Wifi +REM You'll need to STOP the Script after you see the wifi turn off (about 3 seconds) +REM To turn the wifi Back On let the script run all the way through + +REM Author: Narsty +REM Title: REM Toggle Wifi +REM Version 1.0 MacOs + +DELAY 2000 +GUI SPACE +DELAY 500 +STRING terminal +ENTER +DELAY 500 +STRING echo "Toggling Wi-Fi..." +ENTER +DELAY 500 +STRING networksetup -setairportpower en0 off +ENTER +DELAY 2000 +STRING networksetup -setairportpower en0 on +ENTER +DELAY 500 +STRING echo "Wi-Fi toggled!" +ENTER +