Hi, I'm a new Fastkeys user and I'm trying to set up my start menu. I've created a number of menu items to start my favorite programs (using the run command) but some of these require an argument to do what I want. Normally I could type
"program.exe /argument1" but I cannot figure out how to do this in the start menu. Any help would be appreciated! Thanks.
Passing an argument to a program
It should work the same as usual. In some specific cases you may try to enclose string is quotes:
Type: Run
or Type: Command
Type: Run
Code: Select all
"program.exe /argument"
program.exe "/argument"
Code: Select all
run, "program.exe /argument"
run, program.exe "/argument"
Thanks Marko! One of your options works for me. Much appreciated. Another question if you don't mind - can I run a command with admin privileges? And if so, how do I do this? Thanks again, Andrew
Try (Type: Command)
More information:
https://autohotkey.com/docs/commands/Run.htm
Code: Select all
Run *RunAs program.exe
https://autohotkey.com/docs/commands/Run.htm