Close
Showing results 1 to 3 of 3
  1. #1

    Default [Help] Shorten macro by removing extra unnecessary /run commands?

    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:
    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.
    Code:
    /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?
    Last edited by oxalicacid224 : 08-05-2018 at 10:42 PM Reason: Extra question

  2. #2
    Member JohnGabriel's Avatar
    Join Date
    Oct 2008
    Location
    Seattle Washington, USA
    Posts
    2272

    Default

    You can put them on one line no line returns.

    Code:
    /run SetBinding("F1","MULTIACTIONBAR1BUTTON1")SetBinding("F2","MULTIACTIONBAR1BUTTON2")SetBinding("F3","MULTIACTIONBAR1BUTTON3")SetBinding("F4","MULTIACTIONBAR1BUTTON4")SetBinding("F5","MULTIACTIONBAR1BUTTON5")

  3. #3

    Default

    Honestly dude. You're awesome. Thank you for the constant help today. I've installed macro toolkit because I'm having way too much fun with the knowledge you've shared. +Rep

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •