Tom's Hardware > Forum > Smartphones & PDAs > Multimedia > Howto Remote control WMP

Howto Remote control WMP

Forum Smartphones & PDAs : Multimedia - Howto Remote control WMP

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

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

Sponsored Links
Register or log in to remove.

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

Reply to Anonymous
- 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
>
>

Reply to mayank

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
>>
>>

Reply to Anonymous
Tom's Hardware > Forum > Smartphones & PDAs > Multimedia > Howto Remote control WMP
Go to:

There are 556 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them