Hello, I'm new to AutoHotkey and I'm totally clueless.
What I want to achieve is, to lock the computer when a certain device is disconnected.
I tried using 'OnMessage', but the only function related is 'WM_DEVICECHANGE = 0x219'.
If I use that, you can't specify which device triggers the action, also a new connection will also count. I want a certain device's disconnect to trigger the action, that is locking my computer. Is that achievable?
Any help is greatly appreciated... thanks a lot in advance everyone.
Lock computer when a device is disconnected
- chenhoulin6204
- Posts: 1
- Joined: 06 Aug 2018, 19:48
Who is online
Users browsing this forum: CuriousDad, Google [Bot], rc76 and 229 guests