Floorplan Script Functions

From XAP Automation
Revision as of 23:42, 27 February 2007 by Jamest (Talk | contribs)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents

Globals

GetGlobal(Globalname)

SetGlobal(Globalname, NewData) As Boolean

GetDBGlobal(Globalname) As Variant

SetDBGlobal(Globalname, NewData, Overwrite As Boolean) As Boolean

Devices

GetState(xAPName) As String

GetLevel(xAPName) As String

GetLevelMax(xAPName) As String

GetDisplayText(xAPName) As String

GetText(xAPName) As String

GetLastUpdate(xAPName) As Date

GetLastChange(xAPName) As Date

GetValue(xAPName) As String

GetDisplayValue(xAPName) As String

SetDisplayValue(xAPName, NewValue) As Boolean

SetDisplayText(xAPName, NewValue) As Boolean

SetDisplayTooltip(xAPName, NewValue) As Boolean

Sending

SendxAP(xBody, xClass, Optional xTarget)

SendxPL(xBody, xClass, Optional xTarget)

SendBSCState(xTarget, NewState)

SendBSCLevel(xTarget, NewLevel)

SendBSCText(xTarget, NewText)

SendBSC(xTarget, NewState, NewLevel, NewText)

Timers

AddTimer(TimerName As String, TimerTime As Date, Script As String, Optional RawCode) As Boolean

DeleteTimer(TimerName As String) As Boolean

EditTimer(TimerName As String, TimerTime As Date, Script As String, Optional RawCode) As Boolean

CheckTimer(TimerName As String) As Variant

ScriptRun(ScriptName)

LogDebug(Message)

GetFromRaw(RawMessage, ItemToFind)

Time

DawnTime() As String

DuskTime() As String

IsDay() As Boolean

IsNight() As Boolean

Database

ExecuteSQL(SQL)

RunSQL(SQL) As Variant

Rooms

GetRoomMode(RoomName)

GetRoomState(RoomName)

GetRoomOccupancy(RoomName) As Boolean

SetRoomMode(RoomName, RoomMode As Integer) As Boolean

SetRoomOccupancy(RoomName) As Boolean

Custom Page specific

GetLastEvents() As Variant

TitleStripGreen(xTitle, xURL)

TitleStripBlue(xTitle, xURL)