Detect which Taskbar button was clicked (identify target window)
I am trying to figure out how to detect which Taskbar button was clicked. Specifically, I want to write a script that makes it possible to maximize a window by double-clicking its Taskbar button. That requires knowing which Taskbar button was clicked, which I am having a difficult time finding any leads on. Does anyone know how this can be accomplished? That's a though one I have to admit. I can't offer you a best practice solution, but here is a little work around, maybe that enough for your purposes: CoordMode, Mouse, Screen ~LButton:: If (A_TimeSincePriorHotkey<400) and (A_PriorHotkey="