home *** CD-ROM | disk | FTP | other *** search
- ' CAPSLOCK.ASC -- QuickBASIC utility subroutines for CAPSLOCK
-
- ' Test CAPSLOCK state
- ' returns CAPSLOCK = 1 if ON, CAPSLOCK = 0 if OFF
- CAPSLOCK.TEST:
-
- DEF SEG = &H40
- IF PEEK(&H17) _
- AND 64 _
- THEN CAPSLOCK = 1 _
- ELSE CAPSLOCK = 0
-
- RETURN
-
- ' Turn CAPSLOCK > > ON
- CAPSLOCK.ON:
-
- DEF SEG = &H40
- POKE(&H17) , PEEK(&H17) OR 64
-
- RETURN
-
- ' Turn CAPSLOCK > > OFF
- CAPSLOCK.OFF:
-
- DEF SEG = &H40
- POKE(&H17) , PEEK(&H17) AND 191
-
- RETURN
-
- '>>>>> Physical EOF for CAPSLOCK.ASC