Pull text from a UWP app label on Windows 10

I have an obsession that I'm having trouble implementing. Actually, to the subject. There is a Yandex. Music app for Windows 10, the app is not win32, but UWP from the Microsoft Store. Music plays from the app. You need to pull it out of the label (or whatever it is called in the new UI).) the name of the artist and the name of the playing track. In win32 applications, you can easily pull all the necessary text from labels through the window handle and search for child elements, but here I can only get the handle windows of the ApplicationFrameInputSinkWindow class. Question. Maybe there is some C++ library for working with UI elements in UWP? Or do you need to get into the processes and poke around in the application's memory? Thank you for your help!

Author: Freakytools, 2020-06-26

1 answers

For this purpose, you can use UI Automation.

 0
Author: user7860670, 2020-06-26 15:35:35