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

Recommended Answers

All 3 Replies

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?

Yea,I am trying.It is working

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.