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

How to send parameters by using command line

Instructions
3
7
1.3k
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.
  • P
    Przemek P
    last edited by Nov 30, 2020, 11:49 AM

    Hi
    I have program in c# which needs parameters. I want to ruin that program by using command line on other computer. Can I manage that?

    Regards
    David

    1 Reply Last reply Reply Quote 1
    • S
      sansupercool
      last edited by Nov 30, 2020, 2:01 PM

      I too am looking for the same question. but my code is python.

      R 1 Reply Last reply Nov 30, 2020, 11:42 PM Reply Quote 0
      • R
        Russ @sansupercool
        last edited by Russ Nov 30, 2020, 11:43 PM Nov 30, 2020, 11:42 PM

        @sansupercool, you can using the tcmd tool to send parameters with --params .

        • Create a command that runs your C# or Python script, and set Allow Parameters = true.
        • Run this on the other computer: tcmd --trigger notepad --computer laptop --params your params

        The tcmd tool needs your token to be in c:\Users\(your user)\.TRIGGERcmdData\token.tkn which is where the agent installs it, but if you don't want to install the agent on the computer that's running tcmd, just copy your token.tkn file there.

        Russell VanderMey

        P 2 Replies Last reply Dec 1, 2020, 12:06 PM Reply Quote 0
        • P
          Przemek P @Russ
          last edited by Dec 1, 2020, 12:06 PM

          @Russ 🙂 Thank you very much for fast help. It's very nice that you've spent your time to help for question, which is probalby very basic for you. Now i can go forward 🙂

          Regards
          Przemek

          1 Reply Last reply Reply Quote 0
          • P
            Przemek P @Russ
            last edited by Dec 2, 2020, 12:37 AM

            @Russ Hi
            I have one more question. Can I run triggercmd with parameters from android application ?
            I think I can manage to write some very basic app in vs for android. I want to make some basic button and field, where I'll write value of parameter. I want to send that to triggercmdagent application, which needs value of that parameter. Thanks for help anyway :).

            Regards
            Przemek

            R 1 Reply Last reply Dec 2, 2020, 1:16 AM Reply Quote 0
            • R
              Russ @Przemek P
              last edited by Russ Dec 3, 2020, 1:32 AM Dec 2, 2020, 1:16 AM

              @Przemek-P, the TRIGGERcmd Android app is just like the website. You have to tap the green View Triggers button, then scroll to the right and you'll see the Parameters button for any commands with Allow Parameters set to true. If you tap that button, you can enter the parameter(s) for your command.

              TRIGGERcmd app parameters buttons

              Russell VanderMey

              P 1 Reply Last reply Dec 2, 2020, 5:40 PM Reply Quote 0
              • P
                Przemek P @Russ
                last edited by Dec 2, 2020, 5:40 PM

                @Russ 🙂 AWSOME :). No comments.

                Regards
                David

                1 Reply Last reply Reply Quote 0
                1 out of 7
                • First post
                  1/7
                  Last post