Command line argument to open Action Center Settings

1

2

What or is there a command to open the action center settings?

I want a command that opens this screen specifically. I know that I can open the generic action center by running "wscui.cpl", but that is not specifically what I want to do.

Any ideas?

Alex Spicer

Posted 2015-11-16T00:14:10.737

Reputation: 25

Answers

1

There is no direct command to do that but you can use a script like this one.

Create a new text file, paste this code in it:

Option Explicit
Dim WshShell:Set WshShell=CreateObject("Wscript.Shell")
WshShell.run "rundll32.exe shell32.dll,Control_RunDLL wscui.cpl", 1
Wscript.Sleep 1000
WshShell.SendKeys("+{TAB}")
WshShell.SendKeys("+{TAB}")
WshShell.SendKeys("+{TAB}")
WshShell.SendKeys("+{TAB}")
WshShell.SendKeys("+{TAB}")
WshShell.SendKeys("+{TAB}")
WshShell.SendKeys("+{TAB}")
WshShell.SendKeys("+{TAB}")
Wscript.Sleep 10
WshShell.SendKeys("{ENTER}")

Save it under this name wscuisettings.vbs. double click on the file.

Ikbel

Posted 2015-11-16T00:14:10.737

Reputation: 286

3

just make the shortcut of the adress and execute the shortcut via command line.

open it first using the wscui.cpl, then click the button you want to display the window. in the adress bar right-click on the text "change action center settings" then click "copy address". then paste shortcut in desktop.

once you make the shortcut you can use it using cmd line.

hendra wicaksana

Posted 2015-11-16T00:14:10.737

Reputation: 31

Neat solution ;) – DavidPostill – 2016-03-06T10:18:12.503

-1

With AHK it is shorter

; Open Action Center
ControlGet, ShellTray, Hwnd,, TrayButton1, ahk_class Shell_TrayWnd
ControlClick,, ahk_id %ShellTray%

The direct programmatic way is:

SendMessage, 0x111, ???,,, ahk_class Shell_TrayWnd

but I do not know the command number to send.

Szépe Viktor

Posted 2015-11-16T00:14:10.737

Reputation: 101

1Oh no! This is for opening the Open Action Center, not the settings. – Szépe Viktor – 2017-12-27T10:05:33.253