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