LockscreenbyTime_win10
A python program in win10.
- You can set the time to lock the computer(by setting year, month, day),
- Fullscreen pictures will show when you lock screen.
Code Usage :
- Opening Lock_screen_data.json and writing the date to set deadline. For example, rectify the json to [2021, 8, 2, 9, 20, 35] which means the unlock time is 2021/8/2/9:20
- Adding pictures to directory ./pictures, added pictures will show per 12 seconds.
- run lock_screen_simple.py
- Keyboard and screen will be locked, when you click the set time is reached, the program will close.
界面效果
打包程序+开机启动
- 使用pyinsatller打包程序为exe格式
- 在注册表“计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon”的Userinit项中添加打包程序位置 这样开机就会运行程序 要注意小心操作
- 重新启动电脑,点击屏幕后开始判断,如未到解锁时间,则先显示结束时间后每12s换一次壁纸。