I am currently developing an app to take specialized screenshots for work using Python and Tkinter. While I have already implemented a click-and-drag process for a screenshot, I want to add another way to take a screenshot by simply clicking on an open app window, such as a browser, and get its coordinates and use those for a screenshot.
My problem is that I cannot find a way to get a window's coordinates with a mouse click in Python. Is this even possible?
I have not been able to find a way to even try what I want but the functionality of the Windows Snipping Tool (window mode) is what I'm trying to replicate.