public static API_InputSimulator mouse_Click(this API_InputSimulator inputSimulator) { inputSimulator.Input_Simulator.Mouse.LeftButtonDown(); inputSimulator.wait(300); inputSimulator.Input_Simulator.Mouse.LeftButtonUp(); // inputSimulator.sleep(500); return(inputSimulator); }