如何启动 WindowsInternal.ComposableShell.Experiences.TextInput.InputApp
How to launch WindowsInternal.ComposableShell.Experiences.TextInput.InputApp
我想在 C:\Windows\SystemApps\InputApp_cw5n1h2txyewy
启动 WindowsInternal.ComposableShell.Experiences.TextInput.InputApp
。明确地说,我不想显示触摸键盘,我只需要这个特定的过程是 运行。有没有办法做到这一点?使用 .NET 扩展是可以接受的,但不是首选。
我想执行此操作以在启动时添加一个 StateChangedWatcher,但该进程在启动时尚不存在,需要手动启动才能立即运行。
此外,手动将其添加到启动不会启动它,也不会简单地尝试执行它。是否需要启动任何参数?
To be clear, I don't want to display the touch-keyboard, I just need this particular process to be running. Is there a way to achieve that?
您会在 C:\Windows\SystemApps\InputApp_cw5n1h2txyewy
文件夹中找到 AppxManifest.xml
。里面有 windows.protocol
个名字。换句话说,您可以使用 Windows.System.Launcher
启动它
<uap:Extension Category="windows.protocol">
<uap:Protocol Name="ms-inputapp" DesiredView="useMinimum">
<uap:DisplayName>Input App</uap:DisplayName>
</uap:Protocol>
</uap:Extension>
用法
private async void Button_Click(object sender, RoutedEventArgs e)
{
var options = new Windows.System.LauncherOptions();
options.DesiredRemainingView = Windows.UI.ViewManagement.ViewSizePreference.UseMinimum;
var success = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-inputapp:"), options);
}
我想在 C:\Windows\SystemApps\InputApp_cw5n1h2txyewy
启动 WindowsInternal.ComposableShell.Experiences.TextInput.InputApp
。明确地说,我不想显示触摸键盘,我只需要这个特定的过程是 运行。有没有办法做到这一点?使用 .NET 扩展是可以接受的,但不是首选。
我想执行此操作以在启动时添加一个 StateChangedWatcher,但该进程在启动时尚不存在,需要手动启动才能立即运行。 此外,手动将其添加到启动不会启动它,也不会简单地尝试执行它。是否需要启动任何参数?
To be clear, I don't want to display the touch-keyboard, I just need this particular process to be running. Is there a way to achieve that?
您会在 C:\Windows\SystemApps\InputApp_cw5n1h2txyewy
文件夹中找到 AppxManifest.xml
。里面有 windows.protocol
个名字。换句话说,您可以使用 Windows.System.Launcher
<uap:Extension Category="windows.protocol">
<uap:Protocol Name="ms-inputapp" DesiredView="useMinimum">
<uap:DisplayName>Input App</uap:DisplayName>
</uap:Protocol>
</uap:Extension>
用法
private async void Button_Click(object sender, RoutedEventArgs e)
{
var options = new Windows.System.LauncherOptions();
options.DesiredRemainingView = Windows.UI.ViewManagement.ViewSizePreference.UseMinimum;
var success = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-inputapp:"), options);
}