public void Activate(string button) { int buttonNumber = ParseMouseButtonNumber(button); if (buttonNumber == 1) { _mouse.LeftButtonClick(); } else if (buttonNumber == 2) { _mouse.RightButtonClick(); } else if (buttonNumber == 3) { _mouse.MiddleButtonClick(); } else if (buttonNumber > 3) { _mouse.XButtonClick(buttonNumber - 3); } }
public void Click(int button) { _mouseSimulator.XButtonClick(button); }