Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
SendMouseInput
SendMouseInput
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).
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: SendMouseInput
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
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