コード例 #1
0
ファイル: Mouse.cs プロジェクト: vnvizitiu/WinAPI-Wrapper
 /// <summary>
 /// Perform a specific mouse action.
 /// </summary>
 /// <param name="flag">The flag for the specified action. </param>
 private static void MouseFunction(uint flag)
 {
     Structs.INPUT inputMouseDown = new Structs.INPUT();
     inputMouseDown.Type             = 0; /// Input type = mouse.
     inputMouseDown.Data.Mouse.Flags = flag;
     WinAPI.SendInput(1, ref inputMouseDown, Marshal.SizeOf(new Structs.INPUT()));
 }
コード例 #2
0
ファイル: WinAPI.cs プロジェクト: vnvizitiu/WinAPI-Wrapper
 internal static extern uint SendInput(uint nInputs, ref Structs.INPUT pInputs, int cbSize);