I'm use CEF 3.2454.1344.g2782fb8 (Chromium 45.0.2454.101) in my project in Delphi 10.1. (I have to use a fairly old version of CEF/Chromium for backwards compatibility with WinXP). I've tried to do SendMouseClickEvent
- it works, but froze Chromium. Perhaps I have to use SendProcessMessage
after this code, or something? Will be grateful for any help!
crm.Browser.Host.SetFocus(true);
event.x:=600;
event.y:=40;
event.modifiers:=[];
aType:=MBT_LEFT;
crm.Browser.Host.SendMouseClickEvent(event, aType, false,1);
crm.Browser.Host.SendMouseClickEvent(event, aType, true, 1);
UPDATE: Seems after this piece of code my application stops handle any mouse clicks at all - I can't click on any element on form, where Chromium located, but scroll still working. Any ideas?