隐藏标题栏.ahk 438 B

123456789101112131415
  1. #t::
  2. SetTitleMatchMode, 2 ;设定ahk匹配窗口标题的模式
  3. winactivate,A ; 激活此窗口
  4. sleep, 500 ; 延时,确保
  5. WinSet,Transparent,220,A ;使得窗口变透明。取值范围0-255.0为完全透明,255完全不透明。
  6. WinSet, Style, -0xC00000,A ;去掉标题栏
  7. Return
  8. #h::
  9. SetTitleMatchMode, 2
  10. WinActivate,A
  11. sleep, 500
  12. WinSet,Transparent,255,A
  13. WinSet,Style,+0xC00000,A ;恢复标题栏
  14. Return