Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | Programming MioScript SEARCH    


  TechNotes
About MioEngine
About MioScript
Adding a Login feature
Admin Panel Configuration File: Account
Admin Panel Configuration File: Alerts
Admin Panel Configuration File: Channels
Admin Panel Configuration File: Servers
Admin Panel Configuration File: Software
Admin Panel Configuration File: Tasks
Admin Panel Installation Troubleshooting
Deploying an application remotely
Get the real size of a web page
How to create a Business Card
How to create a Desktop Alert
How to create a Desktop Ticker
How to create a Scrolling Alert Software
How to create a Scrolling Ticker
How to create a simple RSS Reader
How to debug
Installing Admin Panel on a server
LCD Monitor Chart: Screen Resolution, Size, Pitch, Display Area
Managing read marks
Measuring Elements in JavaScript
Media center remote control
Mio File Format
MioScript: Conditions
MioScript: Events
MioScript: Functions
MioScript: Loops
MioScript: Variables and Data Types
Programming MioScript
Statistics: How to track users and actions
Where to host Mioplanet Admin Panel
XML Configuration File Format

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

  Products
All Products
MioDB
MioFactory
Mioplanet Admin Panel

TechNote
Programming MioScript

Language: MioScript


 MioScript is an event driven scripting language. MioScript code is executed when an event is raised.

For example, the following code is executed when the application is loaded:

event.load
    alert("Hello, World")
    app.close()
event.end


Comments can be added with // as follow:

// Code to be interpreted when the application is loaded

event.load
    alert("Hello, World")
    app.close() // Close the application
event.end


 

Variables
 
Variables stores data of various types: strings, integers, arrays or boolean values.
The content of the variable is lost when the application or widget is closed.

MioScript: Variables and Data Types

Variables can be saved on the local disk or in the registry database: disk..., reg....

 

Events and Functions
 
Events and functions are both blocks of code.
Functions can be called to be interpreted immediately and return a value.
Events can be called with an interval or can be called by MioEngine for your code to react to an event.

MioScript: Events
MioScript: Functions

 

Conditions
 
Conditions make it possible to execute a code or another depending of the result of a comparison.

MioScript: Conditions

 

Loops
 
Loops makes it possible to execute repetively a block of code.

MioScript: Loops