| || |
Minimize all windows / Switch to desktop
I'm looking for a vba code that minimizes all open windows, something similar to the hotkey win+m (unfortunetaly the hotkey is not recognized on remote clients, that is my real problem), to switch to the desktop.
Anybody got an idea?
Thanks for your input.
Re: Minimize all windows / Switch to desktop
I found a solution. You can do it like this:
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _
ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Private Sub Main()
Call keybd_event(&H5B, 0, 0, 0)
Call keybd_event(&H4D, 0, 0, 0)
Call keybd_event(&H5B, 0, &H2, 0)