2526272829303132333435
while (threadRunning) { if (mode == 1) { new ClientCaptureScreen(1); } else if (mode == 2) { new CaptureScreenByMode(); } //Wait for 500 milliseconds for the next run ClientSentScreen.sleep(500);