B
B
booomheadshot2014-08-05 13:31:24
Delphi
booomheadshot, 2014-08-05 13:31:24

How to get habdle buttons on a web page using WinAPI?

I have a browser open, for example, with the VKontakte public. It is necessary that at startup the program moves the cursor to the "Subscribe" button and presses it.
I tried using GetCursorPos / SetCursorPos - the idea is good, but because of the size of the public avatar, the Y coordinates of the button change, which is very critical.
Now I wonder if it is possible to get the handle of this button, if it has one at all, and if there are other algorithms for solving this problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shdprogrammer, 2014-08-05
@shdprogrammer

This is a web page. The entire area in which the web page is displayed is essentially one element for the OS. Maybe I'm wrong somewhere, but the point is. that you will not receive the handle of a certain button on the site. This can be done using javascript. But I can't tell you exactly how.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question