# mouse

### Get Position

```javascript
mouse.getPosition();
```

Return's the current X and Y coordinates.

### Move

```javascript
mouse.move(int: x, int: y);
```

Moves the mouse by X and Y values.

### Move To

```javascript
mouse.moveTo(int: x, int: y)
```

Moves the mouse to a specific X and Y \[Screen Coordinate] point on the screen.

### Is Left Key Down?

```javascript
mouse.isLeftKeyDown();
```

Returns a boolean.

### Is Right Key Down?

```javascript
mouse.isRightKeyDown();
```

Returns a boolean.

{% hint style="info" %}
Passing button types:

* 1.) Left mouse
* 2.) Right mouse
  {% endhint %}

### Click

```javascript
mouse.click(int: button);
```

This will automatically press the key and lift up the key after a randomized time.

### Key Down

```javascript
mouse.down(int: button);
```

### Key Up

```javascript
mouse.up(int: button);
```
