public static void Move() { if (Environment.TickCount - lastClick <= 75) { return; } if (currentState) { HardwareRobot.DoMButtonClick((int)sx * (961 + 50), (int)sy * 507); } else { HardwareRobot.DoMButtonClick((int)sx * (961 - 50), (int)sy * 507); } lastClick = Environment.TickCount; currentState = !currentState; }