Advertisement
Guest User

Autohot key script to remove titlebars

a guest
Aug 27th, 2015
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5.  
  6. ;-Caption
  7. Shift & F2::
  8. WinGet, styl, Style, A
  9. WinGetPos, winX, winY, winW, winH, A
  10. SysGet, capt, 4
  11. if(styl & 0xC00000)
  12. {
  13. newY := winY + capt
  14. newH := winH - capt
  15. }
  16. WinSet, Style, ^0xC00000, A
  17. WinMove, A,, winX, newY , winW, newH
  18. return
  19. ;
  20.  
  21. ;+Caption
  22. Shift & F3::
  23. WinGet, styl, Style, A
  24. WinGetPos, winX, winY, winW, winH, A
  25. SysGet, capt, 4
  26. if(!(styl & 0xC00000))
  27. {
  28. newY := winY - capt
  29. newH := winH + capt
  30. }
  31. WinSet, Style, +0xC00000, A
  32. WinMove, A,, winX, newY , winW, newH
  33. return
  34. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement