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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

SendMouseInput

Post Reply
pushca
Posts: 37
Joined: Sat Dec 04, 2021 5:09 pm

SendMouseInput

Post 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).
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: SendMouseInput

Post 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
Post Reply