public void PerformClick(MouseSimulatorClickType clickType) { //Call the imported function with the cursor's current position uint X = (uint)Cursor.Position.X; uint Y = (uint)Cursor.Position.Y; PerformClick(clickType, X, Y); }
private uint GetClickType(MouseSimulatorClickType clickType) { switch (clickType) { case MouseSimulatorClickType.Left: return(leftClick); case MouseSimulatorClickType.Right: return(rightClick); default: return(leftClick); } }
public void PerformClick(MouseSimulatorClickType clickType, uint x, uint y) { uint click = GetClickType(clickType); mouse_event(click, x, y, 0, 0); }