GET

From Smart Box
Revision as of 19:10, 6 October 2023 by Benryves (talk | contribs) (Created page with "== Syntax == GET($) == Description == These functions wait for a key to be pressed on the keyboard and then return the key as either ASCII (GET) or the character (GET$). The ASCII value is the numeric value associated with each key by the computer. Note The function only works when the cursor is in the text window. Click the cursor in the text window before pressing a key. Example Switch on motor 'A' if the 'F' key is pressed IF GET$ = "F" THEN FORWARD A == Asso...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

GET($)

Description

These functions wait for a key to be pressed on the keyboard and then return the key as either ASCII (GET) or the character (GET$). The ASCII value is the numeric value associated with each key by the computer.

Note The function only works when the cursor is in the text window. Click the cursor in the text window before pressing a key.

Example

Switch on motor 'A' if the 'F' key is pressed

IF GET$ = "F" THEN FORWARD A

Associated keywords