in reply to Controlling a non-perl GUI

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).

Replies are listed 'Best First'.
Re^2: Controlling a non-perl GUI
by dbae (Beadle) on Mar 28, 2010 at 21:58 UTC
    Can I do this: Make a short AssemblyRobot program by using clicks and keystrokes etc, while some perl module is recording my actions in Win32:GuiTest format? That would seem like an easy, lazy way to do the programming. Then I could see where the parameters occur, and easily edit the record to make a perl subroutine with variables. If not with Win32:GuiTest, could I work with some other perl module?
      Win32::GuiTest includes a recorder program, Recorder/Win32GuiTest.exe for that purpose