^#s:: if WinExist("ahk_exe Surfshark.exe")
On Windows, automation often involves using AutoHotkey or macro recorders to simulate clicks within the Surfshark app or its system tray icon. surfshark vpn macro
For those less comfortable with command lines, GUI automation tools are effective. ^#s:: if WinExist("ahk_exe Surfshark
@echo off surfshark-cli status | find "Connected" if %errorlevel% equ 0 ( surfshark-cli disconnect ) else ( surfshark-cli connect -r ) ^#s:: if WinExist("ahk_exe Surfshark.exe") On Windows