So I've been playing with Getch recently. So let's say we do something like this...
from msvcrt import getch
while True:
key = ord(getch())
if key == 27: #ESC
print ("Value Read")
break
elif key == 13: #Enter
select()
elif key == 224: #Special keys (arrows, f keys, ins, del, etc.)
key = ord(getch())
if key == 80: #Down arrow
moveDown()
elif key == 72: #Up arrow
moveUp()
What I would like to do is have the Python console read the input such that I don't have to have the Python console as my active window. Does anybody know how to do this as it looks like "getch" just looks for input in the console (this isn't what I was looking for and I'm not sure if this is possible in Python).
Thank you for your time and consideration,
mmacheerpuppy