Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加对 windows 设置项的搜索 #341

Open
yllhwa opened this issue Jan 17, 2024 · 2 comments
Open

添加对 windows 设置项的搜索 #341

yllhwa opened this issue Jan 17, 2024 · 2 comments
Labels

Comments

@yllhwa
Copy link

yllhwa commented Jan 17, 2024

您的功能请求是否与问题相关? 请简单描述.
实现如图所示的设置项索引。

image

请描述一下您想要的解决方案
首先在C:\Windows\ImmersiveControlPanel\Settings路径下存在两个xml文件,AllSystemSettings_{253E530E-387D-4BC2-959D-E6F86122E5F2}.xml(可能存在相同的入口,如SettingsPageNetworkProxySettingsPageNetworkProxy2)和AllSystemSettings_{FDB289F3-FCFC-4702-8015-18926E996EC1}.xml(相同的入口在同一个SearchableContent下,故使用这个更好)。

然后在C:\Windows\SystemResources\Windows.UI.SettingsHandlers-nt\pris找到对应语言的pri文件,使用命令

MakePri.exe dump /if Windows.UI.SettingsAppThreshold.zh-CN.pri /of Windows.UI.SettingsAppThreshold.zh-CN.xml

将其转换为xml文件,可以获取到描述和搜索关键词。

dump出来的示例json如下
https://gist.github.com/yllhwa/74c021934e98e2affc14d27d9caf6097

启动时使用

start-process -FilePath "shell:appsFolder\windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" -ArgumentList "page=SettingsPageBatterySaver&group=BatterySaver_LandingPage_SettingsOverview"
@yllhwa yllhwa added the feature label Jan 17, 2024
@Ding-yixia
Copy link

添加对windows设置项的搜索,就像utools 的windows设置搜索。

@1129921824
Copy link
Contributor

feature mark

@muwoo muwoo closed this as completed Feb 21, 2024
@muwoo muwoo reopened this Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants