Thumbnail

Script

How to add the Script robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the Scripting category tab.
  5. Press the Script icon to add the robot skill to your project.

Don't have a robot yet?

Follow the Getting Started Guide to build a robot and use the Script robot skill.

How to use the Script robot skill

The script skill is very versatile; it can interact with most ARC skills. It is also very intuitive, as it contains multiple detailed manuals for assistance with programming in its settings menu. The Script skill currently includes the following languages to program in:


Main Window


1. Start/Stop Button
Executes the script that is written in this skill.

2. Status Display
Displays the status according to the script written in this skill.

Settings - Blockly


1. Title Field
This field contains the title of the Script skill. You can change it if you'd like. *Note: Changing the title will also change the title in the controlCommand() associated with this skill.

2. Roboscratch Module Checkbox
Check this box if you'd like to use this script as a module for Roboscratch.

3. Start/Stop Button
Executes/Stops the Blockly script that is written in the worksheet.

4. Clear Sketch Button
Clears the worksheet.

5. Create Variable Button
Press this button to create a new variable accessible under the variable block section.

6. Load Worksheet Button
Loads a previously developed Blockly worksheet.

7. Save Worksheet Button
Save the current Blockly worksheet.

8. Camera Preview
Displays the configured camera output.

9. Block selection area
Select the program blocks from this section.

10. Status Display
Displays the status according to the script written in this skill.

11. Blockly Worksheet
This is the area where you build your Blockly script.

Settings - Javascript


1. Name Field
Enter the name of the scripting skill.

2. Roboscratch Module Checkbox
Check this box if you'd like to use this script as a module for Roboscratch.

3. Font Smaller/Larger Buttons
Decreases/Increases the font in the script editor.

4. Enable Intellisense Checkbox
Check this box if you would like programming shortcuts to appear while scripting.

5. Script Editor
This is where you write your Javascript.

6. Run Button
Executes your script in the script editor before saving. This allows you to test your script before moving forward.

Settings - EZ-Script


1. Name Field
Enter the name of the scripting skill.

2. Roboscratch Module Checkbox
Check this box if you'd like to use this script as a module for Roboscratch.

3. Format Button
Press this button to format your script automatically.

4. Font Smaller/Larger Buttons
Decreases/Increases the font in the script editor.

5. Enable Intellisense Checkbox
Check this box if you would like programming shortcuts to appear while scripting.

6. Script Editor
This is where you write your script.

7. Run Button
Executes your script in the script editor before saving. This allows you to test your script before moving forward.

Settings - Python



1. Name Field
Enter the name of the scripting skill.

2. Roboscratch Module Checkbox
Check this box if you'd like to use this script as a module for Roboscratch.

3. Font Smaller/Larger Buttons
Decreases/Increases the font in the script editor.

4. Enable Intellisense Checkbox
Check this box if you would like programming shortcuts to appear while scripting.

5. Script Editor
This is where you write your Python script.

6. Run Button
Executes your script in the script editor before saving. This allows you to test your script before moving forward.

How to Use Script Skill

1) Add the Script skill to your ARC project (Project -> Add Skill -> Scripting -> Script).

2) Go into the skill settings, write a script in your chosen language, and save.

3) Press the Start button in the skill's main window to execute the script.

Related Tutorials

tutorial
Add More Voices

Add More Voices

add more voice to your projects
tutorial
Auto Backup Of EZB Project

Auto Backup Of EZB Project

Using a batch file and a script in EZ-Builder you can create a scripted method to auto backup your EZB project file.
tutorial
Command Syntax For Data Retrieval

Command Syntax For Data Retrieval

It seems a lot of people are getting a little confused over the script commands for receiving data and have noticed the...
tutorial
Control Meccano Meccanoid

Control Meccano Meccanoid

Connect a Meccanoid to your EZ-B by using an Arduino as the translator.
tutorial
Controlling A Kangaroo With The V4

Controlling A Kangaroo With The V4

For Dave and Richard and anyone else who is interested, here is fully working and tested code for using the Kangaroo...
tutorial
Create Auto Position Actions From EZ-Script

Create Auto Position Actions From EZ-Script

This tutorial uses the ControlCommand() EZ-Script command that instructs the Auto Position control to create a frame and...
tutorial
Detect Multiple Colors

Detect Multiple Colors

One of the features that makes ez-robot so special is the camera that can detect faces, objects, glyphs, qr codes and...
tutorial
Display Popup Tutorial.

