Until we get standardized mouse support, here’s a little script you can use as an example in the meanwhile.
It gets the mouse position from in-game, and then fires .focus() and .click() events on the HTML elements it finds under the cursor position in the UI.
This is for DEVS, as an example. So please, if you’re not developing a script, don’t ask how to “install this mod”
This also freezes the camera movement, and blocks the left mouse button, so that it can be used for the UI, without interfering with the game input.
Exit the UI by pressing the escape key. Make sure you do this before you stop/restart the resource, otherwise you get stuck. Not a problem with this script, it’s a problem with the whole UI thing.
Code should be self-explanatory, but if you have any questions, feel free to ask.
I just added my chat resource to the repo, you may have to modify yours/use mine, for the chat commands to work.
Also, this has limitations. All it does, is execute a .focus() and .click() on the HTML element at the position of your cursor.
Also things like selecting text with the mouse will not work.
The solution is not ideal, but it’ll do for now.