Honk 1.5 build: 9327 released: 2009-03-11 Play Windows system sounds or play wav files from the command line.. Copyright (c) 2009 Canadian Mind Products. C++ command line utility. Download from http://mindprod.com/products3.html#HONK ===> Free <=== Full source included. You may even include the source code, modified or unmodified in commercial programs that you write and distribute. May be used freely for any purpose but military. For more details on this restriction, see http://mindprod.com/contact/nonmil.html If you include any Canadian Mind Products code in your own applications, your app too must be labeled non-military use only. All C++ source and EXE files code are included. ---- Prerequisites: This program runs under Microsoft Windows from the command line (e.g. Win2K/XP/Vista) ---- Installing on a PC: Download source and executable files to run on your own machine as a standalone utility. To install, extract the zip download with WinZip (or similar unzip utility) into any directory you please, often J:\ -- ticking off the "use folder names" option. ---- Installing on a MacIntosh: Use Safari to download source and executable files to run on your own machine as a standalone utility. The EXE files will not work. You will have to recompile, perhaps making minor changes to the source code. Safari will automatically unpack the zip into ~/Downloads (version 10.5) [or on the Desktop (version 10.4 and earlier)]. First install a recent Java JDK or JVM. See http://mindprod.com/jgloss/installingjava.html. You may optionally move the download tree to a permanent home. ---- Rebuilding: The zip already contains the necessary exe, so unless you modify the program, there is no need to recompile the source or recompile it. Configure basedir="E:/" in rebuild.xml to the drive where your files are and tweak rebuild.xml. Use ANT and rebuild.xml, not build.xml, to rebuild and link. ---- Use: Honk Plays one or more of the Standard Windows sounds, triggered purely from the command line. use: honk - Plays the default system sound. honk SystemStart SystemHand SystemQuestion - Plays the given list of standard system sounds (usually just one). - they are case-insensitive (you can get the case wrong and it will still work). Possible sound names are listed in the registry under: HKEY_CURRENT_USER/AppEvents/EventLabels. e.g. ActivatingDocument AppGPFFault BuildComplete BuildError BuildWarning ClipMate5_EmptyClipboard ClipMate5_Glue ClipMate5_IgnoreClipboardUpdate ClipMate5_NewData ClipMate5_PowerPasteComplete Close CriticalBatteryAlarm EmptyRecycleBin Incoming-Fax LowBatteryAlarm MailBeep Maximize MenuCommand MenuPopup Minimize MoveMenuItem Navigating Open Outgoing-Fax RestoreDown RestoreUp RingIn RingOut ShowBand SystemAsterisk SystemDefault SystemExclamation SystemExit SystemHand SystemQuestion SystemStart SystemWelcome ... You can view the list with regedit. Not all of them are necessarily hooked up to real sounds and not all of them will be in your registry. What sounds they play depends on how they are configured in the control panel. If you were daring you could even add your own and configure them. These are NOT the same as the names in the control panel or the names of the *.wav files. Or you can specify a wav file e.g. honk C:\Windows\Media\tada.wav Honk is much faster than using mplayer or player. Nothing appears on the screen. It will not hang up if several copies try to play at once. C++ source included. copyright (c) 1998-2008 Canadian Mind Products http://mindprod.com. May be freely distributed and used for any purpose but military. ---- Version History: 1.2 - made library static so don't need separate Borland DLLs. Compile as a Borland Win32 Owl app with a static library, link no debug, and OWL libraries with a honk.def file like this: 1.3 - embed new Barker address. 1.4 2008-01-04 convert from Owl to Microsoft 1.5 2009-03-11 add ANT built script -30- -30-