TIP: Click on subject to list as thread! ANSI
echo: quik_bas
to: SHANE DAY
from: GREG EASTHOM
date: 1998-02-06 23:11:00
subject: Scan Codes

SD>I was wondering if someone could help me I'm trying to Make a program that 
i
SD>Arrow Key responsive But it doesn't seem to want to work
SD>What I need is the scan codes for "option". Could someone help?
SD>DO
SD>    a$ = inkey$
SD>    if a$ = option1$ then call sub1
SD>    if a$ = option2$ then call sub2
SD>LOOP until a$ = "q" or a$ = "Q"
Gee, this is too easy.
CHR$(0) + "H"      'Up Arrow
CHR$(0) + "P"      'Down Arrow
CHR$(0) + "K"      'Left Arrow
CHR$(0) + "M"      'Right Arrow
As in : IF a$ = CHR$(0) + "H" THEN CALL uparrowsub
...and so on
 * SLMR 2.1a * 
--- Maximus 3.01
---------------
* Origin: The BandMaster, Vancouver, B.C., Canada (1:153/7715)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.