Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- ;-Caption
- Shift & F2::
- WinGet, styl, Style, A
- WinGetPos, winX, winY, winW, winH, A
- SysGet, capt, 4
- if(styl & 0xC00000)
- {
- newY := winY + capt
- newH := winH - capt
- }
- WinSet, Style, ^0xC00000, A
- WinMove, A,, winX, newY , winW, newH
- return
- ;
- ;+Caption
- Shift & F3::
- WinGet, styl, Style, A
- WinGetPos, winX, winY, winW, winH, A
- SysGet, capt, 4
- if(!(styl & 0xC00000))
- {
- newY := winY - capt
- newH := winH + capt
- }
- WinSet, Style, +0xC00000, A
- WinMove, A,, winX, newY , winW, newH
- return
- ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement