ID:1091201
 
(See the best response by Super Saiyan X.)
Code:
usr << winget(src, null, "macros")


Problem description:
The Skin Reference says that this will return a list of macros, separated by ";"..


Unfortunately however, it doesn't. It only returns "macro". At first I thought it was because none of the macros had an ID attached (which shouldn't be a problem when it comes to macros) Instead, when I did set an ID, I got the exact same result. I tried with a completely blank set of macros, and added ids one by one, and no change.

I'd really like to know if there is a way to check all of someone's macros, check if they have settings, such as repeat or hold shift, and then change these settings.

I want players to be able to change their macros, but I want to be able to control certain settings (specifically, if they have a macro set to repeat.)
Best response
1. That winget call returns the macro *sets* available to the user. Not the actual list of macros in the set. Just as the similar call for windows returns all the list of windows - not the controls. Macro entries are IN the macro sets.

2. To get the list of macros in the set, you take whatever that winget call returns, and do this:
winget(src, "macro.*", "id")

Please note that for macros to appear they DO need an ID, the reference states that.

So eventually, it's not possible to keep users from putting a macro into repeat, without activating control_freak...

Got it ._.