This should be in the script section, since it is the script that achieves this.
In your script you can replace the "plrusingaction=x", "scancodekypressed=x", or "keypressed=x y" with either of the following:
"mouseclick=x" - returns true if the corresponding button has been pressed.
X=1- left button; 2=right button; 3=both left and right
---
"mousestate=x" - is true if a specified combination of mouse buttons are pressed and x equals the sum of the button codes, or no mouse button is pressed and x=0.
X= mouse state codes (0=no buttons pressed; 1=left button pressed; 2=right button pressed; 3=left and right pressed; 4=middle pressed)
**Note** "mousestate=x" introduced in v1.18; "mouseclick=x" introduced in v1.19

There's no problem that can't be solved without applying a little scripting.