a mouse object for ExtendScript. This creates a new object called mouse which you can manually (only) update to keep track of your clicks. For example, on a right click you can use Mouse.setRight() to set the "last" property to 2 (mouse button of index 2). Then you can check if your latest click was a right click by calling Mouse.lastIsRight(), which will return true or false. This can be useful in cases where you can't access the mouse click button index on spot, or just to keep track of your mouse clicks for whatever reason.