OS4 DepotLogo by Browallia 
( IP: 38.107.191.106) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Sobjs site
   Crashlog site
   Bugs site
 
 Categories

   o Audio (269)
   o Datatype (39)
   o Demo (136)
   o Development (395)
   o Document (16)
   o Driver (59)
   o Emulation (107)
   o Game (640)
   o Graphics (329)
   o Library (31)
   o Network (129)
   o Office (38)
   o Utility (490)
      o Archive (47)
      o Benchmark (8)
      o Communication (1)
      o Docky (11)
      o Filetool (93)
      o Hardware (12)
      o Misc (78)
      o Print (6)
      o Scientific (20)
      o Script (12)
      o Shell (49)
      o Text (71)
      o Workbench (82)
   o Video (38)

Total files: 2716

Full index file. Download
Recent index file. Download




 Links

  Amigans.net
  OpenAmiga
  Aminet
  UtilityBase
  IntuitionBase
  AmigaBounty


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: 3kb
Version: 1.1
Date: 30 Sep 09
Author: Lauri Aalto, Alex Carmona
Submitter: Alex Carmona
Email: AmigaOne/theworld net
Homepage: http://metacomco.com
Category: utility/script
License: Public domain
Distribute: yes
Min OS Version: 4.0
FileID: 5081
 
Comments: 0  [View]
Snapshots: 0  [View]
Downloads: 48  (Current version)
48  (Accumulated)

[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:
If WARN
 Echo Caps lock was active
Else
 Echo Caps lock was inactive
EndIf

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

History:

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.

Usage:

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

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-2010 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment