Is it possible to detect the state of a mouse button, in the same way that the position of the mouse can be stored in variables?
What I want to be able to do is let a macro run in a loop while the mouse button is down, and then stop it when the button is released.