Key.get

From MiniScript Wiki
Revision as of 00:26, 24 March 2020 by 71.226.33.30 (talk) (Created page with "<c>key.get</c> removes and returns the next key in the keyboard input buffer. If the input buffer is currently clear (empty), then this method waits until a key is pressed....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

key.get removes and returns the next key in the keyboard input buffer. If the input buffer is currently clear (empty), then this method waits until a key is pressed. Note that modifier keys (shift, alt, etc.) pressed alone do not go into the input buffer.

key.available; key.get

Example

print "You pressed: " + key.get