I am using python keyboard lib to unlock my windows desktop, when I try
keyboard.send('win+l')
It print l in my screen but not lock my computer
later I using ctypes.windll.lockworkstation() to lock my computer, but when I want to control my keyboard to unlock my computer, It dosen't work, so how should I fix this problem
below is my code now,I using python36/win10
import ctypes,time,keyboard
dll = ctypes.WinDLL('user32.dll')
dll.LockWorkStation()
time.sleep(1)
keyboard.send('enter')
keyboard.send('1,2,3')
keyboard.send('enter')