Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

voxscript - running parameters in external program

Featured Replies

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
  • Commercial Member

 

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.

  • Author

Thank you  :smile:

 

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

 

Antonio

  • Author

hmm...

 

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

 

Antonio

  • Commercial Member

 

 


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.

  • Author

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

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.