Open thecowmilk opened 2 years ago
I was having the same problems a few hours ago and gathered some infos about how unicode works. The following methods should help you convert those unicodes from strg+... entries into actual chars from the alphabet. It is based on the concept that there is an order(int) command that gives you the unicode order, which for the alphabet, is between 1 and 26:
You could try catching ctrl + c with this
try:
# your code
except KeyboardInterrupt:
# if ctrl + c
I was having the same problems a few hours ago and gathered some infos about how unicode works. The following methods should help you convert those unicodes from strg+... entries into actual chars from the alphabet. It is based on the concept that there is an order(int) command that gives you the unicode order, which for the alphabet, is between 1 and 26:
Thank you for this! I had the same problem, and like your solution. I think there might be a bug in your .txt file. the:
0 < order < 26
checks means the code can't catch the z key, I think it should be:
0 < order <= 26
I think there might be a bug in your .txt file. the:
0 < order < 26
checks means the code can't catch the z key, I think it should be:0 < order <= 26
Glad I could help, and you're right, thanks for pointing out the bug.
I have this pynput code:
and it fails to catch
ctrl + c
I saw a stackoverflow answer thatpynput
printed the^C
like\x03
so I tried to reverse it and compare but it didn't work. Can someone show me how to do this?