BBS: Inland Empire Archive Date: 05-25-92 (17:52) Number: 188 From: ROB FLOR Refer#: 54 To: JULIO TARAFA Recvd: NO Subj: HOTKEY Conf: (2) Quik_Bas
JT> Well you helped me out of a jam with that one question! If i just had a
>updated Quick basic 4.5 manual (damn GW doesnt come
>close) but anyways thanx
>for helping me on that spacing problem, now i wonder if
>you (or anyone else)
>could answer this question! How would i define a HOTKEY like if i asked for
>(y/n) input and it would automaticly return with out hitting enter (like a
>HOTKEY you could say!)... anyone?
Print "Enter Yes or No [Y/N]:"
DO
G$=INKEY$
P=INSTR("YnNy",G$
IF P>0 THEN EXIT DO
LOOP
IF P MOD 2 THEN 'Yes
ELSE 'No
END IF
Rob
* OLX 2.2 * 1. ibid
--- WM v2.01/91-0156
* Origin: BEAR HEAVEN BBS (914) 677-6948 MILLBROOK NY (1:272/53)

Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET