![]() | Logo by Browallia ( IP: 38.107.191.106) | |||||||||||||
| ||||||||||||||
Audio (269) Datatype (39) Demo (136) Development (395) Document (16) Driver (59) Emulation (107) Game (640) Graphics (329) Library (31) Network (129) Office (38) Utility (490) Archive (47) Benchmark (8) Communication (1) Docky (11) Filetool (93) Hardware (12) Misc (78) Print (6) Scientific (20) Script (12) Shell (49) Text (71) Workbench (82) Video (38) Total files: 2716 Full index file. Download Recent index file. Download
 Amigans.net  OpenAmiga  Aminet  UtilityBase  IntuitionBase  AmigaBounty
Support the site
|
[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 |