How does An Application Send Keystrokes Into A Browser?

a_unique_name 401 Reputation points
2025-03-01T16:32:24.2833333+00:00

Hello Folks:

Developing on Windows 10 Pro, Visual Studio 2022 updated today, all C++.  

I want to write an app that can send page down keystrokes to scroll down through the comment section of YouTube videos.  

I feel I have the fundamental skills.  I have diagnostic code on one thread that sends keystrokes to windows of the same application that are running on a different thread.  

How can I find the handle of a particular browser window, and convey that information to my application?

Thanks
Larry

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,874 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.