Short: Ttl Bar Clk w/ Date - Closes Win for Prefs chng. Uploader: John D. Muir Author: John D. Muir Type: util/time NISClock 1.4 (5.5.95) © Copyright 1995 John Muir Written by John Muir ___________________________________________________________________________ Introduction NISClock is a small clock program that uses a minimum amount of CPU time since it only updates the clock every minute (or every second if you wish). It makes use of Stephan Becker's screennotify.library which patches a few intuition.library functions so that the clock will automatically close its window if the Workbench screen is removed by IPrefs for a preferences change or by any other program which calls CloseWorkbench(). ___________________________________________________________________________ Requirements Requires V37 (2.04) of the Amiga OS, and screennotify.library by Stephan Becker. See 'Installation' for more information on screennotify.library. NISClock must be run from the Workbench. ___________________________________________________________________________ Installation With the workbench, you can just copy NISClock to the WBStartup drawer to have the program execute as you boot-up. If you use NewIcons, you may want to use the CLI to delete the old NISClock icon, and copy NISClock_NewIcon.info as NISClock.info. Some of the tooltypes may have to be changed however. Special thanks to Gavin Hamill for finding me that icon since I don't use NewIcons. screennotify.library by Stephan Becker must be installed in LIBS: or PROGDIR: (the directory where NISClock is started from). Get screennofity.library from the distribution archive on AmiNET: /pub/aminet/util/libs/ScreenNotify10.lha screennotify.library is also available in the latest ToolManager distribution archive(s) which I recommend highly; /pub/aminet/util/boot/ToolManager21?.lha ___________________________________________________________________________ Usage NISClock will only run from the Workbench. These are the tooltypes; SECONDS - display seconds. 24HOUR - display the time in 24 hour mode. INTITLEBAR - display the time in the title bar colours. - NOTE: V37: Backpen = 2 (White) and FrontPen = 1 (Black). DATEFORMAT - display the date in the requested format; DDMMYY (default), MMDDYY or YYMMDD. NISClock will automatically update itself if the icon tooltypes are changed. A mouse click on the NISClock window will cause the date to be displayed. Additional Clicking will toggle between Time and Date. The Time will automatically reappear after 4 seconds. To STOP NISClock, simply run the program again. NISClock WILL NOT RUN without screennotify.library. NISClock WILL NOT RUN from the CLI. ___________________________________________________________________________ Comments? Talk to me! EMail: John D. Muir or John Derek Muir Snail Mail: John Muir 3-152 Guigues Ave. Ottawa, ON K1N 5H9 CANADA ___________________________________________________________________________ History 0.99 - Released to IRC for testing. Tested on OS2.x and OS3.x. 1.0 - Released to AmiNET. 68000 version compiled... (oops! :) 1.1 - Now displays the date with a mouse click on the Window. - Date disappears after 5 seconds. - Fixed a few bugs. 1.2 - Reduced Code Size. - Date disappears after 4 seconds now. - Date is displayed in standard DD.MM.YY, 0s removed. 1.2a - BUGFIX: 10 o'clock now shows the 1... 1.3 - Added the tooltypes; SECONDS, 24HOUR, INTITLEBAR - INTITLEBAR requires intuition.library >= V39. 1.4 - Added the DATEFORMAT tooltype. See "Usage" for more. - INTITLEBAR no longer requires V39. Pens 1 and 2 are used as foreground and background respectively. - Includes the NewIcon icon found for me by Gavin Hamill.