1 Tried SendMouseClickEvent:
Code: Select all
TempEvent.x := X;
TempEvent.y := Y;
TempEvent.modifiers := EVENTFLAG_IS_LEFT;
DeviceToLogical(TempEvent, GlobalCEFApp.DeviceScaleFactor);
Chromium.SendMouseClickEvent(@TempEvent, MBT_LEFT, False, 1);
2 Tried SendMessage() to CEFWindowParent.Handle - this also didn't work
3 Tried to emulate clicks via js - this sometimes worked.
Sometimes didn't. Rather strange. No errors were reported.
Which is the reliable way to send clicks? Or do I need something more to make playing?