Screen object and scripts

Hello all !

I created a custom screen object (type ‘display status’). I can perfectly change its state calling the command ‘ON’ and ‘OFF’ with its “remote control ID”. But I’m currently wondering if I can, using a mairlist script, get its current state (if it’s on or off) (in order to launch some process regarding the state) ?

How can we access to screen objects by script ? Is it possible ?

Regards,

Sylvain

1 Like

Interesting topic!
What I’ve done for this (so far) is that when a button is pressed in mAirlist or triggered by a script, it will execute an extra command which my script is listening for… But would be interesting to be able to read a state.

As far as I know, reading the state directly is not implemented in mAirListScript. Workaround is setting all buttons to a defined state on startup with the procedure OnLoad and keeping track of every state change via procedure OnExecuteCommand.

1 Like

It’s exactly what I did finally. And it works very well.
Thanks @Tondose !