|
-
Mar 24th, 2002, 10:58 AM
#1
Sending key to window without focus
I want to send a key to my winamp window without giving it focus, I can get the hWnd of the window, and send a key, but it does nothing ?
this is the code....
Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hwnd As Long, ByVal Msg As Long, wParam As Any, lParam As Any) As Long
Dim retVal
retVal = SendMessage(GetWinampHWnd(), WM_CHAR, Asc("b"), 0)
GetWinampHWnd() - returns the hWnd of winamp
retVal returns 0 but winamp doesnt go to the next track (keypress B)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|