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

    run a key press simulation

    General Discussion
    4
    7
    650
    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.
    • M
      marcott
      last edited by

      I'm trying to get triggercmd to run a keypress command but I can't seem to figure it out!

      what I would like to do is to have the command press ctrl+shit+alt+b
      on a windows 10

      thank you

      RussR F 2 Replies Last reply Reply Quote 0
      • RussR
        Russ @marcott
        last edited by

        @marcott, please try this as a .bat file script:

        nircmd sendkey shift down
        nircmd sendkey ctrl down
        nircmd sendkey alt down
        nircmd sendkey b press
        nircmd sendkey shift up
        nircmd sendkey ctrl up
        nircmd sendkey alt up
        

        If you don't have nircmd yet, this video shows how to install it.

        This is the relevant nircmd documentation page: https://nircmd.nirsoft.net/sendkey.html

        Russell VanderMey

        Pedro Paulo 0P F 2 Replies Last reply Reply Quote 0
        • tuicemenT tuicemen referenced this topic on
        • Pedro Paulo 0P
          Pedro Paulo 0 @Russ
          last edited by

          @Russ I was trying to run a .bat file to press Ctrl+Insert but when triggercmd runs it the cmd window stay opened. While when i started it manually the cmd window close automatically. What can i do to fix it?

          RussR 1 Reply Last reply Reply Quote 0
          • RussR
            Russ @Pedro Paulo 0
            last edited by

            @Pedro-Paulo-0 can you show me your .bat file?

            Russell VanderMey

            1 Reply Last reply Reply Quote 0
            • F
              fmaick93 @marcott
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • F
                fmaick93 @Russ
                last edited by

                @Russ I followed the steps shown in the video but when I run the .bat, nothing happens. my code is the following:
                nircmd sendkey press f1
                does nircmd still work?

                RussR 1 Reply Last reply Reply Quote 0
                • RussR
                  Russ @fmaick93
                  last edited by

                  @fmaick93, please try this command (no space in sendkeypress):

                  nircmd sendkeypress f1
                  

                  Russell VanderMey

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