Hotkeys
About PowerShell Universal desktop hotkeys.
Last updated
About PowerShell Universal desktop hotkeys.
Last updated
Copyright 2024 Ironman Software
PowerShell Universal Desktop supports global hotkeys that can be used to invoke scripts with key chords.
To define a hotkey, you will need to edit the hotkeys.ps1
file in the .universal
folder or through the Settings \ Configurations page within the Admin Console.
Hotkeys are defined using the New-PSUHotkey
cmdlet. For example, the following will invoke MyScript.ps1
when Ctrl+I
is pressed anywhere within Windows.
You can define which environment the hotkey runs within by using the -Environment
parameter.
You can define parameters passed to the script by using the dynamic parameters provided by New-PSUHotKey
.
For example, if a script accepts a -Parameter1
parameter, you can define that on New-PSUHotKey.
Within the hotkey, just use -Parameter1
.