in reply to How to show desktop thru perl

Find the right Windows API function(s) and call it/them from perl, e.g. using Win32::API. Try to find out which API function(s) are called when you press Win-M on the keyboard. Alternative way: Call the API function to enumerate all windows (FindWindow?), and send each Window a WM_MINIMIZE (?) message using SendMessage() or PostMessage().

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)