我知道如何用什麼來改變主ISE窗口的標題像如何在PowerShell ISE中更改Read-Host提示的WindowTitle?
$Host.UI.RawUI.WindowTitle = "My Awesome New Window Title"
,但我不知道怎麼去的,好像讀主機請求彈出窗口的標題訪問:
$strP4Pass = Read-Host "Please enter Perforce Password" -assecurestring
它彈出與Windows PowerShell ISE - Input
作爲標題 - 是的,我知道我有我的Please enter Perforce Password
提示內窗口 - 但我真的希望能夠自定義標題 - 任何想法?
謝謝!正是我在找什麼! – rand0m1 2011-05-07 00:02:06
爲了使這更容易,我創建了一個PowerShell模塊[get-MultipleChoiceQuestionAnswered](https://github.com/ChrisMagnuson/get-MultipleChoiceQuestionAnswered),以便我可以編寫諸如'$ Priority = get-MultipleChoiceQuestionAnswered -Question'什麼優先級這個請求應該有這個級別嗎?「 - 選擇1,2,3,4' – 2015-05-18 13:58:06