Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #1001652 // Remote Bots Up?

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (2086L/14K/45K).

!747

!1000805 // awt
!image classes

m {
  !include #1001425 // ShowBigText
  
  static int delay = 2000;
  static volatile boolean up;
  
  p {
    new ShowBigText sbt;
    
    while (true) {
      up = remoteBotsUp(5000);
      sbt.title = (up ? "Up" : "Down") + ": Remote Bots";
      sbt.background = up ? Color.green : Color.red;
      sbt.showText(up ? "UP" : "DOWN");
      sleep(delay);
    }
  }
}

Author comment

Began life as a copy of #1001464

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001652
Snippet name: Remote Bots Up?
Eternal ID of this version: #1001652/1
Text MD5: e0fafb8a4f378c1b2f9cec744c3f0a78
Transpilation MD5: dc1056a2ddb7fb2a54224900a4a87b5f
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-01 13:42:04
Source code size: 428 bytes / 22 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 601 / 675
Referenced in: #1001655 - Central Server Up?
#1001669 - File size watcher (big text)
#3000190 - Answer for stefanreich(>> t 20 questions)
#3000202 - Answer for stefanreich (>> T conversion bot)
#3000238 - Answer for stefanreich (>> t power bot)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)