Starting to write a little script that will lock my PC when my phone is not on the wifi. Should be pretty simple:
Opt("SendKeyDelay",0)
Opt("SendKeyDownDelay",0)
While 1
$ping=Ping("192.168.0.13") ;check for phone with static IP
If $ping=0 then Send("#l") ; send Win+L to lock
Sleep(60000) ;will adjust once working
WEnd
The first two lines were recommended by the Help file but don't seem to make any difference. If I change it to "#r",