No, that's the code you need to capture the coursor position for Windows.

If you want to control your PC with your phone, you have to send new 
coursor positions to your PC an click events. You can set the coursor 
position with the SetCursorPos function. For more information you should 
visit the MSDN and search for your functions:  
http://msdn.microsoft.com/en-us/library/windows/desktop/ms648394(v=vs.85).aspx
 

Btw. for my code examples I assume you using C++ for your PC application.

Regards,
Paul

Am Mittwoch, 14. März 2012 15:46:07 UTC+1 schrieb muhamma...@hotmail.com:
>
>  hi paul,
>            Thanks for your reply, how can i get the control of my  pc 
> mouse on my mobile As along i am  sending the captured screen pics to my 
> mobile and OS is window.
> and please tell me this code is to get the control on my pc?
>
> POINT cursorPos;
>         GetCursorPos(&cursorPos);
>         float x = 0;
>         x = cursorPos.x; 
>         float y = 0;
>         y = cursorPos.y; 
>
> how can i control it on mobile?
>
> Regards,
>
> umer
>
> ------------------------------
> Date: Wed, 14 Mar 2012 00:16:23 -0700
> From: paulelsne...@googlemail.com
> To: android-developers@googlegroups.com
> Subject: Re: [android-developers] Re: Desktop Sharing of my pc on my 
> Android mobile??
>
> Hi,
> this depends on the OS of your PC.
> For windows you had recognised that your mouse cursor is not part of the 
> captured screen. You have to capture the mouse yourself.
>         POINT cursorPos;
>         GetCursorPos(&cursorPos);
>         float x = 0;
>         x = cursorPos.x; 
>         float y = 0;
>         y = cursorPos.y; 
>
> and transmit the data.
>
> On Tuesday, March 13, 2012 7:51:50 AM UTC+1, muhamma...@hotmail.com wrote:
>
>  existing remote control application? Is there any application of this 
> type. but i want to create my on app. please can you help me how to get the 
> control of my mouse. Thanks for your reply
>
>
> Regards,
>
> umer
> ------------------------------
> Date: Mon, 12 Mar 2012 13:18:48 -0700
> From: l...@bendlin.us
> To: android-developers@googlegroups.com
> Subject: [android-developers] Re: Desktop Sharing of my pc on my Android 
> mobile??
>
> uhm... you use one of the existing remote control applications?
>
> On Monday, March 12, 2012 11:21:05 AM UTC-4, muhamma...@hotmail.com wrote:
>
> Hi, 
>        I am creating an app to share my pc desktop on my android 
> mobile. Now i am receiving the images from my pc on my mobile, but not 
> the control of my mouse, Please can anyone tell me how to get the 
> control of my mouse to handle my pc through my mobile. 
>
>
> Thanks and Regards, 
>
> umer
>
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>  
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>  

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to