April 24, 20251 yr 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
April 24, 20251 yr 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
April 24, 20251 yr Commercial Member or (WSH:jscript|AaoEntry) function AaoEntry(){ var somerpn = '(SPEAK:hello)'; AaoCmd.Exec(somerpn); } LORBY-SI
Create an account or sign in to comment