Multiple calls to SendMouseMoveEvent()

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Multiple calls to SendMouseMoveEvent()

Postby Mayhew » Wed Jul 24, 2013 5:11 pm

We are using the mouse event APIs to simulate interaction with the web page in our CEF browser and it seems that making multiple calls to SendMouseMoveEvent() does not work. When we call it four times in a row, only the first two moves actually occur. Is that a bug or is that API not intended to be used in that way? FYI, we are not using offscreen rendering if that matters.

Thanks,
John
Mayhew
Expert
 
Posts: 303
Joined: Mon Apr 18, 2011 8:02 pm

Re: Multiple calls to SendMouseMoveEvent()

Postby magreenblatt » Wed Jul 24, 2013 5:17 pm

What OS and CEF version?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Multiple calls to SendMouseMoveEvent()

Postby Mayhew » Wed Jul 24, 2013 6:18 pm

I'm on Windows CEF3 Release Branch 1453.
Mayhew
Expert
 
Posts: 303
Joined: Mon Apr 18, 2011 8:02 pm

Re: Multiple calls to SendMouseMoveEvent()

Postby magreenblatt » Wed Jul 24, 2013 8:06 pm

How quickly are you calling the function? It's possible that there's some rate limiting somewhere since each call results in an IPC message. You might try introducing a delay between the calls -- for example see if you can identify the frequency at which WM_MOUSEMOVE events would normally be sent and use the same frequency.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Multiple calls to SendMouseMoveEvent()

Postby Mayhew » Wed Jul 24, 2013 8:32 pm

Okay, that makes sense if each call results in an IPC. We will try increasing the time between the calls to see if that fixes it. Thanks for the responses.
Mayhew
Expert
 
Posts: 303
Joined: Mon Apr 18, 2011 8:02 pm

Re: Multiple calls to SendMouseMoveEvent()

Postby Mayhew » Fri Jul 26, 2013 4:31 pm

Just wanted to respond for the benefit of anyone using this APIs.
We were attempting to call these from the browser process UI thread, knowing that that could be a problem. It turned out it was. Once we moved these calls to be on a separate worker thread, everything worked perfectly.

John
Mayhew
Expert
 
Posts: 303
Joined: Mon Apr 18, 2011 8:02 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 153 guests

cron