I'm looking for something that detects when network connection is achieved with a certain network.
That can be handy to do certain things, like sync, make/unmake networkmappings, etcetera.
For now I've been doing something like below in a settimer:
RunWait , %comspec% /c ipconfig > %A_Temp%\ipconfig.txt, , Hide UseErrorLevel
FileRead , ipcnfg , %A_Temp%\ipconfig.txt
if ipcnfg contains %DNS_suffix%
network = 1
network = 0