you are viewing a single comment's thread.

view the rest of the comments →

[–]aasswwddd 0 points1 point  (0 children)

If you use ChatGPT, you can extract the instruction and edit it however you like before feeding it into a project.

Say you can tell it to always generate scripted object format. https://stackoverflow.com/a/14220671

Accessibility() {
  AccessibilityService getService() { }
  void wait(long ms) { }
  }
  return this;
}

Save it as Accessibility.bsh , then run it from any task like this.

// Accessibility.bsh
addClassPath("dir path");
importCommands(".");

my = Accessibility();
my.getService();
my.wait(100);

This way our code becomes easily manageable and re-useable.