in reply to Logical Macro w/ Perl

Hi,
as has already been noted it's not possible to tell exactly what you're after however I've done stuff like this in MS Office apps before - it's not always straightforward to automate a Select-Copy-SwitchApp-Paste operation even within standard Office apps...

Assuming one of the apps is a MS Office app you should hit ALT+F11 and create a new module in the VBA IDE then figure out what you want to do with Application.SendKeys (using the Windows help to get the special characters for ALT/Ctrl etc) then, once you know what you want to do (doesn't really have to be quite working) try converting it to Perl (if that's the best solution)...

'This is VBA in Excel Dim thisBook as Workbook 'need to add ref in Tools/References Dim otherApp as Word.Application Set otherApp = GetObject("Work.Application") otherApp.Activate 'Send the keystrokes... Application.SendKeys "keystrokes"
and in Perl
use strict; use Win32::OLE; my $WordApp = Win32::OLE->GetActiveObject("Word.Application"); #blah blah

HTH - Mark

Replies are listed 'Best First'.
Re: Re: Logical Macro w/ Perl
by Grygonos (Chaplain) on Dec 24, 2003 at 23:56 UTC

    Sorry for not being more specific. It is not a Win32::OLE kind of issue. This is a Java app that my company has access to. The provider of the information and the app has things down pretty tight. you can't copy/select any data out of the application. I don't have access to the Java source either because It's accessed via the net and only after logging into their system can going through some clicks can I even open the app.


    Grygonos