LOGIN  |  REGISTER
Smart Living Made Brilliant!
CASTLEOS FORUM

HomeScripting

A forum for information about scripting with CastleOS. Get samples, suggestions, and other help here

NPR News script Messages in this topic - RSS

Michael Wallace
Michael Wallace
Posts: 52


1/30/2016
Michael Wallace
Michael Wallace
Posts: 52
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?


Attachments:
NPR.cs
0 link
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3366


1/30/2016
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3366
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
Michael Wallace
Posts: 52


1/30/2016
Michael Wallace
Michael Wallace
Posts: 52
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