Re: onkey trapping

 BBS: Inland Empire Archive
Date: 06-26-92 (09:05)             Number: 1530
From: JODY BURROW                  Refer#: NONE
  To: BILL CAMPBELL                 Recvd: NO  
Subj: Re: onkey trapping             Conf: (2) Quik_Bas
To turn off the numlock and select the cursor control keys, do the following:

         POKE 1047, PEEK(1047) AND 223

To turn on the numlock and select the numeric key pad do the following:

         POKE 1047, PEEK(1047) AND 32

To find out what the current state of the numlock is, do the following:

         PEEK(1047) AND 32

This will return a 0 for cursor control active and a 32 for
numeric control active!

Hope this helps you!


--- T.A.G. 2.6c Standard
 * Origin: Patron Saint of Hardware (1:284/16)
Outer Court
Echo Basic Postings

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