With a quick search, I found that for security reasons, it is not possible to control the mouse with JavaScript. So I need an "alternative solution".
The alternative solution would be to execute the function Chromium1.Browser.Host.SendMouseClickEvent (I also need to pass the coordinates as a parameter), but I don't know how to call this function through JS code.
I can do this by sending messages to the console (and filtering the messages in the OnConsoleMessage event), but that doesn't seem like a good solution.
Code: Select all
console.log ('SendMouseClickEvent 10 10');