TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to get working with BitFocus Companion

    General Discussion
    2
    2
    2.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Favored.live TechF
      Favored.live Tech
      last edited by

      How can I press a button on companion to trigger a cmd?

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @Favored.live Tech
        last edited by Russ

        @favored-live-tech, here's one simple way to add a button to trigger one of your commands:

        First add Generic HTTP Requests under Connections.

        facc1bb3-57ff-4c08-a058-6b88aa905954-image.png

        Click the Bookmark button next to the command you want to run.
        37c274fd-cb5a-4fd9-9af1-de758106a69c-image.png

        Copy the bookmark URL for that command. It looks like this:
        https://www.triggercmd.com/trigger/bookmark?token=blahblah..

        Create a "Regular button" with http: GET as the "Press action"

        Paste the bookmark URL into the URL field (lower-right in this screenshot).
        bdfaf20f-cb9f-4623-9e64-cd2eac1f76ab-image.png

        Instead of the bookmark URL you could also use a URL like this:

        https://www.triggercmd.com/api/run/triggerSave?computer=(your computer name)&trigger=calculator&token=(token)

        Where token is a token from the Instructions page. Also replace calculator with your command's name.

        If there's a lot of demand, I'd be willing to make an official TRIGGERcmd connection module for it.

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • First post
          Last post