locked
I'm looking for Readkey ... RRS feed

  • Question

  • Hi everybody, I'm looking for the operation TextWindow.Readkey. It is listed on the right side in the editor but I can't use it in my program. Is anyone able to help me? I'd like to use this command to let the user wait until he has pressed a key. I use Small Basic Version 0.9. Thanks to give me your attention!
    Wednesday, March 23, 2011 10:59 AM

Answers

  • 'store a keypress
    someVariable = TextWindow.readkey()

    'echo keypress to screen
    TextWindow.WriteLine(Text.GetCharacter(10) + someVariable)

    • Marked as answer by Sir Grexie Wednesday, March 23, 2011 8:11 PM
    Wednesday, March 23, 2011 1:36 PM