char = bbs.onekey("AVQ",True)
And then there are if statements to make the A, V and Q keys do stuff. I know that enter is considered chr(13) in mystic python, but I don't know if the onekey function can accept special keys (enter, escape etc). I
also tried the getkey function but that doesn't seem to work for me either.
Figured it out. Was just the syntax/formatting that was throwing me off
:)
char = bbs.onekey(chr(13) + 'AQV', True)
char = bbs.onekey("AVQ",True)
ch = onekey(chr(13) + 'AVQ', True);
Thats all you have to do for ENTER. 27 for ESCAPE etc. It all works.
Sysop: | echicken |
---|---|
Location: | Toronto, Ontario |
Users: | 2,224 |
Nodes: | 6 (0 / 6) |
Uptime: | 218:47:17 |
Calls: | 14,143 |
Calls today: | 1 |
Files: | 295 |
Messages: | 551,137 |