#windows #powershell
#Windows #powershell
Вопрос:
Я создаю такое уведомление с полем ввода
[xml]$ToastTemplate = @" lt;toast launch="chatLaunchArg"gt; lt;visualgt; lt;binding template="ToastGeneric"gt; lt;textgt;Emilylt;/textgt; lt;textgt;Coming tonight for the tea party?lt;/textgt; lt;/bindinggt; lt;/visualgt; lt;actionsgt; lt;input id="idTextBox1" type="text" placeHolderContent="reply" /gt; lt;action content="Send" hint-inputId="idTextBox1" activationType="background" arguments="argSendPress" /gt; lt;/actionsgt; lt;/toastgt; "@ #Load the ToastTemplate into the required format $ToastXml = New-Object Windows.Data.Xml.Dom.XmlDocument $ToastXml.LoadXml($ToastTemplate.OuterXml) #Display the toast notification $AppID = '{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}WindowsPowerShellv1.0powershell.exe' $Notification = [Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($AppID) $Notification.Show($ToastXml)
Как я могу перехватить ввод данных пользователем в окне уведомлений?