Click here to Skip to main content
15,888,340 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Comments
[no name] 20-Jul-19 10:36am    
At $x per hour, you're better off buying another monitor.
Member 14259365 21-Jul-19 0:10am    
I already have three. That doesn't even remotely help with my issue, since two of the three may be occupied with other data.

Note that there's at least one bloatware utility that does this, so there IS a solution that doesn't require an infinite number of monitors.
Richard Deeming 22-Jul-19 15:03pm    
Not really an answer, but if the application has the focus you can use Win+Shift+Left/right arrow to move the application between monitors.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900