Any Macro

by Kaiochao
Track buttons using the Any Macro. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Kaiochao.AnyMacro##version=2

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:


Version 2
Date added: Jun 23 2017
Last updated: May 16 2019
0 fans
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.