public static void ClickSpam(int AmountOfClicks, int PauseBetwClicksInMS) { for (int Clickcount = 0; Clickcount < AmountOfClicks; Clickcount++) { MouseActions.LeftMouseUp(); MouseActions.LeftMouseDown(); Stopwatch st = new Stopwatch(); st.Start(); while (st.Elapsed < TimeSpan.FromMilliseconds(PauseBetwClicksInMS)) { // } st.Stop(); //Requieres HelperClass KeyboardInput (Solution AutoSF) //if(Clickcount < 20) { // KeyboardInput.Send(KeyboardInput.ScanCodeShort.KEY_F); //} } }