Setting mouse position without System.Windows.Forms

前端 未结 2 1838
再見小時候
再見小時候 2021-01-19 00:45

Is there a way to manipulate the mouse position without using System.Windows.Forms.Cursor? Something like interop maybe?

Reason for this is that we are using a speci

2条回答
  •  伪装坚强ぢ
    2021-01-19 01:12

    oops my bad, read question too fast, heres the correct PInvoke call

    [DllImport("user32.dll")]
    static extern bool SetCursorPos(int X, int Y);
    

    Source: http://www.pinvoke.net/default.aspx/user32.setcursorpos

提交回复
热议问题