C#while (true){ if (GetAsyncKeyState(0x0002) < 0) //0x0002 = mousebuttonleftdown { enableclicker = !enableclicker; Console.WriteLine("E"); Thread.Sleep(mili); Mouselick(); } Thread.Sleep(200);}