User Tools

Site Tools


doc:tools_quickscript

This is an old revision of the document!


OOBD Quick Script

When going through Make your own OOBD Scripts you might find that writing Lua Scripts for OOBD is not so easy. You need to install the build environment, understand how its all works, understand Lua as such, write you first scripts, compile it and debug it to finally have your first script in hands.

To make this easier, OOBD QuickScript was invented.

With the mouse you select the elements you want to have, drag and drop your program flow, fill in the parameters and finally download the compiled script ready to run.

All this runs in all modern browsers (except the Internet Explorer, as it seems :-( ), so you only need to go to OOBD QuickScript to have your first script ready in about five minutes.

Here is

How it Works

When opening the page, you'll find a first template and menu bar in the middle of the screen. When clicking onto the items in the menu bar, another menu opens where you can select the functionality you need. While all the other menu items only contain standard lua function, we'll concentrate on the OOBD menu with its related functions here.

The Main Menu

This is the starting point for your program. The program execution starts here, so here you can put the initialisation stuff (like setting the bus- and module parameters). Here you also need to place your main menu (in case you want to have one) with its menu items.

The Menu

Whenever you want to have a visible menu where the user can select some item from, you'll put these items into this menu structure. The menu title is that what is placed as header into the OOBD UI and helps the user to identify where he just is.

The Menu Item

Inside the above mentioned menu you can have as many menu items as you like. Its parameters are

  • Content: That is what appears as item description
  • Icons: Here you can select which action flags (Update and Timer) this item should have
  • ID: This parameter is handed over to the related function call, where it can be used to control that behavior, e.g. using the same function,but with different parameters

The Item Procedure

As said above, when a user selects a menu item, its related function is called. Such functions are defined here as an item procedure. When called, the variable id contains the ID parameter which is given in the menu item.

The return value of this function is shown as the result of the menu item call. So whatever you want to show as result, assign that value inside your program flow to the variable result as its content will be returned and shown as result.

Set the Dongle

Define the Module

Request a Service

Evaluate a Result

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
doc/tools_quickscript.1423924432.txt.gz · Last modified: 2015/02/14 15:33 by admin