0

I know that we can lock screen of Win10 with python code below:

user32.LockWorkStation()

But how can I know that whether the screen is locked at certain time? Thanks!

Ink
  • 845
  • 1
  • 13
  • 31

1 Answers1

0

According to my understanding there is no ONE api function to do it with. But I advice You to take a look on this relevant link: In Python 3, how can I tell if Windows is locked?

Good luck!

Ori V Agmon
  • 19
  • 1
  • 2
  • 7