Howto Remote control WMP

mayank

Distinguished
May 7, 2005
2
0
18,510
0
Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

Hi all,
I would like to control some of the basic commands of WMP remotely,
such as Play/Pause/Stop etc.. I am using a pocket PC device which runs
WMP-10. I ran remote spy to see what window messages were posted when
Play/pause or stop is selected from the menu of WMP.
I saw that for play/pause (cmd: WM_COMMAND, wParam: 0x2712 lParam : 0)
and for stop (cmd: WM_COMMAND, wParam: 0x2714 lParam : 0). When i
added a postMessage with the above parameters in my application, i am
getting the proper result. The only problem is that i have to select the
Menu option from WMP once before which the above commands from my
application take affect.
Does anyone know why this may be happening ? If this is not the right
way, can someone suggest me what is the correct way ?. I tried posting
VK_MEDIA_PLAY_PAUSE key. But this does not work.

-Mayank
 
G

Guest

Guest
Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

Dunno about the programming aspects of it - you might want to see how
others have done it before reinventing the wheel though : "Vinyl"

http://www.pocketpcfreewares.com/en/index.php?soft=768

Cheers - Neil

On Mon, 20 Jun 2005 17:50:55 +0530, Mayank <mayank@impulsesoft.com>
wrote:

>Hi all,
> I would like to control some of the basic commands of WMP remotely,
>such as Play/Pause/Stop etc.. I am using a pocket PC device which runs
>WMP-10. I ran remote spy to see what window messages were posted when
>Play/pause or stop is selected from the menu of WMP.
> I saw that for play/pause (cmd: WM_COMMAND, wParam: 0x2712 lParam : 0)
> and for stop (cmd: WM_COMMAND, wParam: 0x2714 lParam : 0). When i
>added a postMessage with the above parameters in my application, i am
>getting the proper result. The only problem is that i have to select the
>Menu option from WMP once before which the above commands from my
>application take affect.
> Does anyone know why this may be happening ? If this is not the right
>way, can someone suggest me what is the correct way ?. I tried posting
>VK_MEDIA_PLAY_PAUSE key. But this does not work.
>
>-Mayank
 

mayank

Distinguished
May 7, 2005
2
0
18,510
0
Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

Most of the implementation available, controls the Windows Media Player
on PC. They use either ActiveX controls or send commands to WMP window
using PostMessage.
But for PocketPC, neither the ActiveX controls work, nor sending of
commands to WMP window using PostMessage works. Anyone have any idea of
an alternate implementation or a correct implementation of the above to
remotely control WMP in pocet PC.

-Mayank

Neil Smith [MVP Digital Media] wrote:
> Dunno about the programming aspects of it - you might want to see how
> others have done it before reinventing the wheel though : "Vinyl"
>
> http://www.pocketpcfreewares.com/en/index.php?soft=768
>
> Cheers - Neil
>
> On Mon, 20 Jun 2005 17:50:55 +0530, Mayank <mayank@impulsesoft.com>
> wrote:
>
>
>>Hi all,
>> I would like to control some of the basic commands of WMP remotely,
>>such as Play/Pause/Stop etc.. I am using a pocket PC device which runs
>>WMP-10. I ran remote spy to see what window messages were posted when
>>Play/pause or stop is selected from the menu of WMP.
>> I saw that for play/pause (cmd: WM_COMMAND, wParam: 0x2712 lParam : 0)
>> and for stop (cmd: WM_COMMAND, wParam: 0x2714 lParam : 0). When i
>>added a postMessage with the above parameters in my application, i am
>>getting the proper result. The only problem is that i have to select the
>>Menu option from WMP once before which the above commands from my
>>application take affect.
>> Does anyone know why this may be happening ? If this is not the right
>>way, can someone suggest me what is the correct way ?. I tried posting
>>VK_MEDIA_PLAY_PAUSE key. But this does not work.
>>
>>-Mayank
>
>
 
G

Guest

Guest
Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

Ah sorry somehow I read you wanted to control Desktop PC's media
player from Pocket PC not the other way round !

Cheers - Neil

On Wed, 06 Jul 2005 14:58:39 +0530, Mayank <mayank@impulsesoft.com>
wrote:

>Most of the implementation available, controls the Windows Media Player
>on PC. They use either ActiveX controls or send commands to WMP window
>using PostMessage.
>But for PocketPC, neither the ActiveX controls work, nor sending of
>commands to WMP window using PostMessage works. Anyone have any idea of
>an alternate implementation or a correct implementation of the above to
>remotely control WMP in pocet PC.
>
>-Mayank
>
>Neil Smith [MVP Digital Media] wrote:
>> Dunno about the programming aspects of it - you might want to see how
>> others have done it before reinventing the wheel though : "Vinyl"
>>
>> http://www.pocketpcfreewares.com/en/index.php?soft=768
>>
>> Cheers - Neil
>>
>> On Mon, 20 Jun 2005 17:50:55 +0530, Mayank <mayank@impulsesoft.com>
>> wrote:
>>
>>
>>>Hi all,
>>> I would like to control some of the basic commands of WMP remotely,
>>>such as Play/Pause/Stop etc.. I am using a pocket PC device which runs
>>>WMP-10. I ran remote spy to see what window messages were posted when
>>>Play/pause or stop is selected from the menu of WMP.
>>> I saw that for play/pause (cmd: WM_COMMAND, wParam: 0x2712 lParam : 0)
>>> and for stop (cmd: WM_COMMAND, wParam: 0x2714 lParam : 0). When i
>>>added a postMessage with the above parameters in my application, i am
>>>getting the proper result. The only problem is that i have to select the
>>>Menu option from WMP once before which the above commands from my
>>>application take affect.
>>> Does anyone know why this may be happening ? If this is not the right
>>>way, can someone suggest me what is the correct way ?. I tried posting
>>>VK_MEDIA_PLAY_PAUSE key. But this does not work.
>>>
>>>-Mayank
>>
>>
 
Thread starter Similar threads Forum Replies Date
jerthemost Cell Phone General Discussion 1
C Cell Phone General Discussion 1
Z Cell Phone General Discussion 1
R Cell Phone General Discussion 1
PhilipMichaels Cell Phone General Discussion 1
A Cell Phone General Discussion 1
R Cell Phone General Discussion 3
S Cell Phone General Discussion 1
J Cell Phone General Discussion 1
O Cell Phone General Discussion 1
S Cell Phone General Discussion 1
I Cell Phone General Discussion 12
K Cell Phone General Discussion 4
S Cell Phone General Discussion 1
H Cell Phone General Discussion 1
W Cell Phone General Discussion 1
asheesh1_2000 Cell Phone General Discussion 2
S Cell Phone General Discussion 8
R Cell Phone General Discussion 5

ASK THE COMMUNITY