Free Tools: Pastebin.xyz Disposable Email SEO Tools Private Pastebin
81 Hits total
autoit Language
23.695 Author
close

ahktest

This is a quick overview of some features

  1. #include, ../submodules/TapHoldManager/Lib/TapHoldManager.ahk
  2.  
  3. TAP_TIME := 150
  4. MAX_TAPS := 1
  5. PREFIX := "$"
  6. Manager := new TapHoldManager(TAP_TIME, -1, MAX_TAPS, PREFIX)
  7.  
  8. ; Constants
  9. PRESSED := "PRESSED"
  10. HOLDING := "HOLDING"
  11. NONE := "NONE"
  12.  
  13. ; Layers
  14. LayerStates := Object("w", NONE)
  15.  
  16. ChangeState(key, isHold, taps, state){
  17.   if (isHold && state == 1) {
  18.     LayerStates[key] := HOLDING
  19.     if (GetKeyState("v")) {
  20.       msgbox LOL
  21.     }
  22.   } else {
  23.     LayerStates[key] := NONE
  24.     send %key%
  25.   }
  26. }
  27.  
  28. BindKey(key){
  29.   global Manager
  30.   Manager.Add(key, func("ChangeState").Bind(key))
  31. }
  32.  
  33. BindKey("w")
  34.  
Parsed in 0.007 seconds