I understand what this it is supposed to do, and I want to allow the user to turn screen dimming on or off themselves. However, can you please explain how this is used in a working code example? This looks a bit like a fragment to me and I can't figure out what to do with it. I tried a few things with no joy.
(15.06.2020, 11:59)Daniel. Wrote: It is full script, Set 'visdim', 0 to turn it off
Thank you for your reply. It seems to me that the browser needs to be refreshed for this to take effect. Is that right? Can we make it immediate (not requiring a refresh)?
I trigger this script with a toggle button on a Visualisation screen. While it works, it does need a refresh, so my question above remains. Can we make it take effect immediately?
Thanks you for your quick response and explanation. I implemented this (changing the 1/1/1 to my script triggering address) and it all works as expected, with the observation that the page refreshes either 2 or 3 times, rather than just once. I can live with that, although it is curious.