zoukankan      html  css  js  c++  java
  • 模仿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显示不同的结果;

     

    [plain] view plain copy
     
     在CODE上查看代码片派生到我的代码片
    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  
  • 相关阅读:
    为linux命令添加别名
    ubuntu安装mongodb
    mysql保存中文乱码问题
    公倍数
    复制网站内容
    孪生素数
    迷宫问题
    递归连续数
    排列平方数
    基因牛
  • 原文地址:https://www.cnblogs.com/zhanglei1371/p/6664842.html
Copyright © 2011-2022 走看看