How to use SetCursorPos() Windows API function in C#

1 Answer

0 votes
using System;
using System.Runtime.InteropServices;

namespace API
{
	class Class1
	{
		[DllImport("user32.dll")] 
		static extern bool SetCursorPos(int xPos, int yPos); 

		static void Main(string[] args)
		{
			SetCursorPos(100, 100);
		}
	}
}



answered Aug 10, 2014 by avibootz

Related questions

1 answer 526 views
1 answer 345 views
1 answer 4,008 views
1 answer 122 views
1 answer 128 views
...