If I could correctly parse you grammar, you may mean controlling mouse cursor. In
System.Windows.Forms
, this is done via the class
System.Windows.Forms.Cursor
.
Use the static property
System.Windows.Forms.Cursor.Positin
to read and modify the position of mouse cursor on screen.
See:
http://msdn.microsoft.com/en-us/library/system.windows.forms.cursor.aspx[
^],
[
^].
Simulation of mouse clicks and any other input is more difficult. You will need to P/Invoke Windows API
SendInput
, see
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646310%28v=vs.85%29.aspx[
^]. It simulates input on low-level, with no regard to windows, but using P/Invoke breaks platform compatibility of the code; such code could be used only on Windows.
—SA