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

21
LINES

< > BotCompany Repo | #1007406 // framesBot

JavaX fragment (include)

1  
static volatile bool framesBot_has;
2  
3  
static Android3 framesBot() {
4  
  if (framesBot_has) null;
5  
  framesBot_has = true;
6  
  new Android3 android;
7  
  android.greeting = programIDPlusHome() + " Frames.";
8  
  android.console = false;
9  
  android.responder = new Responder {
10  
    public S answer(S s, L<S> history) {
11  
      if "activate frames" {
12  
        awt { // prevent blocking when called from same program's AWT thread
13  
          activateMyFrames();
14  
        }
15  
        ret "OK, activating " + programName();
16  
      }
17  
      null;
18  
    }
19  
  };
20  
  ret makeBot(android);
21  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1007406
Snippet name: framesBot
Eternal ID of this version: #1007406/9
Text MD5: b81b80ef7a64d67f3e9cb0faa668b232
Author: stefan
Category: javax / gui / bots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-06 22:58:40
Source code size: 572 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 563 / 598
Version history: 8 change(s)
Referenced in: [show references]