Scripting

From Torque Wiki
Revision as of 16:44, 18 January 2022 by Ihawkins (talk | contribs) (Note: This is in beta and will be in Torque 1.12.1 when released in Jan 2022)
⧼monobook-jumptonavigation⧽⧼monobook-jumptosearch⧽

Note: This is in beta and will be in Torque 1.12.1 when released on 24th Jan 2022

in progress build

Scripting

Torque now supports scripts using a simple java-like scripting language

There are two types of scripts in Torque Pro - Core Scripts and PushButton scripts

Core scripts are designed to run all the time within Torque - they can provide sensors, interact with the user and even talk over OBD PushButton scripts are scripts that are executed when the pushbutton in the app is pressed

An example set of scripts can be seen on the [GitHub] page (admin: not live yet - in progress)


Accessible Classes

Torque specific classes:

Sensor
Log
OBD
Time
Dialog
PushButton

Some of the standard java classes and interfaces:

Long
Int
Float
Double
Math
String
HashMap
HashSet
ArrayList
Scanner
StringTokenizer
BigInteger
BigDecimal
Arrays
Collections
LinkedList
Date
SimpleDateFormat
DecimalFormat
NumberFormat