As ALWAYS, it would be helpful if you could provide more information...

And while you're doing that, is abc.exe blocking keystrokes? If you're unsure what this means, consider if you wrote a Perl script using Term::ReadKey (read the docs), and set it to block keys. This could be a problem. What is it? What does it do? Did you or someone you know write it? (This would be some of the "more info"!)

In general, run3 should just work if you're using it correctly. Are you using it correctly? What code are have you written? (Hey! More info! Okay, enough snarking.)

You could also check out Win32::GuiTest, per Corion. OLE works well with objects that respond to OLE commands, but sometimes you just need to use the SendKeys function, which is available in GuiTest.


In reply to Re: Automating user input for a CLI-based program on windows by furry_marmot
in thread Automating user input for a CLI-based program on windows by nilesh27602816

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.