Maybe not the most compact solution, but you could call [pyautogui's](https://pyautogui.readthedocs.io/en/latest/) functions with [nimpy](https://github.com/yglukhov/nimpy) . This requires the installation of python + pyautogui.
- Control mouse in Windows desdeux
- Re: Control mouse in Windows JPLRouge
- Re: Control mouse in Windows Tim_H
- Re: Control mouse in Windows mashingan
