项目作者: ashraf-minhaj

项目描述 :
For some reason pyautogui.hotkey('win', 'l') doesn't work. That's why I wrote a code that will automatically lock the pc if the code is run.
高级语言: Python
项目地址: git://github.com/ashraf-minhaj/pyautogui-Automatic-Computer-Lock-.git
创建时间: 2019-02-01T13:28:51Z
项目社区:https://github.com/ashraf-minhaj/pyautogui-Automatic-Computer-Lock-

开源协议:GNU General Public License v3.0

下载


pyautogui-Automatic-Computer-Lock-

For some reason pyautogui.hotkey(‘win’, ‘l’) doesn’t work. That’s why I wrote a code that will automatically lock the pc if the code is run. Run the code or squeeze those few lines in your existing code then use it.

full tutorial on https://www.instructables.com/id/Simple-Python-Code-to-Auto-Lock-Your-Computer

Updated to make a complete app:
https://github.com/ashraf-minhaj/ChikonEye_a-third-eye-app-which-protects-your-work-from-peepers.

*Run the code like this in you command prompt or powershell


python pyautogui.lock.py


*squeezze or add inside your code


if your condition:
lock the pc


Note:
To make this code work you must need to install python on your computer.
After installing python install pyautogui


> >pip install pyautogui

pyautogui works both for python 2 and 3.