DonationCoder.com Software > Post New Requests Here
IDEA: Windows Control
Smobu:
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.
kwacky1:
Here you go, try RestMax
Edit: Uploaded correct AHK
Smobu:
Thanks for filling out the request.
The exe works fine, but I'm not quite sure why but the ahk file is causing me to get a screen distortion when using this.
Before:
http://i42.tinypic.com/2ezu04y.jpg
After:
http://i43.tinypic.com/5l2g6f.png
skrommel:
:) Try RightMax!
This one catches the rightclicks! It slows down single rightclicks, though...
Skrommel
--- ---;RightMax.ahk
; Doublerightclick in a window to maximize or restore it
;Skrommel @ 2009
#NoEnv
#SingleInstance,Force
SetWinDelay,0
CoordMode,Mouse,Screen
SendMode Input
RegRead,dblclickspeed,HKEY_CURRENT_USER,Control Panel\Mouse,DoubleClickSpeed
SysGet,dblclickx,36
SysGet,dblclicky,37
time:=A_TickCount
Return
$RButton::
oldmx:=mx
oldmy:=my
oldmwin:=mwin
oldmctrl:=mctrl
MouseGetPos,mx,my,mwin,mctrl
oldtime:=time
time:=A_TickCount
SetTimer,RIGHT,% "-" dblclickspeed
If (mx<oldmx-dblclickx Or mx>oldmx+dblclickx Or my<oldmy-dblclicky Or my>oldmy+dblclicky Or time-oldtime>dblclickspeed Or mwin<>oldmwin)
Return
SetTimer,RIGHT,Off
WinGet,minmax,MinMax,ahk_id %mwin%
If minmax=0
WinMaximize,ahk_id %mwin%
Else
WinRestore,ahk_id %mwin%
Return
RIGHT:
Click,Right
Return
Smobu:
Would someone be kind enough to tweak the script to detect dragging of the right mouse button because it interferes with mouse gestures on Opera.
Navigation
[0] Message Index
[#] Next page
Go to full version