Any Macro

by Kaiochao
Track buttons using the Any Macro.
Track buttons on your keyboard and gamepad using the Any Macro.

Uses a button tracker from the Button Tracker library.

Example: See a message every tick as long as a certain key is being pressed.
src << "The Z key is being pressed."
sleep world.tick_lag



Basically simplified the code and made a new simple demo to see some basic stuff.
  • Added AnyMacro.dms to bind the Any macro to the client's button verbs. This is an alternative to calling winset() on connection or setting up macros in a .dmf file.
  • Changed how client.macros is initialized. It should now be easier to override with a different button tracker.
  • Added to demonstrate basic overriding.


Added a demo showing how to provide a custom button tracker that responds to events called when buttons are pressed and released.