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.

SPEAK a variable in a script

Featured Replies

Trying to get this to work but the FO says "Cabin altitude percent 1 feet" instead of the value of variable (A:pressurization cabin altitude). What am I doing wrong?

<Macro Name="FOSPEAK">VOICE:Microsoft Catherine) (VOICERATE:1) (VOICEVOLUME:75) (SPEAKBLK</Macro>

[](@CPTSPEAK:Ten thousand foot checks) (WAIT:2000)
[] 11302 (>K:ROTOR_BRAKE) 
(WAIT:500)
[] 11402 (>K:ROTOR_BRAKE) 
(WAIT:500)
[] 11502 (>K:ROTOR_BRAKE)
(WAIT:500) 
[] 11602 (>K:ROTOR_BRAKE) 
(WAIT:500)
(A:PRESSURIZATION CABIN ALTITUDE,·Feet)·flr·
[](@FOSPEAK:Cabin Altitude·%1·feet)

 

Edited by mrm0508
Tags

WW5130.png

| i7-14700KF - 4080 SUPER | 32 GB RAM | Win 11 Pro | HC Bravo | AAO | StreamDeck | 

  • Commercial Member
9 hours ago, mrm0508 said:

What am I doing wrong?

Each line in a scriptfile is an entire script in its own right. They don't know of each other and they don't care what happened before they are called 

To be able to use the % parameters, the variable must be placed in the same line, directly in front of the SPEAK

[](A:PRESSURIZATION CABIN ALTITUDE,·Feet)·flr·(@FOSPEAK:Cabin Altitude·%1·feet)

Edited by Lorby_SI

LORBY-SI

  • Author

Still having issues with this. Here is the complete scriptfile code:


 

<Macro Name="CPTSPEAK">VOICE:Microsoft Richard) (VOICERATE:1) (VOICEVOLUME:95) (SPEAKBLK</Macro>
<Macro Name="FOSPEAK">VOICE:Microsoft Catherine) (VOICERATE:1) (VOICEVOLUME:75) (SPEAKBLK</Macro>

[](@CPTSPEAK:Ten thousand foot checks) (WAIT:2000)
[] 11302 (>K:ROTOR_BRAKE) 
(WAIT:500)
[] 11402 (>K:ROTOR_BRAKE) 
(WAIT:500)
[] 11502 (>K:ROTOR_BRAKE)
(WAIT:500) 
[] 11602 (>K:ROTOR_BRAKE) 
(WAIT:500)
[](L:MyCabAlt)·(@FOSPEAK:Cabin Altitude·%1·feet)
(WAIT:500) 
[](@FOSPEAK:Landing and turn off lights off, ten thousand foot checklist complete)
(AAO_CL_STOP:p737_after_takeoff.txt)

The bold portion is reading "percent one" instead of the variable value. The local variable is populated outside of this script and I have confirmed it has an integer value. Also, it is being read by CPTSPEAK instead of FOSPEAK.

Edited by mrm0508

WW5130.png

| i7-14700KF - 4080 SUPER | 32 GB RAM | Win 11 Pro | HC Bravo | AAO | StreamDeck | 

  • Commercial Member

I've tried several different variants now, it is working for me every single time without fail

As a checklist, which is waiting for confirmation after FO says "Alt check":

<Macro Name="CPTSPEAK">VOICE:Microsoft David Desktop) (VOICERATE:1) (VOICEVOLUME:95) (SPEAKBLK</Macro>
<Macro Name="FOSPEAK">VOICE:Microsoft Hazel Desktop) (VOICERATE:1) (VOICEVOLUME:75) (SPEAKBLK</Macro>
(@CPTSPEAK:start)
12500 (>L:MyCabAlt)
[](@FOSPEAK:Alt check)
(L:MyCabAlt) (@FOSPEAK:Cabin Altitude %1 feet)

And the way you did it:

<Macro Name="CPTSPEAK">VOICE:Microsoft David Desktop) (VOICERATE:1) (VOICEVOLUME:95) (SPEAKBLK</Macro>
<Macro Name="FOSPEAK">VOICE:Microsoft Hazel Desktop) (VOICERATE:1) (VOICEVOLUME:75) (SPEAKBLK</Macro>
(@CPTSPEAK:start)
12500 (>L:MyCabAlt)
[](L:MyCabAlt) (@FOSPEAK:Cabin Altitude %1 feet)

As a simple Scriptfile

<Macro Name="CPTSPEAK">VOICE:Microsoft David Desktop) (VOICERATE:1) (VOICEVOLUME:95) (SPEAKBLK</Macro>
<Macro Name="FOSPEAK">VOICE:Microsoft Hazel Desktop) (VOICERATE:1) (VOICEVOLUME:75) (SPEAKBLK</Macro>
(@CPTSPEAK:start)
12500 (>L:MyCabAlt)
(L:MyCabAlt) (@FOSPEAK:Cabin Altitude %1 feet)

 

Edited by Lorby_SI

LORBY-SI

  • Commercial Member
1 hour ago, mrm0508 said:

[](L:MyCabAlt)·(@FOSPEAK:Cabin Altitude·%1·feet)

One small detail: you've copied and pasted the "middle dots" around the %1 from the script editor. They are compromising your script and have to be replaced with spaces (check my examples above).

When you want to copy/paste code from the RPN editor, use the text in the grey box at the bottom, that contains the compiled code. This will remove all artifacts.

Edited by Lorby_SI

LORBY-SI

  • Author

Good catch, it's always the little things!

 

Thank you, love this program

WW5130.png

| i7-14700KF - 4080 SUPER | 32 GB RAM | Win 11 Pro | HC Bravo | AAO | StreamDeck | 

Create an account or sign in to comment

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.