I usually run with two monitors, and I often set both of them to show an extended desktop under Windows 7 and 10. But sometimes I need to display something else in one of the displays, but then the windows that were open on the now unavailable monitor are essentially inaccessible, since I cannot readily move them to the remaining monitor (without moving everything beforehand, which is a pain).
I found a utility that can accomplish this, but it is designed for much more extensive monitor manipulation and it is much too big for the tiny task of moving a (third-party) application window from one monitor to another.
Here's how I would like it to work: I would launch my own micro-application (ideally some kind of context menu handler), which would then detect which window the user has selected (or optionally right-clicks) ib the taskbar. Then, if that window is open on any other monitor, it would move it to the current monitor.
But I've been unable to find any way to detect which item the user has selected in the taskbar, which is why I turned here. Any ideas?
I'll be coding in AutoIt, but that honestly doesn't matter since all the Windows API calls can be invoked with that language. I could easily translate a C++ or other language's solution.
Thank you for your time and your assistance.
What I have tried:
Scoured Windows Docs relating to the taskbar, but although there's a lot of info there, nothing seemed at all relevant.