Аргумент командной строки для открытия настроек Центра поддержки

4946
Alex Spicer

Что или есть команда, чтобы открыть настройки центра действий?

Я хочу команду, которая открывает этот экран специально. Я знаю, что могу открыть общий центр действий, запустив «wscui.cpl», но это не совсем то, что я хочу сделать.

Есть идеи?

0

3 ответа на вопрос

3
hendra wicaksana

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.

Аккуратное решение;) DavidPostill 8 лет назад 0
0
Ikbel

Для этого нет прямой команды, но вы можете использовать такой скрипт, как этот.

Создайте новый текстовый файл, вставьте в него этот код:

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("+") WshShell.SendKeys("+") WshShell.SendKeys("+") WshShell.SendKeys("+") WshShell.SendKeys("+") WshShell.SendKeys("+") WshShell.SendKeys("+") WshShell.SendKeys("+") Wscript.Sleep 10 WshShell.SendKeys("") 

Сохраните его под этим именем wscuisettings.vbs. дважды щелкните по файлу.

-1
Szépe Viktor

С АХК короче

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

Прямой программный способ это:

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

но я не знаю номер команды для отправки.

о нет! Это для открытия Open Action Center, а не настроек. Szépe Viktor 6 лет назад 1