oxalicacid224
08-05-2018, 10:39 PM
I'm having no luck figuring this out. What I need is an efficient macro that can execute multiple actions without writing /run before every similar command. Basically I need to know how to write a list.
Inefficient code:
/run SetBinding("F1","MULTIACTIONBAR1BUTTON1")
/run SetBinding("F2","MULTIACTIONBAR1BUTTON2")
/run SetBinding("F3","MULTIACTIONBAR1BUTTON3")
/run SetBinding("F4","MULTIACTIONBAR1BUTTON4")
/run SetBinding("F5","MULTIACTIONBAR1BUTTON5")
The code below is what I need. Except it doesn't work. :(
/run SetBinding(
"F1","MULTIACTIONBAR1BUTTON1",
"F2","MULTIACTIONBAR1BUTTON2",
"F3","MULTIACTIONBAR1BUTTON3",
"F4","MULTIACTIONBAR1BUTTON4",
"F5","MULTIACTIONBAR1BUTTON5"
)
What am I doing wrong here?
Also, if there is a smart cookie out there; How to write MULTIACTIONBAR1BUTTON(1-5) To make it even more compact?
Inefficient code:
/run SetBinding("F1","MULTIACTIONBAR1BUTTON1")
/run SetBinding("F2","MULTIACTIONBAR1BUTTON2")
/run SetBinding("F3","MULTIACTIONBAR1BUTTON3")
/run SetBinding("F4","MULTIACTIONBAR1BUTTON4")
/run SetBinding("F5","MULTIACTIONBAR1BUTTON5")
The code below is what I need. Except it doesn't work. :(
/run SetBinding(
"F1","MULTIACTIONBAR1BUTTON1",
"F2","MULTIACTIONBAR1BUTTON2",
"F3","MULTIACTIONBAR1BUTTON3",
"F4","MULTIACTIONBAR1BUTTON4",
"F5","MULTIACTIONBAR1BUTTON5"
)
What am I doing wrong here?
Also, if there is a smart cookie out there; How to write MULTIACTIONBAR1BUTTON(1-5) To make it even more compact?