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.

jscript: using SPEAK

Featured Replies

I would like to use the SPEAK command within a jscript script. To goal is to speak a generated string. Any ideas how this could be accomplished?

My try that does not work:

(WSH:jscript|AaoEntry|ASYNC)
function AaoEntry(){
	text = 'Hello'
	SPEAK(text)
}

 

Holger Schmid

  • Commercial Member
4 minutes ago, geholger said:

My try

Jscript has the same syntax as Javascript (which you can also use). You will have to adhere to that, otherwise scripts won't work at all. Make sure to read the chapter about how to use other languages than RPN in the AAO manual.

"SPEAK" is not at JS command, so it cannot work in JS code. It is an AAO command and must be wrapped and executed as an AAO asset:

(WSH:jscript|AaoEntry)

function AaoEntry(){
var txt = 'hello';
   AaoCmd.Exec('(SPEAK:' + txt + ')'); 
}

 

LORBY-SI

  • Author

Great - thanks!

Holger Schmid

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.