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,879 questions
{count} votes

1 answer

Sort by: Most helpful
  1. a_unique_name 401 Reputation points
    2025-03-13T13:39:44.8833333+00:00

    Thanks RLWA32 and Minxin Yu:

    I'm sorry I didn't respond sooner.

    After I posted this question two weeks ago I came to revisit it and was greeted with 404 error.

    I thought the question was lost until I just looked again today.

    To answer the question about UIAutomation:

    I know nothing about .NET Framework.

    This is a side project, not directly related to my core business. It's purpose is to make browsing YouTube more convenient. Skills learned have the potential to be used on applications that can be business related.

    I was hoping for a C++ and WIN 32 centered solution so I wont have to learn a new technology.

    I do appreciate you're suggestion.

    Larry


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.