Original Post
Quote:[System.Runtime.InteropServices.DllImport("user32.dll" , EntryPoint="GetCursorPos")] internal extern static bool GetCursorPos(out System.Drawing.Point lpPoint); [System.Runtime.InteropServices.DllImport("user32.dll" , EntryPoint="SetCursorPos")] internal extern static Int32 SetCursorPos(Int32 x ,Int32 y ); [System.Runtime.InteropServices.DllImport("user32.dll" , EntryPoint="ShowCursor")] internal extern static Int32 ShowCursor(bool bShow);
[System.Runtime.InteropServices.DllImport("user32.dll" , EntryPoint="SetCursorPos")] internal extern static int SetCursorPos ( int x , int y ); is there a way to do this in c# without loading unsafe code? thanks