DIMIN HOTKEYS plugin for winamp
Version: 0.5

DIMIN HOTKEYS is a definitive solution for hotkeys with Winamp 2.x and 5.

Latest version considerations: Why to develop this plugin if 
Winamp 5 contains embedded Global Hotkeys? Well, first of all, some 
people still use and prefer Winamp 2.x. Second, there are some flows 
in embedded Global Hotkeys plugin. Like volume control is not 
changing on the interface while volume actualy changes. Third, 
somewhy guys form NullSoft didn't add WM_APPCOMMAND treatment, which 
is nice to have... Also the possibility to choose ready 
config for your keyboard. So here we are, version 0.4:-)
 
Features: 
  * Completely configurable system wide hotkeys and comes 
  preconfigured for several Keyboards including Logitech. 
  * Accept WM_APPCOMMAND so winamp my use common drivers for 
    special (multimedia) keyboards as some software: 
      Windows Media player, Windows CD player, etc...
    Implemented commands: STOP, NEXTTRACK, PREVIOUSTRACK, 
      VOLUME_DOWN, VOLUME_UP.  
  * Configuration utility
   
Tested on: 
  Logitech keyboards, Microsoft Keyboards, Sony Wireless Multimedia 
  Keyboard,HP One-Touch driver on a HP pavilion notebook, Acer 
  Travelmate 430 Series, Dell Inspiron 8600 Notebook,
  ATI Remote Wonder, bRemote, etc.

Users, please, if you create a configuration file for some new 
hardware, {send it to me}, so I could include all them to the future
releases, it could tremendously facilitate the use of this plug-in!!!

Special thanks to: Stanislav Novoseletskiy, Matt Cowger, 
  Robert J Meerman, Mikael Berglund, Simen Brekken, Andres Spiaggi, 
  Shantur Rathore, David Osivnik, Charles Pillar, and to all helping 
  me make this plugin easier!!!

********************************************************************
New:

[v0.5 03/21/2004] 
- Slightly updated Configuration Utility;
- Updated list of supported keyboards.

[v0.4 02/21/2004] 
- Tested on Winamp 5;
- Totally rewriten Configuration Utility;
- Name changes to suit Winamp 5. 

[v0.3 06/21/2002] 
- Configuration is reloaded after using the config utility.
- Configuration utility improved. 

[v0.2 09/30/2001] 
- Added support for WM_APPCOMMAND, this enables plugin accept
commands when some special key drivers are running.
- Configure button opens configuration utility
- Configuration utility improved 

********************************************************************

Configuration file hacking:

By default it configured to use Logitech Internet Keyboard
multimedia keys. But you may assign any key you want.
In distribution you may find gen_hotkeys_F.ini file
it's already prepared for F's keys.

Some VK and Winamp commands are presented in the end.

So, the ini file config looks like this:
[Options]
NumKeys=3 <- modify for number of keys you add
Play=179  <- put virtual key of play button 

!!! Now put pairs of Virtual Key and Command
KeyVK0=178 <- put virtual key of a button in decimal format!!!
Command0=40047 <- put winamp command of this button
KeyVK1=177
Command1=40044
KeyVK2=176
Command2=40048

********************************************************************
APPENDIX 1, Winamp commands:
********************************************************************

