Skip to content

Releases: esotericpig/jeso

v0.3.7

18 Jun 19:48
Compare
Choose a tag to compare

Changes

  • Updated internal Gradle build system files.
  • Formatted code (mainly trimmed trailing spaces).

v0.3.6

03 Apr 13:44
Compare
Choose a tag to compare

BotBuddy now implements AutoCloseable so that you can use try-with-resource:

// This will automatically call buddy.releasePressed() for you
try(BotBuddy buddy = BotBuddy.builder().build()) {
  // ...
}

v0.3.5

29 Mar 15:41
Compare
Choose a tag to compare

Changed

  • botbuddy.BotBuddy
    • Added:
      • type(int x,int y,int keyCode)
      • type(String text), type(int x,int y,String text)
        • This will type each char (code point) in text using KeyCodes. If the char's key code doesn't exist, then it uses paste(...) for the char instead.
      • typeUnsurely(String text), typeUnsurely(int x,int y,String text)
        • This is the same as type(...), except that if the char's key code doesn't exist, it will not use paste(...) and instead try to look up the char using KeyEvent (which usually doesn't work).
  • botbuddy.BotBuddyCode
    • Changed type Instruction to use new type(...) overloads (when possible)
    • Added typeunsurely Instruction

Added

  • botbuddy.KeyCodes
    • Various methods for converting a char (code point) to a KeyEvent.VK_ virtual key code.
    • getCharCodes(int keyChar)
    • getCharCodes(int keyChar,boolean getExKeyCode)
  • Chars
    • toString(int codePoint)

Notes

KeyCodes may or may not work with non-US keyboards at this time (plan on making it more generic in a future version).

For any chars that don't work, you can call putCharCodes(int keyChar,int[] keyCodes) with your own custom ones. For example:

KeyCodes.putCharCodes('$',new int[] {KeyEvent.VK_SHIFT,KeyEvent.VK_DOLLAR});

v0.3.4

01 Mar 03:14
Compare
Choose a tag to compare

If your code used one of the following, it will break:

new BotBuddy(...)
new BotBuddy.Builder(...)
new BotBuddy.Stash(Stash)
new BotBuddyCode(...)

Instead, you should use:

BotBuddy.builder().build()
BotBuddy#dup()
BotBuddy.Stash#dup()
BotBuddyCode.builder().build()

The other methods were either removed or made protected so that there would be less init methods to maintain (and therefore less bugs).

v0.3.3

09 Jul 16:51
Compare
Choose a tag to compare
  • Top Package
    • Arys, Bools, Duplicable, OSFamily, Strs, Sys
  • BotBuddy Package
    • BotBuddy, BotBuddyCode, BotBuddyCodeApp
  • Code Package
    • LineOfCode, ParseCodeException
  • IO Package
    • StringListReader