v0.3.5
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
usingKeyCodes
. If the char's key code doesn't exist, then it usespaste(...)
for the char instead.
- This will type each char (code point) in
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 usepaste(...)
and instead try to look up the char usingKeyEvent
(which usually doesn't work).
- This is the same as
- Added:
botbuddy.BotBuddyCode
- Changed
type
Instruction to use newtype(...)
overloads (when possible) - Added
typeunsurely
Instruction
- Changed
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)
- Various methods for converting a char (code point) to a
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});