merge everything into one file, having a separate library is pointless at this point
This commit is contained in:
parent
21404a7e2f
commit
e1c736bf69
2 changed files with 19 additions and 26 deletions
|
@ -1,24 +0,0 @@
|
|||
#NoEnv
|
||||
#Warn
|
||||
SendMode Input
|
||||
SetWorkingDir %A_ScriptDir%
|
||||
|
||||
; Not only windows titlebar and borders count towards window size
|
||||
; shadow also does, so compensate for that, width 16, height 39
|
||||
|
||||
ResizeWin(Width = 0,Height = 0,ExtraW = 0,ExtraH = 0,WinW = 16,WinH = 39) {
|
||||
WinGetPos,X,Y,W,H,A
|
||||
|
||||
if (Width == 0) {
|
||||
Width := W
|
||||
} else {
|
||||
Width += ExtraW + WinW
|
||||
}
|
||||
if (Height == 0) {
|
||||
Height := H
|
||||
} else {
|
||||
Height += ExtraH + WinH
|
||||
}
|
||||
|
||||
WinMove,A,,%X%,%Y%,%Width%,%Height%
|
||||
}
|
|
@ -3,9 +3,26 @@
|
|||
#NoEnv
|
||||
#Warn
|
||||
SendMode Input
|
||||
SetWorkingDir %A_ScriptDir%
|
||||
|
||||
#Include, _winresize.ahk
|
||||
; Not only windows titlebar and borders count towards window size
|
||||
; shadow also does, so compensate for that, width 16, height 39
|
||||
|
||||
ResizeWin(Width = 0,Height = 0,ExtraW = 0,ExtraH = 0,WinW = 16,WinH = 39) {
|
||||
WinGetPos,X,Y,W,H,A
|
||||
|
||||
if (Width == 0) {
|
||||
Width := W
|
||||
} else {
|
||||
Width += ExtraW + WinW
|
||||
}
|
||||
if (Height == 0) {
|
||||
Height := H
|
||||
} else {
|
||||
Height += ExtraH + WinH
|
||||
}
|
||||
|
||||
WinMove,A,,%X%,%Y%,%Width%,%Height%
|
||||
}
|
||||
|
||||
; always on top
|
||||
#!t::Winset, Alwaysontop, , A
|
||||
|
|
Loading…
Reference in a new issue