Maus Position

Published on: October 25, 2010
Categories: C# C++ und C
Tags: No Tags
Comments: No Comments

Maus Position

using System.Runtime.InteropServices;
[DllImport("user32.dll")]
static extern bool GetCursorPos(ref Point lpPoint);
Point MousePoint = new Point();
 
GetCursorPos(ref MousePoint);
string x = MousePoint.X.ToString();
string y = MousePoint.Y.ToString();

No Comments - Leave a comment

Leave a comment

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Welcome , today is Saturday, May 19, 2012