Sorry, should have added not specifically for hardware, just figured this was most appropriate to request datarefs in given they use scripts too.
It's for a virtual FO script, it uses the engine mode as a trigger to prime takeoff functions, and in this case as it being an appropriate time to force CDU 3 into the TO ref page so it can engage climb thrust. In the other aircraft I've done this for there has been a dataref for the eng mode and target thrust so its a simple if statement. For this one that fo-state ref was working.. until flex turned up
I have a very inelegant way at the moment courtesy of the CDU screen lines being datarefs, I can take and truncate those to work out what mode is active, but its quite messy and a bit troublesome now thrust ref has 2 pages.