Exemple #1
0
 /// <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()));
 }
Exemple #2
0
 internal static extern uint SendInput(uint nInputs, ref Structs.INPUT pInputs, int cbSize);