2.3 scripting

Discuss issues and ideas you have to configuring displays with PowerVision
adawson
Posts: 8
Joined: Wed May 18, 2011 10:30 am

2.3 scripting

Post by adawson » Wed Oct 19, 2011 2:58 pm

In 2.3 scripts, what is the method to get the screenObjectIDs for screen objects?
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: 2.3 scripting

Post by ksaenz » Wed Oct 19, 2011 3:56 pm

Hello adawson,

In 2.3 you can get the screen object ID and other IDs using API value lists instead of methods.

For example, if you have a gauge called engine speed gauge it's ID will be: ScreenObjectIDs.Engine_Speed_Gauge

Using autocompletion makes it even easier, you can type "S" and then [Ctrl] + [Space Bar] and you will see a list of keyword options including ScreenObjectIDs, then you just add the dot (".") and you will see the list of all the screen object IDs.

Other API value lists are:
EventIDs.
StringIDs.
VariableIDs.

Regards,

ksaenz
adawson
Posts: 8
Joined: Wed May 18, 2011 10:30 am

Re: 2.3 scripting

Post by adawson » Wed Oct 19, 2011 4:23 pm

Many thanks. Also, thanks for the auto-completion tip.