Page 1 of 1
SendMouseInput
Posted: Tue Mar 22, 2022 11:08 am
by pushca
Hello. I need to check my site for mouse movement for the right js events. It seems to me that I should use "SendMouseInput", could you show an example of this event? (or suggest something else).
Re: SendMouseInput
Posted: Wed Mar 23, 2022 9:35 am
by salvadordf
Hi,
SendMouseInput and SendPointerInput can only be used with a browser in Windowless mode.
Consider using the Input.dispatchMouseEvent DevTools method :
https://chromedevtools.github.io/devtools-protocol/1-3/Input/#method-dispatchMouseEvent
The TWVBrowserBase.SimulateKeyEvent function in uWVBrowserBase.pas shows how to use a similar method called Input.dispatchKeyEvent