+ Reply to Thread
Results 1 to 4 of 4

Thread: Triggering chat commands (macro's) via an addon

  1. #1
    RIFT Guide Writer Redcruxs's Avatar
    Join Date
    Jan 2011
    Posts
    3,935

    Default Triggering chat commands (macro's) via an addon

    So based on some of the stuff I'm seeing i'm assuming it's possible to trigger a macro command via an addon, as long as it's associated with a button press is that correct?

    for example:

    A button could be clicked that triggers a macro "i name@shard" and it would invite that player
    or
    "join channel" and it would join the channel?

  2. #2
    Telaran
    Join Date
    Oct 2011
    Posts
    86

    Default

    Quote Originally Posted by Redcruxs View Post
    So based on some of the stuff I'm seeing i'm assuming it's possible to trigger a macro command via an addon, as long as it's associated with a button press is that correct?

    for example:

    A button could be clicked that triggers a macro "i name@shard" and it would invite that player
    or
    "join channel" and it would join the channel?
    That is correct. Pretty much anything you can place in a macro will work. You will need to set your frames to restricted as well when doing this.
    Author of RiftHud, RiftActionbarCooldowns, RunecraftHelper, RiftHealer, and RiftMenuXtra. Can be found at RiftUI and Curse.

  3. #3
    RIFT Guide Writer Redcruxs's Avatar
    Join Date
    Jan 2011
    Posts
    3,935

    Default

    Quote Originally Posted by TinnerKB View Post
    That is correct. Pretty much anything you can place in a macro will work. You will need to set your frames to restricted as well when doing this.

    I wonder if it will only do one command per click or if it can itterate

    example i want to invite 20 people to a raid

    will it itterate

    For k, v in namelist do
    local name = v
    macro:"invite name"
    end
    (note: pseudo code :P)

    and invite everyone with one click or will I have to click it 20 times XD

  4. #4
    Telaran
    Join Date
    Oct 2011
    Posts
    86

    Default

    Quote Originally Posted by Redcruxs View Post
    I wonder if it will only do one command per click or if it can itterate

    example i want to invite 20 people to a raid

    will it itterate

    For k, v in namelist do
    local name = v
    macro:"invite name"
    end
    (note: pseudo code :P)

    and invite everyone with one click or will I have to click it 20 times XD
    No, neither could you do so with a macro. Think of the two as the same.
    Author of RiftHud, RiftActionbarCooldowns, RunecraftHelper, RiftHealer, and RiftMenuXtra. Can be found at RiftUI and Curse.

+ Reply to Thread

Bookmarks

Posting Permissions

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