I'm working on control panels that will run 24/7 on an iPad mini in a browser.
This means the screen will be on/lit all the time.
To dim the screen I've created a couple of PNG files:
TouchPanel+.png is totally transparent.
TouchPanel+Grey50.png is 50% grey.
TouchPanel+Black.png is 100% black.
The images are 1024 x 768 and I've put a "Variable Value" item on the control page with the highest possible z-order.
When the variable TouchPanel has a value of "Grey50" or "Black", the screen is dimmed or "off".
The "Variable Value" also has a server action that clears the value of the variable "TouchPanel".
This makes the screen visible again, just by tapping somewhere on the screen.
So far so good. But... because this picture is on top of everything else, the other buttons on the control pages no longer work.
That's why I'm looking for a way to change the z-order of a control page item via AppleScript or Python code.
Move it to something like 99999 when I want to dim the screen and move it to 0 when I want the screen to be visible.
Can this be done somehow?