public static void Click(enmMouseButton Button) { if (Button == enmMouseButton.Left) { USER32.mouse_event((uint)MOUSEEVENT.LEFTDOWN, 0, 0, 0, UIntPtr.Zero); USER32.mouse_event((uint)MOUSEEVENT.LEFTUP, 0, 0, 0, UIntPtr.Zero); } else { USER32.mouse_event((uint)MOUSEEVENT.RIGHTDOWN, 0, 0, 0, UIntPtr.Zero); USER32.mouse_event((uint)MOUSEEVENT.RIGHTUP, 0, 0, 0, UIntPtr.Zero); } }