in reply to Logical Macro w/ Perl
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)...
and in Perl'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"
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 |