Simplified code example that mimics the pattern of VIMD

Source: Internet
Author: User

Press NUMPAD0 to toggle mode, press T to display different results;

Numpad0:: Tfmode :=!Tfmode AAA:= (tfmode=1?"AAAA":"BBBB") splashimage Off splashimage,"", X500 Y500 W200 B fs10 ct00ffff cw000000,%aaa%, , toggle mode hint Winset, Transparent, the, Ahk_class AutoHotkey2 sleep1300splashimage OffreturnT::ifTfmode MsgBox1111  ElseMsgBox222  return  

.

Press NUMPAD0 to toggle mode, press T to display different results;

[Plain]View PlainCopy 
  1. NUMPAD0::
  2. Tfmode:=!tfmode
  3. aaa:= (tfmode=1? ") AAAA ":" BBBB ")
  4. Splashimage OFF
  5.     splashimage, " ",x500 y500 w200 b  fs10 ct00ffff cw000000,%aaa%, ,  Toggle mode prompt   
  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

Simplified code example that mimics the pattern of VIMD

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.