ID:1451101
 
(See the best response by Gandalf the Grey.)
Is there a way to set macros as repeat or upon release at compile time? Or modifying this at run time?
I believe you can do it with winset. If you look into Forum_account's Keyboard library, he manually modifies the default macro file in it.
Best response
Oh I think you mean the +rep and +up. It would look something like this, using winset()

To create a macro:
winset(usr, "A", "parent=macro;name=A+REP;command=Test")

To modify an existing macro:
 winset(src,"macro.A+REP","command=Test")

After the key just add +REP or +UP, not sure if they need to be capitalized.
Aha. Thanks. I think they probably do because they're capitalized when you set macros via the list.
They're not case-sensitive, but there's nothing wrong with staying consistent with the interface editor.

More info:
http://www.byond.com/docs/ref/skinparams.html#macros