I am trying to emulate a mouse and am using the following command to set the mouse cursor and am getting errors:
[DllImport("user32")]
public static extern int SetCursorPos(int x, int y)
I am very lost and any help would be appreciated
|
Light Poster
|
|
| 23Mar2007,02:42 | #1 |
|
I am trying to emulate a mouse and am using the following command to set the mouse cursor and am getting errors:
[DllImport("user32")] public static extern int SetCursorPos(int x, int y) I am very lost and any help would be appreciated |
|
Go4Expert Founder
|
![]() |
| 23Mar2007,09:54 | #2 |
|
You dont need to be doing it using the DllImport in C-C++ but just add the following header file Winuser.h or include Windows.h and link the dll.
In C# you the DllImport the way you have demonstrated. |