I think I did it a sneaky way in the AP demo, simply put:

mouse_right = 1;

somewhere at the top of the script, that way it is like holding down the right mouse button all the time. But then I think I wanted to use the mouse_right button in other ways so I ended up storing mouse_right value in another variable before setting it to 1.