Run comspec silently? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
newcod3r
Posts: 505
Joined: 30 Sep 2021, 02:16

Run comspec silently?

01 Apr 2022, 01:24

Sample below:

Code: Select all

:X:;slp5::RunWait, %comspec% /k "powercfg -change -standby-timeout-ac 5"
I just want the command to run silently without cmd popping up. There's no mention of silent commands here: https://www.autohotkey.com/docs/commands/Run.htm
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Run comspec silently?  Topic is solved

01 Apr 2022, 01:42

Silent = Run's 'Hide' parameter
And you've to use the /c(lose) instead of the /k(iosk) parameter.
newcod3r
Posts: 505
Joined: 30 Sep 2021, 02:16

Re: Run comspec silently?

01 Apr 2022, 03:27

changing to /c seems to be sufficient. thanks!
SOTE
Posts: 1426
Joined: 15 Jun 2015, 06:21

Re: Run comspec silently?

01 Apr 2022, 10:41

@newcod3r
You might also want to look at RunCMD()
viewtopic.php?f=6&t=74647
newcod3r
Posts: 505
Joined: 30 Sep 2021, 02:16

Re: Run comspec silently?

01 Apr 2022, 19:28

SOTE wrote:
01 Apr 2022, 10:41
@newcod3r
You might also want to look at RunCMD()
viewtopic.php?f=6&t=74647
thanks for the recommendation! I read the description but don't understand its benefits over the native commands like I did earlier? 🤔

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], MrDoge, peter_ahk and 369 guests