A forum for information about scripting with CastleOS. Get samples, suggestions, and other help here
NPR News script
Michael Wallace Posts: 52
1/30/2016
|
For some reason, CastleOS does not read the following script. Commenting out the using CastleOSKinectService line, changing ScriptingAPI.Speak to MessageBox.Show and compiling with the Developer command prompt seems to work perfectly. Any ideas?
|
|
0
link
|
Chris Cicchitelli Administrator Posts: 3390
1/30/2016
|
You have using Windows Form in there...you can't access the GUI from a service (but I also don't think it's needed for your script).
|
|
0
link
|
Michael Wallace Posts: 52
1/30/2016
|
Removed it, no dice. I just compiled it into a Console app and used System.Speech for TTS. Called it using Process.Start. It works perfectly. Console window doesn't even show up, which is even better.
|
|
0
link
|