run a key press simulation
-
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 10thank you
-
@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 upIf 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
-
T tuicemen referenced this topic on
-
@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?
-
@Pedro-Paulo-0 can you show me your .bat file?
-
This post is deleted! -
@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? -
@fmaick93, please try this command (no space in sendkeypress):
nircmd sendkeypress f1
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