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
run WebRecorder macro from Perl
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
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.
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?