隐藏标题栏.ahk 563 B

123456789101112131415161718192021
  1. ; @Author : liuyuqi
  2. ; @Contact : liuyuqi.gov@msn.cn
  3. ; @Time : 2015/1/1
  4. ; @Version : 1.0
  5. ; @Desc : 隐藏标题栏
  6. #t::
  7. SetTitleMatchMode, 2 ;设定ahk匹配窗口标题的模式
  8. winactivate,A ; 激活此窗口
  9. sleep, 500 ; 延时,确保
  10. WinSet,Transparent,220,A ;使得窗口变透明。取值范围0-255.0为完全透明,255完全不透明。
  11. WinSet, Style, -0xC00000,A ;去掉标题栏
  12. Return
  13. #h::
  14. SetTitleMatchMode, 2
  15. WinActivate,A
  16. sleep, 500
  17. WinSet,Transparent,255,A
  18. WinSet,Style,+0xC00000,A ;恢复标题栏
  19. Return