2.3 scripting
- adawson
- Posts: 8
- Joined: Wed May 18, 2011 10:30 am
2.3 scripting
In 2.3 scripts, what is the method to get the screenObjectIDs for screen objects?
- ksaenz
- Enovation Controls Development
- Posts: 263
- Joined: Thu Aug 19, 2010 7:53 am
Re: 2.3 scripting
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
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
Many thanks. Also, thanks for the auto-completion tip.