Mouse buttons and wheel

To work with the mouse buttons and the wheel there is a built-in "mouse" object. Methods for working with buttons are similar to methods for working with keyboard keys(press, release, button, click). Look at the code below.

mouse.press('LEFT');
mouse.release('LEFT');
        
mouse.button('RIGHT','PRESS');
mouse.button('RIGHT','RELEASE');

mouse.click('MIDDLE');

Also, the "mouse" object has methods for working with the scroll wheel. To control the mouse wheel, you must specify two parameters: the direction of scrolling "UP / DOWN" and the numeric parameter the number of lines.

mouse.wheel('DOWN',3);
mouse.wheel('UP',3);