Run a script when either locking or unlocking Windows XP

你离开我真会死。 提交于 2019-12-04 21:07:20

问题


I have a Windows XP machine and a Linux machine running Ubuntu. I share the keyboard/mouse from the Windows machine via Synergy. What I would like to do is lock/unlock the Linux machine whenever I lock/unlock the Windows machine.

So I'd like to be able to run a script of some description when Windows either locks or unlocks the screen.


回答1:


The standard way in Windows is to write a package (a dll) that subscribes to Winlogon notification events.

I don't know of any tool that provides an easy way to hook into those events, but you could make your package launch a script from some specific place if you really need your actions to be inside one.



来源:https://stackoverflow.com/questions/270629/run-a-script-when-either-locking-or-unlocking-windows-xp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!