Ok, just found a similar post, which didn't show up in my initial seaches:
Announcement
Collapse
No announcement yet.
Sending a WM_KEYDOWN message to winamp
Collapse
X
-
Sending a WM_KEYDOWN message to winamp
Hi
I know that under Known Bugs, Multimedia Keyboards are listed as not being bugs, but I write this here anyway, since I find this bug quiet peculiar/annoying.
I have a small util which interprets the MM keys on my keyboard, and sends a message to the running MM player, in this case Winamp 5.01. The program sends a WM_KEYDOWN message to the window with the classname "Winamp v1.x", with 'Z', 'X', 'V' or 'B' as the key.
It worked without problems with Winamp2, and it works fine with Winamp5, except when:
Winamp is using a modern skin and it doesn't have focus and the mouse cursor is hovering over winamp's mainwindow.
Ie. all three "things" at the same time.
In all other scenarios the WM_KEYDOWN is interpreted, or at least I haven't found other combinations where it wasn't.
For reference, to send the message I do the following:
PostMessage(hwnd, WM_KEYDOWN, Key, 0);
where Key is 'Z', 'X', 'V' or 'B'
and hwnd is the result of FindWindowEx(NULL, NULL, "Winamp v1.x", NULL);
OS is Windows XP Pro SP1 DK, patched with everything windowsupdate has to offer, haven't tested on other systems.
/The_Real
PS: A friend of mine just tested Logitechs software, and it had the same problem.Tags: None
Leave a comment: