Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / April 2008

Tip: Looking for answers? Try searching our database.

how to move the mouse in Visual C++

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
marcelo - 25 Apr 2008 04:14 GMT
Hey,

I need help with this.
I want to know what is the mouse position (x,y) and move the mouse (anywhere
in the screen) in Visual C++ 2005.
I have found a LOT of code in internet but noone works in my pc. I'm
developing a Windows Form Application.

Thanks a lot for any help...I will really appreciated.
Regards,
Marcelo.
David Lowndes - 25 Apr 2008 09:26 GMT
>I want to know what is the mouse position (x,y) and move the mouse (anywhere
>in the screen) in Visual C++ 2005.
>I have found a LOT of code in internet but noone works in my pc. I'm
>developing a Windows Form Application.

Marcelo,

I guess you're looking for the .Net equivalent of the GetCursorPos,
SetCursorPos APIs - Cursor.Position looks likely to be what you need.

Dave
marcelo - 25 Apr 2008 18:54 GMT
Thanks a lot David, I will check it out.

> >I want to know what is the mouse position (x,y) and move the mouse
> >(anywhere
[quoted text clipped - 8 lines]
>
> Dave
Tamas Demjen - 25 Apr 2008 18:32 GMT
> I want to know what is the mouse position (x,y) and move the mouse (anywhere
> in the screen) in Visual C++ 2005.

mouse_event:
http://msdn2.microsoft.com/en-us/library/ms646260.aspx

Tom
marcelo - 25 Apr 2008 18:54 GMT
thanks a lot Tamas, I will check it out...

>> I want to know what is the mouse position (x,y) and move the mouse
>> (anywhere
[quoted text clipped - 4 lines]
>
> Tom

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.