Let's say I'm running a browser window and the title of the window is something like "Title Here - Mozilla Firefox." I want to constantly update a .txt file that contains the title of this window, meaning the .txt file should change as the title bar changes (doesn't have to be instant, maybe every 1 second).
I already know this is possible on Linux with
wmctrl and a little scripting, but I would like to do this on Windows 10.
How can I go about making this? What applications or SDKs would I need?