run WebRecorder macro from Perl

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
ddeham
Newbie
Posts: 1
Joined: Wed Mar 29, 2006 11:40 pm

run WebRecorder macro from Perl

Post by ddeham » Wed Mar 29, 2006 11:44 pm

Hi,

I need to run a WebRecorder macro from a Perl script. What is the best way to do this? I also need to pass in several text variables, enter the text into a webform, and extract text on the next page. I need to use that extracted text in my perl script. How would I go about doing that? Does anyone have an example of this? Please help!

Thanks,

Dan

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Mar 30, 2006 6:15 am

WebRecorder macros are Macro Scheduler files. WebRecorder generates the code and the script files are played back in Macro Scheduler.

Macros can be run from the command line using:

msched.exe macro_name/script_file

And you can pass parameters on the command line:

msched.exe script_file /parm1=value1 /parm2=value2 /etc=...

Even easier would be if you compile the script to an executable. Then you just need to run the exe:

macroexe.exe /parm1=value1 /parm2=value2

So you can simply run this in Perl with the system command:

system('macro.exe /parm1=value1 /parm2=value2');

See Command Line Options in the Macro Scheduler help file.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts