Old 24th November 2007, 19:41   #1
xan_molbjerg
Junior Member
 
Join Date: Nov 2007
Posts: 2
SendMessage syntax, IPC

Hello, I have a bit of a difficult (at least for me!) question here...

I have a module in Litestep which can send messages... With the syntax: !SendMessage "Window Class" "Window Title" "Message" "WPARAM" "LPARAM" "RETURN_VALUE_EVAR"

eg !SendMessage "Winamp 1.x" "" 273 40045

Ok, I want to set the trackposition, so #define IPC_JUMPTOTIME 106 is what I need to use. Knowing this, what is the correct way to put this command? Everything I've tried so far hasn't worked.


Also, my main aim is to send this message to foobar, foobar using a component/plugin which emulates winamps IPC (http://yiting2002.myweb.hinet.net/ra...inamp_ipc.html)



Thanks for any help, this is a difficult one for me, thanks for reading!
xan_molbjerg is offline   Reply With Quote
Old 24th November 2007, 20:03   #2
Nunzio390
Nugatory Aluminator
Look it up

 
Nunzio390's Avatar
 
Join Date: Oct 2002
Location: Tharsis Ridge (Martian lowlands)
Posts: 8,588
Send a message via AIM to Nunzio390 Send a message via Yahoo to Nunzio390
And what exactly does this have to do with Winamp Tech Support issues/problems?

Your best bet is to ask these things in either the LiteStep forums or in the Foobar forums.
_________________________________________

Can a moderator please move this from Winamp Tech Support to the General Discussions (or other appropriate) forum?

Thanks

Don't email or PM me concerning Winamp. Instead, either start a NEW TOPIC or post a REPLY in the appropriate thread in these forums. This will also benefit others who may have a similar question or problem. But before posting, please first Search the forums and read all FAQs and all Sticky threads.

ORB Remote Broadcast

[ Automated Jukebox | Nunzio's Home | Wacky Videos | Solve the Prunella Puzzle! ]
[ LINE RIDER! | My Resume | Virtual Chess | Composite Sketch | My Niece's Band ]
[ Plugins by Joonas | DrO's Winamp Plugins and Extras | K-Jöfol ]
Nunzio390 is offline   Reply With Quote
Old 24th November 2007, 20:50   #3
xan_molbjerg
Junior Member
 
Join Date: Nov 2007
Posts: 2
Quote:
Originally posted by Nunzio390
[B]And what exactly does this have to do with Winamp Tech Support issues/problems?
Well, having already asked on Litestep forums AND foobar forums, and being referred to the Winamp SDK for details about the message (at which I have looked, but not completely sorted out) this was the next relevent forum. Also, my main aim is to make this feature compatible both with winamp and foobar, which all of my other implementations are.


So whilst the question is not 100% about winamp, it certainly is TO DO with winamp.

Thanks anyway.
xan_molbjerg is offline   Reply With Quote
Old 24th November 2007, 23:59   #4
JonnyMac
Moderator
 
JonnyMac's Avatar
 
Join Date: Dec 2000
Posts: 14,385
Although this is not specifically related to Winamp plug-in development, I have moved this over to Winamp Development. If another would like to move this somewhere else please feel free to do so.

Please do not PM me for tech support. Any request for tech support through PM will be ignored.
Read the Stickies
---> | | | | <--- Knowledge is power
JonnyMac is offline   Reply With Quote
Old 25th November 2007, 19:23   #5
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Well:
code:

#define IPC_JUMPTOTIME 106
/* (requires Winamp 1.60+)
** SendMessage(hwnd_winamp,WM_WA_IPC,ms,IPC_JUMPTOTIME);
** IPC_JUMPTOTIME sets the position in milliseconds of the
** current song (approximately).
** Returns -1 if not playing, 1 on eof, or 0 if successful
*/


I suppose that should be like
PHP Code:
// WM_WA_IPC 1024
// 150 time to move the trackposition
// 160 IPC_JUMPTOTIME
!SendMessage "Winamp 1.x" "" 1024 150 106 


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump