Following up on my previous comment suggesting using Windows UIAutomation to get this information.
Here is a working powershell script I made as a reference to Get Chromium URL from Windows UI Automation, in a github gist. In less than 25 actual lines (If not counting comments and formatting), it gets the current foreground window name, and for chromium browser, its webpage URL and name.
A screenshot in the gist briefly shows how I deducted where to access URL&name to implement this. The other references in my previous comment are still relevant if needed. Feel free to reply here I can provide more information.
EDIT : I added a proof of concept to also get windows explorer open folder’s name & path
Brian Cohen
•
Jan 11, 2025
Please!!
Julien Quintard
Team•
Jan 14, 2025
This one is a bit hard. We do not know yet if it is even possible to achieve. As far as we know, nobody has done it. We’ll have to invest quite a lot of resources to see. As a result, unlikely in the coming months unfortunately.
Comments5
Amine A.
Aug 25
Following up on my previous comment suggesting using Windows UIAutomation to get this information.
Here is a working powershell script I made as a reference to Get Chromium URL from Windows UI Automation, in a github gist.
In less than 25 actual lines (If not counting comments and formatting), it gets the current foreground window name, and for chromium browser, its webpage URL and name.
A screenshot in the gist briefly shows how I deducted where to access URL&name to implement this.
The other references in my previous comment are still relevant if needed. Feel free to reply here I can provide more information.
EDIT : I added a proof of concept to also get windows explorer open folder’s name & path
Brian Cohen
Jan 11, 2025
Please!!
Julien Quintard
Jan 14, 2025
This one is a bit hard. We do not know yet if it is even possible to achieve. As far as we know, nobody has done it. We’ll have to invest quite a lot of resources to see. As a result, unlikely in the coming months unfortunately.