Thanks so much for both your replies!

To be honest, that code that seems great! I have no idea what most of the code is doing, but I can actually make the screen dimmer then necessary. Thanks very much, when I've made this into something useful for me, I'll post with an update :)

Now it's fingers crossed Apple doesn't break it!