I want to automate desktop activities in Windows environment using Python. How it can be done? Some examples will also be helpful.
By desktop activities, I mean acti
You can lock your PC(Win + L)
import ctypes ctypes.windll.user32.LockWorkStation()
You can clear your recycle bin
import winshell winshell.recycle_bin().empty(confirm=False, show_progress=False, sound=True)