The preferrable way of controlling another GUI application is through Win32::GuiTest, which can send mouse clicks and, more recommended, keystrokes to any application, and also read the screen content of the target application.

Personally, I would try first to synthesize AssemblyRobot programs by starting off with some simple primitives like "reset robot position", "plot straight line 1 unit in length", "plot straight line 10 units in length", "plot spline", "plot circle", and then looking at the files generated for these programs trying to concatenate these programs. But it might also be suitable to (ab)use the "IDE" to create AssemblyRobot programs.

Installing Win32::GuiTest is fairly easy. Either you use the ppm command to install it (preferred way for ActiveState Perl), or you use the cpan command to install it (preferred way for Strawberry Perl).


In reply to Re: Controlling a non-perl GUI by Corion
in thread Controlling a non-perl GUI by dbae

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.