Ok, so I am creating a physical arduino login system for my computer. Basically, I have the tongue switch set, so when it works, it sends some serial information to the python program, and when that happens, SendKeys displays the password (hopefully in the login field). I know that this is not safe, but it is more or less proof of concept. Here is the part of the code that sends the password.
while var == 1:
xx = ser.read()
print xx
if xx == '7':
SendKeys.SendKeys(Info.passwd + """{ENTER}""")
time.sleep(2)
else:
pass
I have no problems with the code, it works for other things like notepad, but when I try to use it in the login window, I get nothing. Any suggestions?
source
share