954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Mouse pointer position changing

Hi,

I want to write a simple code to change the mouse pointer position.Like I enter the value of X and Y and the mouse pointer should get positioned to that co-ordinates.What are the specific functions that I need to use to set mouse position and get mouse position?I searched MSDN but could not get what I was looking for.Any help with the code? (I am using Windows Xp and DevCpp).

danibootstrap
Light Poster
46 posts since Dec 2007
Reputation Points: 23
Solved Threads: 0
 

I found the respective functions in the MSDN library now.The following are the links which tell (which Library ,which dll and function syntax)
Get mouse position :


Set mouse pos:
http://msdn.microsoft.com/en-us/library/ms648394(VS.85).aspx

Now I have used Dev Cpp quite long ago and not much.How shall I specify the import lib (user32.lib ) and dll file being used in the code (user32.dll)?

Can some one help with the initial code part?

danibootstrap
Light Poster
46 posts since Dec 2007
Reputation Points: 23
Solved Threads: 0
 

You should be set if you create a win32 GUI project.

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

Yea,I am trying.It is working

danibootstrap
Light Poster
46 posts since Dec 2007
Reputation Points: 23
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You