SendMouseClickEvent makes window front, I hope it is silent

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

SendMouseClickEvent makes window front, I hope it is silent

Postby 502827508 » Thu Oct 07, 2021 11:18 am

Use the "SendMouseClickEvent()" function, the window will be activated,
how can I use the "SendMouseClickEvent()" function silently ?
the window is not front-facing.
502827508
Newbie
 
Posts: 1
Joined: Thu Oct 07, 2021 11:08 am

Re: SendMouseClickEvent makes window front, I hope it is sil

Postby amaitland » Thu Oct 07, 2021 7:31 pm

SendMouseClickEvent intended to be used for the WPF/OffScreen implementations where the browser is rendered offscreen.

You can try using Devtools Input.dispatchMouseEvent
- https://chromedevtools.github.io/devtoo ... MouseEvent
- https://cefsharp.github.io/api/94.4.x/h ... tAsync.htm
- https://github.com/cefsharp/CefSharp/is ... -649438094
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 17 guests