
MovieMaker
USA
Asked
— Edited
I have 25 windows open up. The scripts all run individually. Now, How do I tie them all together and make them all run at once?
For instance, I want marty to be voice controlled so that she is listening all the time.
so , I can jump through voice to color motion, news, weather, sports,jokes, etc.
I have included my file for you to look at.
I could not save it to cloud, it was too big.
MainBK.EZB
You need to create another script.
I call mine "Startup"
Within that script you need to tell it to start all your scripts.
ControlCommand("Insert Script Name Here", ScriptStart)
It's the first script I run once I've connected my EZ-B. I start all
scripts and set any other variables (Eg. MP3 Trigger Volume, servo Positions)
Look at the sample scripts that DJ has provided, you can learn lots from copying others.
Cheer's
Kris
P.S. You already have an INIT script in your file, use the command I mentioned to start your other 3 scripts.
When I load up , it puts all 25 windows on the screen. Is it required that I run ALL those windows, or ONLY the ones that have scripts in them. For instance, the init file turns on the eyes. don't really need to worry about them until the machine is turned off. Things like that. I am confused.
When I insert the commands: ControlCommand("Insert Script Name Here", ScriptStart)
it tells me that it cannot turn on the speech recognition because there is no script for speech recognition. That is where all of my chatbot programs are.
????
- Compass
- Soundboard
- Camera
- Ping
-Speech Recog
- Roomba Movement
etc...
Speech recognition is not a script.
Your init file should look like this:
#Init set servos to home
Servo(D1,43)
Servo(D2,34)
#Start the following Scripts
ControlCommand("TimeDate", ScriptStart)
The Lost Ball and Found Ball scripts are called from the camera config settings.
You could minimize your panels by getting rid of items like the RightEye/LeftEye. You
can turn those on via the init script with a command line if you like.
Thanks Again! I appreciate your help.
No Script:
- Compass
- Soundboard
- Camera
- Ping Radar HZ
- Ping Collision HZ
- Ping Radar Vert
- Ping Radar Collision
- Sharp Radar Vert
- Sharp Radar Hz
- Speech settings
- Speech Synthesis
- Speech Recog
- Roomba Movement
- Temperature (do Script Later)
Scripts:
- LeftEYE Do in Init
- RightEYE Do In Init
- SayDay
- Init
- Personality Generator
- TimeDay
- Found Ball
- Lost Ball
- Wrist
- Arm
- Gripper
Mel