Using WASP for global hotkey commands

Jul 3, 2010 at 4:27 AM
Edited Jul 3, 2010 at 6:10 PM

Hey everybody,

Not sure if this is at all helpful for anybody, but I've used WASP for executing global hotkeys on some of my systems (primary use was for a TabletPC - switching screen orientations using ATi's global hotkey manager). Here's what I did:

echo "This script is used to activate global hotkeys."

Import-Module "C:\Program Files\Wasp\WASP.dll"
Select-Window powershell | Send-Keys "^%{DOWN}"

Since the Send-Keys cmdlet requires a selected window to send these keys to, I simply selected the powershell window that comes up when the script is launched. Of course, you want to be sure that the window you're directing to won't respond to these global hotkeys, but Ctrl+Shift (as with these simple commands) has generally been a safe bet for me.

A bit of an unorthodox use of WASP, but it got what I needed to done. Thanks for the Module!