Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # https://pastebin.com/FdSGYC97
- # Returns Key and KeyChar for the pressed key
- $Host.UI.RawUI.WindowTitle = 'Key Values'
- while ($true) {
- "Key: {0}" -f ($Key = ([System.Console]::ReadKey('NoEcho'))).Key
- "KeyChar: {0}" -f $Key.KeyChar
- }
Add Comment
Please, Sign In to add comment