+ Reply to Thread
Results 1 to 2 of 2

Thread: Can't call command that consume hardware events from a macro!?

  1. #1
    Shadowlander GreenZomie's Avatar
    Join Date
    Sep 2018
    Posts
    34

    Default Can't call command that consume hardware events from a macro!?

    I registered a slash command that, in this case chooses a mount.

    This command works great when executed from the console, but then I wrapped it in a macro so it can be clicked

    Code:
    Command.Event.Attach(
        Command.Slash.Register("test_mount"),
        function(handle,param)
            local mounts = Inspect.Item.Mount.List()
            local mount = next(mounts)
            Command.Item.Mount.Use(mount)
        end,
        "TestSlashCommand")
    This produces an error

    Code:
    Error: Missing hardware event.
    Function documentation:
    	Uses a collected mount.
    	This function consumes a hardware event to function. Hardware events include Event.UI.Input.Mouse.*.Down, Event.UI.Input.Mouse.*.Up, and Event.UI.Input.Mouse.Wheel.*.
    		Command.Item.Mount.Use(mount)   -- item
    Parameters:
    		mount:	The item ID of the collected mount to use.
    Clearly? the button consumes the click action, but how then to expose a command like this to macros / something I can place in an action bar?
    Last edited by GreenZomie; 09-22-2018 at 12:51 PM.

  2. #2
    Soulwalker
    Join Date
    Aug 2018
    Posts
    2

    Default

    It's not of much assistance to you, but I can verify your findings. I played around with it a little and couldn't find any way around it. It seems that it's just not possible.

    I think it's pretty unfortunate that the addon environment in Rift is so locked down, personally. The fact that free operating systems with all the bells and whistles exist at all (e.g. Linux), shows just how much unpaid enthusiasts can and do accomplish. I guess Trion doesn't want their game's interface improved.

+ 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