!752 static bool onSlack; p { new ShootLoop { void recognize { // Two versions for different browsers (Opera/Firefox display differently for whatever reason) onSlack = hasImageOnScreen("#1005832") || hasImageOnScreen("#1005833"); } void printState(long time) { done_always(time, onSlack ? "You're on Slack!" : "Slack window not visible."); setConsoleIcon(onSlack ? "#1005832" : "#1005834"); } }.run(); }