模仿VIMD的模式的简化代码示例
按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显示不同的结果;
posted on 2017-04-04 13:40 zhanglei1371 阅读(293) 评论(0) 编辑 收藏 举报