Advertisement
Guest User

Autohotkey Script

a guest
Feb 21st, 2017
8,219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. #SingleInstance force
  3. ; #Warn ; Enable warnings to assist with detecting common errors.
  4. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  5. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  6.  
  7. ; set your resolution
  8. w = 2880
  9. h = 1080
  10.  
  11.  
  12.  
  13. lwin & lbutton::
  14. settitlematchmode, 2
  15.  
  16. winget style, style, a
  17. if(style & 0xc40000) {
  18. wingetpos, x, y, width, height, a
  19. winset, style, -0xc40000, a
  20. winmove,a,,0,0,w,h
  21. } else {
  22. winset, style, +0xc40000, a
  23. winmove,a,,%x%,%y%,%width%,%height%
  24. }
  25. return
  26.  
  27.  
  28.  
  29. ;AlwaysOnTop
  30. LWIN & SPACE:: Winset, Alwaysontop, , A
  31. return
  32. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement