How to click to given coordinate on Canvas element

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to click to given coordinate on Canvas element

Postby SkyWolf » Fri Aug 30, 2019 10:06 am

Hello everyone

I'm developing a bot for a browser game in C#. I am using cefsharp. its a very useful library for me.
I want to click on the given point in a game with canvas element but I didn't learn how to do it even though I did a long research.

How can I do that
thank you in advance for your answers
SkyWolf
Newbie
 
Posts: 1
Joined: Fri Aug 30, 2019 9:57 am

Re: How to click to given coordinate on Canvas element

Postby Czarek » Sat Aug 31, 2019 10:09 am

You can inject js code that can dispatch click event. There is also CefBrowserHost::SendMouseClickEvent method.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 66 guests