It is currently Thu Aug 17, 2017 10:20 pm


All times are UTC [ DST ]




Post new topic Reply to topic  [ 47 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Re: AlbumPlayer interface for Add-ons
PostPosted: Tue Mar 24, 2015 12:02 pm 
AlbumPlayer Developer
User avatar

Joined: Wed Feb 26, 2003 5:09 pm
Posts: 4754
I don't know anything about Python. But I only can tell you to exchange XML messages you should use WM_COPYDATA for sending and receiving.

I think you might google for this. For instance google for "python receive wm_copydata"

After you know how to receive and send WM_COPY_DATA (containing the XML) you should use WM_SUBSCRIBE_FOR_INFO first to receive spontaneous messages .

The you will receive WM_COPYDATA from AP from which you can read the XML. You can also send XML with WM_COPYDATA to AP.


Top
Offline Profile  
 
 Post subject: Re: AlbumPlayer interface for Add-ons
PostPosted: Tue Mar 24, 2015 5:55 pm 

Joined: Sat Mar 14, 2015 11:34 am
Posts: 4
Peter van der Burg wrote:
After you know how to receive and send WM_COPY_DATA (containing the XML)...
I know it and it works.

Peter van der Burg wrote:
...you should use WM_SUBSCRIBE_FOR_INFO first to receive spontaneous messages .
Excactly that's where i'm lost. :oops: I can send WM_SUBSCRIBE_FOR_INFO with WM_USER and get the notifications with WM_USER. But what is the xml message i need to send, to get the notifications via WM_COPY_DATA? Is it?:
Code:
<?xml version="1.0" encoding="utf-8"?>
<AlbumPlayerCommand id="WM_SUBSCRIBE_FOR_INFO"/>



EDIT:
Argh :roll: , now i found out, what i need to do:
Code:
SendMessage(apHwnd, WM_SUBSCRIBE_FOR_INFO, myHwnd, WM_COPYDATA)


Ok, thank you for your time and help.


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 47 posts ]  Moderators: Jan, xblkx, Peter van der Burg Go to page Previous  1, 2, 3, 4

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net