diff options
author | breadcat | 2013-08-17 16:20:05 +0100 |
---|---|---|
committer | breadcat | 2013-08-17 16:20:05 +0100 |
commit | bd39cc3a13fd2f1a97d323c2ed12e735143c0568 (patch) | |
tree | 44f9d78ce34e8baa6eb26013371d5e75044dec4a /functions.ahk | |
parent | fc566ab208ace56aac101d5c3c3e08c9242645a9 (diff) | |
download | ahka-bd39cc3a13fd2f1a97d323c2ed12e735143c0568.tar.gz ahka-bd39cc3a13fd2f1a97d323c2ed12e735143c0568.tar.bz2 ahka-bd39cc3a13fd2f1a97d323c2ed12e735143c0568.zip |
Removed MouseWin, split tile to hotkeys+functions
MouseWin may return one day, it was being glitchy as an include and
doesn't warrant an additional process.
Diffstat (limited to 'functions.ahk')
-rw-r--r-- | functions.ahk | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/functions.ahk b/functions.ahk new file mode 100644 index 0000000..cf438c2 --- /dev/null +++ b/functions.ahk @@ -0,0 +1,32 @@ + +Shift(Pos) +{ + WinGetClass, class, A + IfInString , shell_TrayWnd,Progman,Button,DV2ControlHost, %class% + Return + IfWinExist,ahk_class Shell_TrayWnd + SysGet, m, MonitorWorkArea + Else SysGet, m, Monitor + WinGetPos, MWT_X, MWT_Y, MWT_W, MWT_H, A + SendMessage, 0x1F,,,, A + WinGet, MWT_active, MinMax, A + if (MWT_active = 1) + WinRestore, A + If (Pos = "T") + WinMove, A,, 0, 0, mRight, mBottom/2 + If (Pos = "B") + WinMove, A,, 0, mBottom/2, mRight, mBottom/2 + If (Pos = "L") + WinMove, A,, 0, 0, mRight/2, mBottom + If (Pos = "R") + WinMove, A,, mRight/2, 0, mRight/2, mBottom + If (Pos = "TL") + WinMove, A,, 0, 0, mRight/2, mBottom/2 + If (Pos = "TR") + WinMove, A,, mRight/2, 0, mRight/2, mBottom/2 + If (Pos = "BR") + WinMove, A,, mRight/2, mBottom/2, mRight/2, mBottom/2 + If (Pos = "BL") + WinMove, A,, 0, mBottom/2, mRight/2, mBottom/2 +} +Return |