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

Hi all,
i use Windows-XP and since a while i try to find commands or modules where i can manipulate every window on the desktop. I know how i can manipulate (move, bring to top, change size and so on) windwos that i have create with Tk or Win32-Modules but i want to manipulate also all other windows from other applications on my desktop. It would be very great if anybody has an idea or can post an helpfull part of a code. With manipulate i mean the following important items:

1) Find out which windows (name or window-id) are at the moment opend. That means all windows which are visible on the desktop, or minimize in the taskbar.
2) Bring a certain window to the top (in fron of all other opend windows).
3) Change the window from minimize to maximize
4) Change the size of a certain window
5) Change the position on the desktop of a certain window
6) Close a certain window
7) Give the focus on a certain Window
I hope i could passably declare what i mean and i try to find a solution under perl.

Best regards to all, michbach

Replies are listed 'Best First'.
Re: Manipulate Desktop-Windows with Perl
by Corion (Patriarch) on Dec 22, 2008 at 15:47 UTC
Re: Manipulate Desktop-Windows with Perl
by imrags (Monk) on Dec 23, 2008 at 07:06 UTC
    Try installing WinSPY++.
    It's really useful for windows and along with Win32::GuiTest will be helpful to you.
    Raghu
      Hi all responded peoples,
      after a quick view i guess that these modules are exactly that what im looking for.
      Now im try out the specific functions. Thanks a lot! regards,michbach
        Hi again,
        the GUI-Test module works in my script very fine! Now i have a further question. The only function that i miss is to resize a Window on a Desktop. Does anybody know how i can resize Windows (e.g. a Winword-Window or an Excel-Window) that appears on the desktop? I didnt found any function in Gui-Test module. I guess i need another module?!
        Thank you for any reaction, and i wish you all the best for the new year!!
        regards, michbach