Answer the question
In order to leave comments, you need to log in
How to use C++ to find and click a button on a web page?
My goal is this: the program clicks on a link on a web page, VKontakte opens, then the program looks for the "I like" button (in theory, there will be one there), clicks it and closes the tab, after which it clicks the same link again (The link will change) and everything will happen again.
There is an idea how to click a link - just emulate the movement of the mouse cursor and click on static coordinates, there are no problems here, the position of the link on the page does not change. close the tab is also no problem, the same method. but with the button press, I like a small problem - it is constantly in a different place. how can i find it and click it?
Answer the question
In order to leave comments, you need to log in
Look towards Selenium for C++.
Here is a turnip, it has everything you need along the way.
https://github.com/digination/cpp-webdriver
Idea-pindey.
Autoclickers are the most primitive approach to creating bots. It would be so simple - the masters in this business (for example, me) would not be paid so much.
At a minimum, you need to use browser engines, and preferably an HTTP sniffer + pure HTTP requests; under Windows it is necessary to write in C #, not C ++; etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question