You'll have to use the script version, and the best approach depends on your version of Windows
It's on chocolatey so if you haven't got it, you can install it with PoshCode's
you should be able to bring any task to to "Normal" and then set focus with:
For instance, you can send WIN+T to basically tab through the buttons on the taskbar, or, if you have pinned the apps and can be sure of their order on the taskbar, you can use WIN and a number key to invoke them:
It's on chocolatey so if you haven't got it, you can install it with PoshCode's
Install-Module WASP
or if you don't have PoshCode installed yet, you can install that and WASP at the same time using:Start-Service WebClient # to start the webDAV client
\\PoshCode.org\Modules\Install WASP
I think what you need is just Invoke-Window.SetWindowVisualState
you should be able to bring any task to to "Normal" and then set focus with:
Select-UIElement -class icoGoogle | Invoke-Window.SetWindowVisualState -state Normal -Passthru | Set-UIFocus
Having said that, with the latest versions of WASP I added the Add-Input and Send-Input commands which are ... well ... awesome ;)For instance, you can send WIN+T to basically tab through the buttons on the taskbar, or, if you have pinned the apps and can be sure of their order on the taskbar, you can use WIN and a number key to invoke them:
add-input -keypress VK_T -Modifiers LWIN |
add-input -keypress VK_T -Modifiers LWIN |
add-input -keypress VK_T -Modifiers LWIN | Send-Input
Oradd-input -keypress VK_4 -Modifiers LWIN | Send-Input