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

67
LINES

< > BotCompany Repo | #1033892 // Gazelle 22 Standalone [stable version backup]

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

Download Jar. Uses 1955K of libraries. Click here for Pure Java version (14840L/80K).

// WELCOME!! This is THE PROGRAM YOU ARE LOOKING FOR.

// Latest development version: #1033860

!7

// INCLUDE THE MAIN MODULE
!include early #1033683 // Gazelle Screen Cam 
replace MainModule with GazelleScreenCam.

!include early #1033540 // include GazelleHost early for flags like PingV3

//set flag InCore.
set flag NoJavaXJar.

sS windowTitle = "Gazelle 22";
sS progIDForDBAndAutoUpdate = #1033636;
sbool pingSourceStrictMode;

static GazelleHost host;
static MainModule client;
static ThreadPool threadPool;

p {
  loadableUtils.utils.__setJavaX(main.class);
  standaloneInit();
  
  ping_v3_setPingSourceMaker(-> {
    System.out.println("pingSourceMaker");
    if (pingSourceStrictMode)
      fail("Strict mode - make a ping source first!!");
    ret new PingSource(threadPool, "legacy");
  });
  
  threadPool = new ThreadPool(findIntArg cores(args, numberOfCores()));
  print(threadPool);
  //threadPool.verbose = true;
  PingSource ps = new(threadPool, print("Starting Gazelle"));
  ps.do(-> {
    System.out.println("Pinging");
    ping();
    //if (true) fail("error test");
  
    print("Pinged");
    
    programID = progIDForDBAndAutoUpdate;
    
    if (cic(args, "delete-session")) {
      print("Deleting session (" + programDir(programID) + ")");
      clearConceptsOf(programID);
    }
    
    host = new GazelleHost(threadPool, -> {
      ret client = new MainModule;
    });
    host.windowTitle = windowTitle;
    host.run(args);
    
    if (!cic(args, "console")) {
      print("Stopping System.out");
      printAlsoToSystemOut = false;
    }
  });
  print("aha.");
}

static Map generalMap = syncMap();

Author comment

Began life as a copy of #1033636

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): bhatertpkbcr, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033892
Snippet name: Gazelle 22 Standalone [stable version backup]
Eternal ID of this version: #1033892/1
Text MD5: 6be77a1cbb4d4afb78b29f3ea80a02e6
Transpilation MD5: 61e1bf3538bc8288464aa42418554bfe
Author: stefan
Category: javax / screen recognition
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-09 03:52:53
Source code size: 1699 bytes / 67 lines
Pitched / IR pitched: No / No
Views / Downloads: 99 / 523
Referenced in: [show references]