Function: Restore or Maximize Windows with Double Click with the Right Mouse Anywhere Inside a Window
When a window is in restore mode then double clicking with the right mouse anywhere inside the window will maximize the window.
If the window is in maximized view then doubling clicking with the right mouse will restore the window.
When a window is in restore mode then double clicking with the right mouse anywhere inside the window will maximize the window.
If the window is in maximized view then doubling clicking with the right mouse will restore the window.






Try RightMax!
, I uploaded the wrong ahk, change line 20