summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbreadcat2013-08-17 15:36:26 +0100
committerbreadcat2013-08-17 15:36:26 +0100
commit5769844e5ecae346bbb98a1e00f8cabdb5a59924 (patch)
tree77f00e104756c20c0b65bdf9ab3cd3671be0d734
parent39c7d9bd10c5abe85157516fad50f26c22e02b62 (diff)
downloadahka-5769844e5ecae346bbb98a1e00f8cabdb5a59924.tar.gz
ahka-5769844e5ecae346bbb98a1e00f8cabdb5a59924.tar.bz2
ahka-5769844e5ecae346bbb98a1e00f8cabdb5a59924.zip
Remove double-alt features and version check
-rw-r--r--mousewin.ahk52
1 files changed, 0 insertions, 52 deletions
diff --git a/mousewin.ahk b/mousewin.ahk
index 18779b5..16caf26 100644
--- a/mousewin.ahk
+++ b/mousewin.ahk
@@ -22,21 +22,10 @@
; The shortcuts:
; Alt + Left Button : Drag to move a window.
; Alt + Right Button : Drag to resize a window.
-; Double-Alt + Left Button : Minimize a window.
-; Double-Alt + Right Button : Maximize/Restore a window.
-; Double-Alt + Middle Button : Close a window.
;
; You can optionally release Alt after the first
; click rather than holding it down the whole time.
-If (A_AhkVersion < "1.0.39.00")
-{
- MsgBox,20,,This script may not work properly with your version of AutoHotkey. Continue?
- IfMsgBox,No
- ExitApp
-}
-
-
; This is the setting that runs smoothest on my
; system. Depending on your video card and cpu
; power, you may want to raise or lower this value.
@@ -46,15 +35,6 @@ CoordMode,Mouse
return
!LButton::
-If DoubleAlt
-{
- MouseGetPos,,,KDE_id
- ; This message is mostly equivalent to WinMinimize,
- ; but it avoids a bug with PSPad.
- PostMessage,0x112,0xf020,,,ahk_id %KDE_id%
- DoubleAlt := false
- return
-}
; Get the initial mouse position and window id, and
; abort if the window is maximized.
MouseGetPos,KDE_X1,KDE_Y1,KDE_id
@@ -78,18 +58,6 @@ Loop
return
!RButton::
-If DoubleAlt
-{
- MouseGetPos,,,KDE_id
- ; Toggle between maximized and restored state.
- WinGet,KDE_Win,MinMax,ahk_id %KDE_id%
- If KDE_Win
- WinRestore,ahk_id %KDE_id%
- Else
- WinMaximize,ahk_id %KDE_id%
- DoubleAlt := false
- return
-}
; Get the initial mouse position and window id, and
; abort if the window is maximized.
MouseGetPos,KDE_X1,KDE_Y1,KDE_id
@@ -127,23 +95,3 @@ Loop
KDE_Y1 := (KDE_Y2 + KDE_Y1)
}
return
-
-; "Alt + MButton" may be simpler, but I
-; like an extra measure of security for
-; an operation like this.
-!MButton::
-If DoubleAlt
-{
- MouseGetPos,,,KDE_id
- WinClose,ahk_id %KDE_id%
- DoubleAlt := false
- return
-}
-return
-
-; This detects "double-clicks" of the alt key.
-~Alt::
-DoubleAlt := A_PriorHotKey = "~Alt" AND A_TimeSincePriorHotkey < 400
-Sleep 0
-KeyWait Alt ; This prevents the keyboard's auto-repeat feature from interfering.
-return \ No newline at end of file