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

53
LINES

< > BotCompany Repo | #1001492 // Self-moving OS Sensor

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

Libraryless. Click here for Pure Java version (2515L/17K/54K).

1  
!747
2  
!1000805 // awt
3  
!image classes
4  
5  
m {
6  
  !include #1001425 // ShowBigText
7  
  
8  
  static S os;
9  
  static boolean wtf;
10  
  
11  
  p {
12  
    readLocally("os");
13  
    new ShowBigText sbt;
14  
    sbt.title = "OS Sensor";
15  
    if (os != null) sbt.showText(os + "!");
16  
    
17  
    for (int n = 0; n < 2; n++) {
18  
      S theOS = getOS();
19  
      if (os != null && !eq(os, theOS)) {
20  
        for (int i = 0; i < 3; i++) {
21  
          wtf = true;
22  
          sbt.showText("WTF!");
23  
          sleepSeconds(1);
24  
          sbt.showText(os + "!");
25  
          sleepSeconds(1);
26  
          sbt.showText(theOS + "!");
27  
          sleepSeconds(1);
28  
        }
29  
        wtf = false;
30  
      }
31  
      
32  
      if (!eq(os, theOS)) {
33  
        os = theOS;
34  
        saveLocally("os");
35  
        sbt.showText(os + "!");
36  
      }
37  
      
38  
      sleepSeconds(5);
39  
    }
40  
    
41  
    // Move!
42  
    
43  
    hyperMove("teubizvjbppd", "dhtvkmknsjym");
44  
    System.exit(0);
45  
  }
46  
  
47  
  static S getOS() {
48  
    if (isAndroid()) ret "Android";
49  
    if (isMac()) ret "Mac OS";
50  
    if (isWindows()) ret "Windows";
51  
    ret "Linux"; // Everything else is Linux... Yeah it's generous :)
52  
  }
53  
}

Author comment

Began life as a copy of #1001468

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001492
Snippet name: Self-moving OS Sensor
Eternal ID of this version: #1001492/1
Text MD5: 9de1ebf527e176764ab350d05649def7
Transpilation MD5: 61ec10c090fd22806633d80287ffc6df
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-19 18:35:44
Source code size: 1141 bytes / 53 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 515 / 594
Referenced in: [show references]