Run perl script and get output

Creating complex macros, dialogs, solving complex tasks, programming.

Run perl script and get output

Postby ameetee on Tue Feb 14, 2017 6:12 pm

I want to have QM run a perl script which prints a number, and then capture that number to use in my macro.

This is what I am trying, but it fails, with the generic error "failed".

str fs;
RunConsole("perl d:\Users\Amy\measure.pl" fs);
out fs;


Am I close? I'm not sure how to use RunConsole, and am having a hard time finding an examples. I'm not sure if that's even what I'm supposed to be using, but that's what searching here and google led me to.
ameetee
 
Posts: 1
Joined: Tue Feb 14, 2017 5:51 pm

Re: Run perl script and get output

Postby Gintaras on Tue Feb 14, 2017 6:47 pm

Try RunConsole2, it is better.
Gintaras
Site Admin
 
Posts: 10208
Joined: Thu Dec 19, 2002 7:36 pm
Location: Lithuania


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest