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 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
-
-
@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