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.