Previous track button 40044 
Next track button 40048 
Play button 40045 
Pause/Unpause button 40046 
Stop button 40047 
Fadeout and stop 40147 
Stop after current track 40157 
Fast-forward 5 seconds 40148 
Fast-rewind 5 seconds 40144 
Start of playlist 40154 
Go to end of playlist 40158 
Open file dialog 40029 
Open URL dialog 40155 
Open file info box 40188 
Set time display mode to elapsed 40037 
Set time display mode to remaining 40038 
Toggle preferences screen 40012 
Open visualization options 40190 
Open visualization plug-in options 40191 
Execute current visualization plug-in 40192 
Toggle about box 40041 
Toggle title Autoscrolling 40189 
Toggle always on top 40019 
Toggle Windowshade 40064 
Toggle Playlist Windowshade 40266 
Toggle doublesize mode 40165 
Toggle EQ 40036 
Toggle playlist editor 40040 
Toggle main window visible 40258 
Toggle minibrowser 40298 
Toggle easymove 40186 
Raise volume by 1% 40058 
Lower volume by 1% 40059 
Toggle repeat 40022 
Toggle shuffle 40023 
Open jump to time dialog 40193 
Open jump to file dialog 40194 
Open skin selector 40219 
Configure current visualization plug-in 40221 
Reload the current skin 40291 
Close Winamp 40001 
Moves back 10 tracks in playlist 40197 
Show the edit bookmarks 40320 
Adds current track as a bookmark 40321 
Play audio CD 40323 
Load a preset from EQ 40253 
Save a preset to EQF 40254 
Opens load presets dialog 40172 
Opens auto-load presets dialog 40173 
Load default preset 40174 
Opens save preset dialog 40175 
Opens auto-load save preset 40176 
Opens delete preset dialog 40178 
Opens delete an auto load preset dialog 40180


********************************************************************
APPENDIX 2, Virtual keys: 
********************************************************************
VK_BACK 	08 	BACKSPACE key 	
VK_TAB 	09 	TAB key 	
- 	0A-0B 	Undefined 	
VK_CLEAR 	0C 	CLEAR key 	
VK_RETURN 	0D 	ENTER key 	
- 	0E-0F 	Undefined 	
VK_SHIFT 	10 	SHIFT key 	
VK_CONTROL 	11 	CTRL key 	
VK_MENU 	12 	ALT key 	
VK_PAUSE 	13 	PAUSE key 	
VK_CAPITAL 	14 	CAPS LOCK key 	
- 	15-19 	Reserved for Kanji systems 	
- 	1A 	Undefined 	
VK_ESCAPE 	1B 	ESC key 	
- 	1C-1F 	Reserved for Kanji systems 	
VK_SPACE 	20 	SPACEBAR 	
VK_PRIOR 	21 	PAGE UP key 	
VK_NEXT 	22 	PAGE DOWN key 	
VK_END 	23 	END key 	
VK_HOME 	24 	HOME key 	
VK_LEFT 	25 	LEFT ARROW key 	
VK_UP 	26 	UP ARROW key 	
VK_RIGHT 	27 	RIGHT ARROW key 	
VK_DOWN 	28 	DOWN ARROW key 	
VK_SELECT 	29 	SELECT key 	
 	2A 	OEM-specific 	
VK_EXECUTE 	2B 	EXECUTE key 	
VK_SNAPSHOT 	2C 	PRINT SCREEN key 	
VK_INSERT 	2D 	INS key 	
VK_DELETE 	2E 	DEL key 	
VK_HELP 	2F 	HELP key 	
VK_0 	30 	0 key 	
VK_1 	31 	1 key 	
VK_2 	32 	2 key 	
VK_3 	33 	3 key 	
VK_4 	34 	4 key 	
VK_5 	35 	5 key 	
VK_6 	36 	6 key 	
VK_7 	37 	7 key 	
VK_8 	38 	8 key 	
VK_9 	39 	9 key 	
 	3A-40 	Undefined 	
VK_A 	41 	A key 	
VK_B 	42 	B key 	
VK_C 	43 	C key 	
VK_D 	44 	D key 	
VK_E 	45 	E key 	
VK_F 	46 	F key 	
VK_G 	47 	G key 	
VK_H 	48 	H key 	
VK_I 	49 	I key 	
VK_J 	4A 	J key 	
VK_K 	4B 	K key 	
VK_L 	4C 	L key 	
VK_M 	4D 	M key 	
VK_N 	4E 	N key 	
VK_O 	4F 	O key 	
VK_P 	50 	P key 	
VK_Q 	51 	Q key 	
VK_R 	52 	R key 	
VK_S 	53 	S key 	
VK_T 	54 	T key 	
VK_U 	55 	U key 	
VK_V 	56 	V key 	
VK_W 	57 	W key 	
VK_X 	58 	X key 	
VK_Y 	59 	Y key 	
VK_Z 	5A 	Z key 	
VK_LWIN 	5B 	Left Windows key on a Microsoft Natural Keyboard 	
VK_RWIN 	5C 	Right Windows key on a Microsoft Natural Keyboard 	
VK_APPS 	5D 	Applications key on a Microsoft Natural Keyboard 	
 	5E-5F 	Undefined 	
