start
start()
Description
Starts automatic unlocking.
Example rpa.system.screen_unlocker.start
# Notes:
# 1. Administrative permission is required to debug and run this method.
# 2. If your screen is password-protected, first use the set_password method to set the password.
# The following code is an example. To test it, change the password '123456' to the actual screen unlock password for your computer. The program will automatically unlock the screen when it runs.
# Use the keyboard shortcut Win+L to lock the screen and test the result.
rpa.system.screen_unlocker.set_password('123456')
rpa.system.screen_unlocker.start()
sleep(10)stop
stop()
Description
Stops automatic unlocking.
Example rpa.system.screen_unlocker.stop
# Note: Administrative permission is required to debug and run this method.
# The following code is an example. Running it stops the automatic unlock feature.
rpa.system.screen_unlocker.stop()set_password
set_password(value)
Description
Set a password
Parameters
value <str> The screen unlock password.
Example rpa.system.screen_unlocker.set_password
# Note: Administrative permission is required to debug and run this method.
# The following code is an example. Before you enable automatic screen unlocking, use this method to set the unlock password for your computer.
rpa.system.screen_unlocker.set_password('123456')该文章对您有帮助吗?