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

48
LINES

< > BotCompany Repo | #1001468 // OS Sensor 2: OS Sensor with Memory

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

Libraryless. Click here for Pure Java version (1939L/14K/42K).

!747

!1000805 // awt
!image classes

m {
  !include #1001425 // ShowBigText
  
  static S os;
  static boolean wtf;
  
  p {
    readLocally("os");
    new ShowBigText sbt;
    sbt.title = "OS Sensor";
    if (os != null) sbt.showText(os + "!");
    
    while (true) {
      S theOS = getOS();
      if (os != null && !eq(os, theOS)) {
        for (int i = 0; i < 3; i++) {
          wtf = true;
          sbt.showText("WTF!");
          sleepSeconds(1);
          sbt.showText(os + "!");
          sleepSeconds(1);
          sbt.showText(theOS + "!");
          sleepSeconds(1);
        }
        wtf = false;
      }
      
      if (!eq(os, theOS)) {
        os = theOS;
        saveLocally("os");
        sbt.showText(os + "!");
      }
      
      sleepSeconds(5);
    }
  }
  
  static S getOS() {
    if (isAndroid()) ret "Android";
    if (isMac()) ret "Mac OS";
    if (isWindows()) ret "Windows";
    ret "Linux"; // Everything else is Linux... Yeah it's generous :)
  }
}

Author comment

Began life as a copy of #1001464

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: #1001468
Snippet name: OS Sensor 2: OS Sensor with Memory
Eternal ID of this version: #1001468/1
Text MD5: 560fa4593d6fdf11ef8b81dbdb56a6e7
Transpilation MD5: cec0e8e61a8a5347fb4fe7411c593c70
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-17 15:08:58
Source code size: 1031 bytes / 48 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 524 / 1214
Referenced in: #1001469 - Move OS Sensor 2 around
#1001472 - Kill OS Sensor 2
#1001490 - Print identity of script (from Identity Manager)
#1001492 - Self-moving OS Sensor
#3000078 - Data zip of #1001468 on dhtvkmknsjym at 1442186412136
#3000079 - Data zip of #1001468 on teubizvjbppd at 1445087259749
#3000080 - Data zip of #1001468 on teubizvjbppd at 1445087281104
#3000081 - Data zip of #1001468 on dhtvkmknsjym at 1442187162455
#3000082 - Data zip of #1001468 on teubizvjbppd at 1445087910731
#3000083 - Data zip of #1001468 on dhtvkmknsjym at 1442187216302
#3000084 - Data zip of #1001468 on teubizvjbppd at 1445087962972
#3000085 - Data zip of #1001468 on dhtvkmknsjym at 1442187975984
#3000086 - Data zip of #1001468 on teubizvjbppd at 1445101980783
#3000087 - Data zip of #1001468 on dhtvkmknsjym at 1442188100383
#3000088 - Data zip of #1001468 on teubizvjbppd at 1445102901247
#3000089 - Data zip of #1001468 on dhtvkmknsjym at 1442188436907
#3000090 - Data zip of #1001468 on teubizvjbppd at 1445102977396
#3000091 - Data zip of #1001468 on dhtvkmknsjym at 1442188474211
#3000092 - Data zip of #1001468 on teubizvjbppd at 1445103024461
#3000093 - Data zip of #1001468 on dhtvkmknsjym at 1442188588796
#3000094 - Data zip of #1001468 on teubizvjbppd at 1445103146425
#3000095 - Data zip of #1001468 on dhtvkmknsjym at 1442188646418
#3000096 - Data zip of #1001468 on teubizvjbppd at 1445103201378
#3000097 - Data zip of #1001468 on dhtvkmknsjym at 1442188704943
#3000098 - Data zip of #1001468 on teubizvjbppd at 1445103254789
#3000099 - Data zip of #1001468 on dhtvkmknsjym at 1442188888537
#3000100 - Data zip of #1001468 on teubizvjbppd at 1445272257388
#3000101 - Data zip of #1001468 on dhtvkmknsjym at 1442189380314
#3000102 - Data zip of #1001468 on teubizvjbppd at 1445272349409
#3000103 - Data zip of #1001468 on dhtvkmknsjym at 1442189444696
#3000104 - Data zip of #1001468 on teubizvjbppd at 1445272413346
#3000105 - Data zip of #1001468 on dhtvkmknsjym at 1442189513505
#3000190 - Answer for stefanreich(>> t 20 questions)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)