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.

Loss SendMouseWheelEvent after SendMouseClickEvent

Post Reply
micmorozov
Posts: 18
Joined: Mon Oct 07, 2019 7:53 am

Loss SendMouseWheelEvent after SendMouseClickEvent

Post by micmorozov »

Hello!

Help me figure out the next problem.

I use the following commands to click and scroll the mouse

For click
Chr.SendFocusEvent(true);
Chr.SendMouseClickEvent(@event, MBT_LEFT, false, 1);
Chr.SendMouseClickEvent(@event, MBT_LEFT, true, 1);

for scroll
Chr.SendMouseWheelEvent(@event, 0, -10);

But after I click on the link and the page loads, the scroll page stops working.

But if you scroll the mouse wheel, then the scroll starts working again.

What could be the problem?

Thanks
User avatar
salvadordf
Posts: 4565
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Loss SendMouseWheelEvent after SendMouseClickEvent

Post by salvadordf »

Hi,

I haven't tested that yet but you're not the first user that reports similar issues simulating mouse events :
https://www.briskbard.com/forum/viewtop ... t=10#p4284

Try an older CEF4Delphi release.
Post Reply