I am trying to use a sendkey event that holds the ALT key and then presses the TAB key. How do you perform that action, I've tried many variations but I can't seem to find the answer, thanks.
After going through the MSDN documentation page I came up with this and it seems to be working just fine for me:
SendKeys.Send("%{Tab}");
[Windows.Forms.Sendkeys]::SendWait("%{Alt Down}")
[Windows.Forms.Sendkeys]::SendWait("%{TAB}")
[Windows.Forms.Sendkeys]::SendWait("%{Alt Up}")
Works in Powershell for me! Thanks for tips ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With