标签: windows windows-scripting comobject wscript.shell
是否可以使用正则表达式或包含项来选择窗口标题栏,而不仅仅是一个非常特定的窗口?
$wshell = New-Object -ComObject wscript.shell; $wshell.AppActivate('Application - Ticket: XXXXXX') Sleep 1 $wshell.SendKeys('Some stuff')