I made a lite simple script for photoshop and painter.
I wanted the rotate tool to behave as the hand(Space) or eyedropper(Alt) tools. Meaning that when I release the key it goes back to brush.
Photoshop already have that but wasn't fully working because if you release mouse just a tick before the "R" key it wont go back to brush. It was getting very annoying for me.
Painter just didn't have it.
For the script I used this open source program
http://www.autohotkey.com/
For the script to work you have to have rotate tool assigned to "R" key and brush to "B".
Since the script just emulate that you press "B"(Brush) when releasing "R"(Rotate)
http://sharesend.com/fk4aq87g
I've been studying perspective lately and I'm training my straight lines so I have to rotate the canvas a lot and quick. With this script everything goes way smoother.