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:

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

461 downloads
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.
mob/Login()
for()
if(client.macros["Z"])
src << "The Z key is being pressed."
sleep world.tick_lag


Changelog

8/24/18

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 Demo.dm to demonstrate basic overriding.

7/14/17

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