Hello, I've got one question. I'm tring to make my life easy and try to made some script for loading multiple windows and logging by sending keystrokes. The target application is putty. So what is done till now. I'm using in main cases windows API. So i start the putty, find the handle and because there is protection against typing passwords need to type it with windows api functions. Everything is ok and works fine. I'm very, very glad, that i can use scripts to operate with Windows API. So powerfull. But where is the problem. As i mention in the begining i need to start multiple putty-s, but also i need to order them on the screen and to resize them. Well... i think i can realize the order with MoveWindow API. In the parameters of that function there is also "width" and "height". But this isn't work. The window can be only in its standart mode or on its minimum size. So it can't be resized. I also saw, that there is module Win32::Console and there is many ways to manipulate the console. Enough talk..to the question. I've got the handle of the putty window allready. Is there a way to manipulate its size with Win32::Console. How can i resize allready started console application. I want to tell you, that MoveWindow API works with cmd.exe, but not with putty. How can i use Win32::Console to manipulate the putty. Is there a way? Or it can't be done. Is there another way. Any suggestions will be most appreciated ! Thanks in advance... Best regards

In reply to ActivePerl - Console manipulation - Win32 by Zarkon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.