|
|
|
|
#1 |
|
Junior Member
Join Date: Oct 2003
Posts: 4
|
Ipc_setvolume
Hi there..
I've been coding an external program that will listen over TCP/IP and relay commands on to winamp (for a network jukebox ) and I've run into a problem.I've not got any dodgy plugins, I'm using version 5008 of winamp and my other code (play, pause, stop, etc) works fine. The line that's giving me problems is below: SendMessage(winamp_hWnd, WM_WA_IPC, iVolume, IPC_SETVOLUME); my hWnd is fine, the constants are defined and I've tried making sure iVolume is various types to maybe satisfy the API. Has anyone else had this problem or can see what I'm doing wrong? |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Aug 2001
Location: Mobil Ave.
Posts: 5,381
|
It seems to work fine for me, here's what I did (it's VB):
code: "Welcome to the Island of people who know too much."..."Did you really think balloons would stop him?!" See what I'm listening too. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2003
Posts: 4
|
Solved it. For some reason winamp wasn't working with SendMessage (just on this one command), so I'm currently using SendNotifyMessage. This does work.
Why SendMessage doesn't work, I don't know. But I have a solution now, so I'm happy
|
|
|
|
|
|
#4 | |
|
Forum King
Join Date: Aug 2001
Location: Mobil Ave.
Posts: 5,381
|
Quote:
"Welcome to the Island of people who know too much."..."Did you really think balloons would stop him?!" See what I'm listening too. |
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Dec 2004
Location: Midwest USA
Posts: 3
|
I could not get any WM_USER type messages to work using the 'SendMessage' function in VB. I don't know if this is because of the VB IDE or not.
I had to use 'SendMessageTimeout' instead and it worked great. |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Oct 2003
Posts: 4
|
This may be why SendNotifyMessage works where SendMessage doesn't, since the Notify version returns back to the calling application immediately and places the message on the called application's message queue.
Maybe it's another example of VB being pants. Don't suppose anyone has any experience of VB.net and winamp? |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|