Sign in to follow this  
farpha

voxscript - running parameters in external program

Recommended Posts

Hi

 

I'm trying to increase the automation in the feelthere ERJ135.

One of the flows I'm thinking is the fuel and weight planning. For that I would create google spreadsheet, and call it inside the flow.

The run prog function can easily call a new chrome window, like:

 

c:\program  .....\chrome.exe

 

But, I can't seem to manage to pass parameters like:

 

c:\program  .....\chrome.exe https://docs.google.com/spreadsheets/....

 
The use of parameters is supported ?
 
Thank you.
 
Antonio

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

 

Hi

 

I'm trying to increase the automation in the feelthere ERJ135.

One of the flows I'm thinking is the fuel and weight planning. For that I would create google spreadsheet, and call it inside the flow.

The run prog function can easily call a new chrome window, like:

 

c:\program  .....\chrome.exe

 

But, I can't seem to manage to pass parameters like:

 

c:\program  .....\chrome.exe https://docs.google.com/spreadsheets/....

 
The use of parameters is supported ?
 
Thank you.
 
Antonio

 

 

Should be doable.

 

We'll try something out in next update.

Share this post


Link to post
Share on other sites

Thank you  :smile:

 

Also, the possibility of running batch files (*.bat) would be even more interesting and flexible.

 

Antonio

Share this post


Link to post
Share on other sites

Let me guess....

 

You're trying to get some boring repetitive daily work done via Voxscript, all while having fun in the simulator.

 

And the boss wouldn't even notice :lol::lol::lol:

Share this post


Link to post
Share on other sites

hmm...

 

I wonder if I could convince him to buy a new license for MCE ...

 

Antonio

Share this post


Link to post
Share on other sites

 

 


The run prog function can easily call a new chrome window, like:
 
c:\program  .....\chrome.exe
 
But, I can't seem to manage to pass parameters like:
 
c:\program  .....\chrome.exe https://docs.google....readsheets/....
 
The use of parameters is supported ?

 

Now implemented in latest MCE V2.6.8

 

http://www.multicrewxp.com/Downloads.html

 

Because we don't want users to perceive MCE as a tool for programmers, and Voxscript should remain about giving co-pilot instructions in plain English (or other languages to some extent), you will have to add the parameter manually.

 

Once you have created a flow, open it in Notepad.

 

In the line that starts with run=whatever_program.exe, add a blank space and a forward slash followed by the parameter.

 

Example run=C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe /whatever_parameter

 

Should work as expected when you run the flow.

 

MCE will allow multiple instances of Chrome.exe or iexplore.exe, but for other programs it will first check whether it's already running before firing the exe.

 

Should also be able to trigger batch files.

Share this post


Link to post
Share on other sites

Thank you Gerald.

 

This will help opening external files like spreadsheets, pdf files (terminal charts), etc .

 

Strangely I can't make it to run chrome anymore (even without parameter). But, since batch files are working and as a workaround I'll be using them to call chrome.

 

Best regards.

 

António

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this