Display Popup Tutorial.

This tutorial will guide you through the setup and various uses for using one of the available plugins that can be found...
tutorial
Explanation And Uses Of Arrays.

Explanation And Uses Of Arrays.

This Tutorial will explain what an "Array" is, and give you some examples of how they are, or can be used within...
tutorial
How To Make A Wide Angle Ir Non Contact Bumper

How To Make A Wide Angle Ir Non Contact Bumper

I designed a wide angle IR (non contact) bumper for robots a while back but never used it. It may be useful to the folks...
tutorial
How To: Control Windows Media Player

How To: Control Windows Media Player

How To: Control Windows Media Player The question has come up a couple of time in various forum threads about how to...
tutorial
If Elseif Else Goto & Return Commands

If Elseif Else Goto & Return Commands

Another one which was written and hidden within a different topic and should warrant it's own tutorial post, the IF...
tutorial
Lcd Display For Ezb4 - Using Arduino Mini As Controler

Lcd Display For Ezb4 - Using Arduino Mini As Controler

Hello again, I have created an LCD Display for the EZB4. This is a very cheep and easy project. You will need 1 LCD...
tutorial
Migrating From EZ-Script To Javascript

Migrating From EZ-Script To Javascript

How to move your code from EZ-Script to JavaScript. JavaScript offers faster execution and more features.
tutorial
Mobile App Developer Tutorial

Mobile App Developer Tutorial

So, you've built your ez-robot and now you would like to make your own mobile app. Did you know EZ-Robot has a robot...
tutorial
Myo Gesture Tutorial

Myo Gesture Tutorial

The MYO is a creative controller for interacting with your ez-robot. It uses gestures and an accelerometer to trigger...
tutorial
Notify My Android Integration

Notify My Android Integration

As discussed in the Twitter topic, I have successfully integrated Notify My Android's (NMA) API in to EZ-Builder through...
tutorial
Pulse Flash LED With PWM

Pulse Flash LED With PWM

Pulse Width Modulation is the method of having a digital port, which is only On or Off to have a varying output voltage....
tutorial
Randomizing Answers In Speech Recognition

Randomizing Answers In Speech Recognition

Want to make your robot respond more naturally and not the same thing every time? Here's how to make it answer...
tutorial
Reading And Writing With Files

Reading And Writing With Files

This tutorial is an introduction to working with text files in EZ-Builder. EZ-Builder gives you the ability to write...
tutorial
Rgb Array Tutorial

Rgb Array Tutorial

I've added a video to the 18 RGB LED Block, Humanoid Head with Camera & RGB Eyes and 18 RGB LED PCB to explain how to...
tutorial
Setting Servo Speeds And Initialization Script Tutorial

Setting Servo Speeds And Initialization Script Tutorial

This tutorial will explain what an initialization script is and how to use them in your EZ-Builder projects....
tutorial
Soundboard PC & Soundbard EZ-B Tutorial.

Soundboard PC & Soundbard EZ-B Tutorial.

This tutorial will guide you through how to set up and use the "Soundboard" controls to give your robot the ability to...
tutorial
Speech Recognition Say It Didn't Understand You

Speech Recognition Say It Didn't Understand You

The speech recognition uses a confidence level to determine if it understood your verbal command. This tutorial...
tutorial
Speech Synthesis Markup Language (SSML)

Speech Synthesis Markup Language (SSML)

This tutorial demonstrates how to modify speech synthesis in real-time within your text.
tutorial
The ARC Script Manual.

The ARC Script Manual.

This is an online version of the EZ-Script manual for easy reference. It is a copy of what can be found under the...
tutorial
The Robot Program Episode 022: Detect Face And Wave - EZ-Script

The Robot Program Episode 022: Detect Face And Wave -...

This lesson will demonstrate how to use EZ-Script to have the robot wave once it detects a face. At the end of this...
tutorial
Use Arduino For Wheel Encoder Counter

Use Arduino For Wheel Encoder Counter

Have your Arduino count motor encoder rotations. Connect the Arduino to your EZ-B UART #0 port to send the encoder...
tutorial
Using ADC (Analog To Digital) Ports, Commands And Controls.

Using ADC (Analog To Digital) Ports, Commands And Controls.

This tutorial will cover some basics on using the ADC (Analog to Digital Converter) ports on the EZ-B v4. Included will...
tutorial
Using Exec() Commands To Help Make A Game

