Jump to content

JeffZ

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by JeffZ

  1. Hi, i'm trying to automate a few things in the future client but I can't seem to simulate keypresses that are bound to features in the mod. I can simulate normal minecraft things like right-click: KeyBinding.onTick(MINECRAFT.gameSettings.keyBindUseItem.getKeyCode()); And open inventory: KeyBinding.onTick(MINECRAFT.gameSettings.keyBindInventory.getKeyCode()); But when I try something like: KeyBinding.onTick(Keyboard.KEY_U); or register my own key bindings: public static final KeyBinding TIMER = new KeyBinding("key.bot:timer", KeyConflictContext.IN_GAME, Keyboard.KEY_U, CATEGORY); still doesn't work. I've been poking around in the keyboard ticking, and the lookupActive returns fine. Anyone know how to simulate an arbitrary key press? Thanks.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.