Мне интересно, можно ли было бы получить входные данные texbox в качестве аргумента при использовании протокола ActivationType на тосте уведомлений Windows?
Упрощенный тост:
<toast scenario="reminder" Launch="pwsh:">
<visual>
<binding template="ToastGeneric">
<text>$Title</text>
</binding>
</visual>
<actions>
<input id="userinput" type="text" placeHolderContent="Respond"/> <-- Get this as with the argument to the protocol handler below.
<action
content="Submit"
arguments="pwsh:?someArgument?canIHasUserinput" <-- Add userinput as an argument here
activationType="protocol"/>
<action activationType="system" arguments="dismiss" content=""/>
</actions>
<audio src="ms-winsoundevent:Notification.Default" />
</toast>
I 'Я делаю это с помощью Powershell, так что это сложная часть.