按numpad0来切换模式,按t显示不同的结果;
Numpad0:: tfmode:=!tfmode aaa:=(tfmode=1?"AAAA":"BBBB") SplashImage Off SplashImage, "",X500 Y500 W200 B fs10 CT00FFFF CW000000,%aaa%, , 切换模式提示 WinSet, Transparent, 180, ahk_class AutoHotkey2 sleep 1300 SplashImage Off return t:: if tfmode MsgBox 1111 else MsgBox 222 return
.
按numpad0来切换模式,按t显示不同的结果;
[plain] view plain copy
- Numpad0::
- tfmode:=!tfmode
- aaa:=(tfmode=1?"AAAA":"BBBB")
- SplashImage Off
- SplashImage, "",X500 Y500 W200 B fs10 CT00FFFF CW000000,%aaa%, , 切换模式提示
- WinSet, Transparent, 180, ahk_class AutoHotkey2
- sleep 1300
- SplashImage Off
- return
- t::
- if tfmode
- MsgBox 1111
- else
- MsgBox 222
- return
时间: 2024-09-29 11:28:43