码迷,mamicode.com
首页 > 系统相关 > 详细

模仿VIMD的模式的简化代码示例

时间:2017-04-04 14:17:56      阅读:251      评论:0      收藏:0      [点我收藏+]

标签:nump   normal   one   .net   over   pad   ref   line   position   

按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
 
 技术分享技术分享
  1. Numpad0::  
  2. tfmode:=!tfmode  
  3. aaa:=(tfmode=1?"AAAA":"BBBB")  
  4.     SplashImage Off  
  5.     SplashImage, "",X500 Y500 W200 B fs10 CT00FFFF CW000000,%aaa%, , 切换模式提示  
  6.     WinSet, Transparent, 180, ahk_class AutoHotkey2  
  7.     sleep 1300  
  8.     SplashImage Off  
  9. return  
  10. t::  
  11. if tfmode  
  12.     MsgBox 1111  
  13. else  
  14.     MsgBox 222  
  15. return  

 

模仿VIMD的模式的简化代码示例

标签:nump   normal   one   .net   over   pad   ref   line   position   

原文地址:http://www.cnblogs.com/zhanglei1371/p/6664842.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!