Using Exec() Commands To Help Make A Game

K-9 asks "Would you like to play a game?" So from the famous(ish) line from the movie "War Games", I...

Related Hack Events

Related Questions

question

ADC Port Script Help

I'm trying to create a script with a loop for my Wall.E. to monitor two button sensors wired to the ADC0 via resistors on an ioTiny.  I want my script...
question
Blockly And Communication

Blockly And Communication

first question: when I installed the application, i put that i was comfortable with programming and that i could...
question

Blockly Paly Audio Question

I noticed in Blockly "play audio" only works with EZB sound board not PC soundboard, or am i Missing something?
question

Can Someone Spot The Error In My Code?

Can someone tell me why I am getting this error? I must be going code blind or I found a bug. ARC version 2020.05.18.00 Error on line 4: Missing ) in...
question
Code To Turn Controller Off

Code To Turn Controller Off

Has anyone written code to turn microprocessor off?
question
Equivalent Of Ezscript's  "Sleeprandom(A,B)" For Python ?

Equivalent Of Ezscript's "Sleeprandom(A,B)" For Python ?

Hi, I used to use a lot SleepRandom(a,b) in my EZ-scripts to simulate random behaviors. I don't find the equivalent for...
question

EZ Builder TTS Pitch Control

Just a quick question I can use my custom Cereproc Robot voice in Ez Builder but I don't see in the Cheat code how to lower the pitch in the TTS...
question
EZ Script Clearvariable Does Not Clear Variable

EZ Script Clearvariable Does Not Clear Variable

I have an EZ Script that changes a variable several times. That works well. Then at the end of the script want to clear...
question
Getp Command For Kangaroox2 For Use With If/Endif??

Getp Command For Kangaroox2 For Use With If/Endif??

Hello everyone, I am trying to create a simple condition using a Kangaroox2 and two motors with independent control.  I...
question
How Do I Create A Servo "Look Alive" Type Script That Runs Continuously ?

How Do I Create A Servo "Look Alive" Type Script That Runs...

I have a robot that is using the autoposition skill to move some servos to specific frames and actions when key words...
question
How To Send JSON & Set Header Request On Net.Httppost() Method?

How To Send JSON & Set Header Request On Net.Httppost()...

Hi everyone, I'm using Net.hTTPPost(url, postData) method on ARC script (JavaScript). I've just realized that this...
question
I Need Help For A Python Script (Conversion Of An Old EZ Script)

I Need Help For A Python Script (Conversion Of An Old EZ...

Hi, I try to convert an old EZ scripts into a python scripts It is a script that reads a number from a txt file, makes a...
question
Import Respeaker USB Mic Array DOA Information To Ez-B

Import Respeaker USB Mic Array DOA Information To Ez-B

I am going to buy a Seeed ReSpeaker USB Mic Array.  I would like to send ReSpeaker sound Direction Of Arrival (DOA)...
question

Is The SDK No Longer Supported?

Hi all, I've not been online since the site split. Is the SDK no longer supported? I can't find documentation for it anywhere. I'm a little sad if...
question

Reading UART Integer/Float Sent From Arduino

Hi, I've been using the following tutorial and code to get data from an Arduino for a battery of sensors...  >> Using Arduino as Encoder One of my...
question
Real-Time Module

Real-Time Module

Can someone show me how to program this DS 1302 real-time module in Ez_builder with EZ-B v4, I can't get used to it yet?...
question

Script Execution Is Not Shown By ARC

I have installed the new ARC , and  made some scripting with it. I noticed that the "console" window, where ez-b used to show each statement during...
question
Scripts, Add Java Script

Scripts, Add Java Script

Can you please advise? I went to scripts, then "add" JavaScript, clicked on the gear icon this is what happened:...
question

Strange Issue With File.Appendstring

Hi, I have a very strange issue with File.AppendString. I have a very simple python script to write a text in a file: but it returns me(trad:"Illegal...
question

UART Javascript Help

While programming a little bit of this and that over the years and understanding the concepts of programming, I'm actually not that well-practiced....
question

Using API To Access External Voice Generator (Elevenlabs)

Hi, I have been playing around with the elevenlabs voice generator.  They provide API access.  Is there a way of using APIs withing ARC scripting....
Expand (0 items)

ARC Pro

Upgrade to ARC Pro

ARC Early Access will give you immediate updates and new features needed to unleash your robot's potential!