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).

1  
!747
2  
!1000805 // awt
3  
!image classes
4  
5  
m {
6  
  !include #1001425 // ShowBigText
7  
  
8  
  static int delay = 2000;
9  
  static volatile boolean up;
10  
  
11  
  p {
12  
    new ShowBigText sbt;
13  
    
14  
    while (true) {
15  
      up = remoteBotsUp(5000);
16  
      sbt.title = (up ? "Up" : "Down") + ": Remote Bots";
17  
      sbt.background = up ? Color.green : Color.red;
18  
      sbt.showText(up ? "UP" : "DOWN");
19  
      sleep(delay);
20  
    }
21  
  }
22  
}

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: 664 / 759
Referenced in: [show references]