Selvakumar has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,
I want to minimize all screen and show my desktop Windows OS thru perl. how can i do that? Also if i need to show my current EXE Screen only what i need to do?

Replies are listed 'Best First'.
Re: How to show desktop thru perl
by ikegami (Patriarch) on May 11, 2010 at 05:29 UTC
    Minimizing everything can be done simply enough using
    use Win32::OLE; Win32::OLE->new('Shell.Application')->MinimizeAll();
Re: How to show desktop thru perl
by afoken (Chancellor) on May 11, 2010 at 05:04 UTC

    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". ;-)
Re: How to show desktop thru perl
by Khen1950fx (Canon) on May 11, 2010 at 05:12 UTC