What I want to happen:
If I launch the script using ISE, it detects the Key down states and adds the menu. Launching from Console it does not.
I have tried $Host.UI.RawUI option but I am unable to get it working properly. What am I missing.
How the script is being launched:
I got it working. Added the Test-KeyPress.ps1 function. Within Refresh I added $script:keypress = Test-KeyPress -Keys LShift,LCtrl
In createicon I just checked if $script:keypress was true. And added the menu items
You must be logged in to reply to this topic.