Page 1 of 1

Re: lets talk about typing in browser

Posted: Mon May 20, 2019 12:45 pm
by salvadordf
Hi,

Some of those functions only work if TChromium is in OSR mode.

Use the SimpleOSRBrowser demo and use these functions in your tests : TChromium.SendKeyEvent, TChromium.SendMouseWheelEvent, TChromium.SendMouseClickEvent, TChromium.SendMouseMoveEvent, etc.

Create a log of all the calls to those functions in the SimpleOSRBrowser demo and you will be able to reproduce the same key and mouse events at a later time.

Re: lets talk about typing in browser

Posted: Sun Jun 09, 2019 10:04 am
by salvadordf
dsgfdsagr wrote: Thu Jun 06, 2019 12:31 pmWhen you wrote i could reproduce it in later time, did you mean in minibroswer?
You need to use the SimpleOSRBrowser demo.
dsgfdsagr wrote: Thu Jun 06, 2019 12:31 pmhow to create this log? do i need to log all function calls? and events?
To create the log you need to save the messages sent to TForm1.AppEventsMessage
https://github.com/salvadordf/CEF4Delph ... r.pas#L192

Those messages contain all the keyboard and mouse information you need to simulate all the key presses and mouse movements.