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

    run a key press simulation

    Scheduled Pinned Locked Moved General Discussion
    7 Posts 4 Posters 2.0k Views
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              fmaick93 @marcott
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • F Offline
                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 Offline
                  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

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post