OS4 DepotLogo by Nickman 
(anonymous IP:,1172) 

   Bug tracker
   Locale browser

   o Audio (328)
   o Datatype (47)
   o Demo (180)
   o Development (533)
   o Document (21)
   o Driver (88)
   o Emulation (141)
   o Game (857)
   o Graphics (457)
   o Library (93)
   o Network (201)
   o Office (56)
   o Utility (807)
   o Video (61)

Total files: 3870

Full index file. Download
Recent index file. Download



Support the site

 Readme for:  Utility » Script » capstestppc.lha


Description: Reports caps lock status, useful for scripts etc.
Download: capstestppc.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 9kb
Version: 2.0
Date: 10 Dec 12
Author: Lauri Aalto, Alex Carmona
Submitter: Alex Carmona
Email: AmigaOne/theworld net
Homepage: http://AM1GA.com
Category: utility/script
Replaces: utility/script/capstestppc.lha
License: Public domain
Distribute: yes
Min OS Version: 4.0
FileID: 7554
Comments: 0
Snapshots: 0
Downloads: 227  (Current version)
311  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show content Show crashlogs Replace file 
This is an updated OS4 version of the original 68k CapsTest.

I added return codes to make it more convenient for use in scripts, that
way there's no need to use backticks, but the default output (0 or 1)
should be redirected to NIL: like so:

CapsTest >NIL:
 Echo Caps lock was active
 Echo Caps lock was inactive

It's quite handy in Startup-Sequence and User-Startup, to make them skip
sections or temporarily enable some feature.


V2.0 07.12.2012
- Rewritten to use PeekQualifier() as suggested by RWO.
- Now works with USB keyboards.
- Executable size is now 8KB instead of 66KB.

V1.1 28.09.2009
- Ported to PPC/OS4
- Added return codes, 5 = Caps Lock is ON, 0 = Caps Lock is OFF, 20 means
  that something went really wrong (failed port/device/memory allocation)
V1.0 02.12.1994
- Original 68k Version

Original ReadMe:

I needed a simple program for my scripts which would examine the status of
the caps lock key and report it so the script could act respectively. After
a quick scan over my file base I was unable to find such a tool so I
decided to write one of my own. Here's the result.


if `capstest` eq 1  ; capstest returns either 0 or 1
  echo "Caps lock was active"
  echo "Caps lock was inactive"

Source code compilable at least with DICE 3.0 has been included. Just type
'execute capstest.c' to compile. Feel free to do whatever with these files
- they're all public domain.

Copyright (c) 2004-2018 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment