Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- #SingleInstance force
- ; #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.
- ; set your resolution
- w = 2880
- h = 1080
- lwin & lbutton::
- settitlematchmode, 2
- winget style, style, a
- if(style & 0xc40000) {
- wingetpos, x, y, width, height, a
- winset, style, -0xc40000, a
- winmove,a,,0,0,w,h
- } else {
- winset, style, +0xc40000, a
- winmove,a,,%x%,%y%,%width%,%height%
- }
- return
- ;AlwaysOnTop
- LWIN & SPACE:: Winset, Alwaysontop, , A
- return
- ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement