home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
clarion
/
locks.zip
/
LOCKS.DOC
< prev
next >
Wrap
Text File
|
1990-01-24
|
2KB
|
87 lines
LOCKS LEM
This LEM was written to enable Clarion users to read the current
state of the keyboard locks and ctrl, alt, and shift keys. If find
these useful, please read the enclosed file "readme.now" for
information on how to contribute to the author.
The LOCKS LEM and all associated programs are Copyright 1990 by
Forrest W. Christian and Electronic Magic. ALL RIGHTS UNDER
COPYRIGHT RESERVED.
**************************************** MAP STATEMENT
The map statement which should be included is as follows:
MAP
MODULE('LOCKS.BIN'),BINARY
FUNC(GETINS),LONG
FUNC(GETNUM),LONG
FUNC(GETCAPS),LONG
FUNC(GETSCRL),LONG
FUNC(GETALT),LONG
FUNC(GETCTRL),LONG
FUNC(GETLSHF),LONG
FUNC(GETRSHF),LONG
.
<rest of the map goes here!!!>
.
**************************************** FUNCTION INFORMATION
All of the following functions return the following:
0 = Key or Lock is up or "unlocked"
1 = Key or Lock is down or "locked"
You can evaluate these functions by simply using an if statement...
such as:
IF GETALT() THEN <do something if alt key is down>
***************************************** FUNCTION DEFINITIONS
GETINS()
- Gets the state of the Insert key. (true=inserting!)
GETNUM()
- Gets the state of the Numeric lock.
GETCAPS()
- Gets the state of Caps Lock
GETSCRL()
- Gets the state of Scroll Lock
GETALT()
- Gets the state of the ALT key.
GETCTRL()
- Gets the state of the CTRL key.
GETLSHF()
- Gets the state of the left SHIFT key.
GETRSHF()
- Gets the state of the right SHIFT key.
************************************************* SAMPLE PROGRAM
For a sample program, look in the file LOCKS.CLA.. it displays the
lock status on the screen based upon their position.
************************************************* AUTHOR INFO
You can reach the author or send him the proper registration fee
by writing to:
Forrest W. Christian
Electronic Magic
189 N 100 E
Escalante, UT 84726