VK_NUMPAD0 	60 	Numeric keypad 0 key 	
VK_NUMPAD1 	61 	Numeric keypad 1 key 	
VK_NUMPAD2 	62 	Numeric keypad 2 key 	
VK_NUMPAD3 	63 	Numeric keypad 3 key 	
VK_NUMPAD4 	64 	Numeric keypad 4 key 	
VK_NUMPAD5 	65 	Numeric keypad 5 key 	
VK_NUMPAD6 	66 	Numeric keypad 6 key 	
VK_NUMPAD7 	67 	Numeric keypad 7 key 	
VK_NUMPAD8 	68 	Numeric keypad 8 key 	
VK_NUMPAD9 	69 	Numeric keypad 9 key 	
VK_MULTIPLY 	6A 	Multiply key 	
VK_ADD 	6B 	Add key 	
VK_SEPARATOR 	6C 	Separator key 	
VK_SUBTRACT 	6D 	Subtract key 	
VK_DECIMAL 	6E 	Decimal key 	
VK_DIVIDE 	6F 	Divide key 	
VK_F1 	70 	F1 key 	
VK_F2 	71 	F2 key 	
VK_F3 	72 	F3 key 	
VK_F4 	73 	F4 key 	
VK_F5 	74 	F5 key 	
VK_F6 	75 	F6 key 	
VK_F7 	76 	F7 key 	
VK_F8 	77 	F8 key 	
VK_F9 	78 	F9 key 	
VK_F10 	79 	F10 key 	
VK_F11 	7A 	F11 key 	
VK_F12 	7B 	F12 key 	
VK_F13 	7C 	F13 key 	
VK_F14 	7D 	F14 key 	
VK_F15 	7E 	F15 key 	
VK_F16 	7F 	F16 key 	
VK_F17 	80H 	F17 key 	
VK_F18 	81H 	F18 key 	
VK_F19 	82H 	F19 key 	
VK_F20 	83H 	F20 key 	
VK_F21 	84H 	F21 key 	
VK_F22 	85H 	F22 key 	
VK_F23 	86H 	F23 key 	
VK_F24 	87H 	F24 key 	
	88-8F 	Unassigned 	
VK_NUMLOCK 	90 	NUM LOCK key 	
VK_SCROLL 	91 	SCROLL LOCK key 	
VK_LSHIFT	0xA0	Left SHIFT	
VK_RSHIFT	0xA1	Right SHIFT	
VK_LCONTROL	0xA2	Left CTRL 	
VK_RONTROL	0xA3	Right CTRL	
VK_LMENU	0xA4	Left ALT	
VK_RMENU	0xA5	Right ALT	
		BA-C0 	OEM-specific; reserved. See following tables.	
		C1-DA 	Unassigned 	
		DB-E2 	OEM-specific; reserved. See following tables.	
		E3 - E4	OEM-specific	
		E5 	Unassigned 	
		E6 	OEM-specific 	
		E7-E8 	Unassigned 	
		E9-F5 	OEM-specific 	
VK_ATTN 	F6 	ATTN key 	
VK_CRSEL 	F7 	CRSEL key 	
VK_EXSEL 	F8 	EXSEL key 	
VK_EREOF 	F9 	Erase EOF key 	
VK_PLAY 	FA 	PLAY key 	
VK_ZOOM 	FB 	ZOOM key 	
VK_NONAME 	FC 	Reserved for future use 	
VK_PA1 	FD 	PA1 key 	
VK_OEM_CLEAR 	FE 	CLEAR ke	

