Skip to content

Instantly share code, notes, and snippets.

@bitdust
Created November 25, 2014 14:33
Show Gist options
  • Save bitdust/cd514c606391c092210d to your computer and use it in GitHub Desktop.
Save bitdust/cd514c606391c092210d to your computer and use it in GitHub Desktop.
用于dota改键,尤其支持对卡尔的技能一键释放操作
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <[email protected]>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
stopped = 1 ;运行状态
suspend On
#IfWinActive, ahk_class Warcraft III
; ========================================================
; 控制功能
; ========================================================
ScrollLock:: ; 改键开
suspend permit
suspend Off
stopped = 0
return
Home:: ; 改键关
suspend permit
suspend On
stopped = 1
return
Lwin:: ; 杀死win键,改为一键必杀
;suspend permit
;KeyWait LButton
;sleep 1500
;send b
;sleep 200
;send {LButton}
;send {Numpad7}
;sleep 100
;send {LButton}
return
; ========================================================
; 技能键
; ========================================================
$q::
send q
return
$w::
send w
return
$e::
send e
return
$r::
send r
return
CapsLock:: ; 一键变身!
;send r
;send y
;send f
return
; ========================================================
; 年轻的卡尔
; ========================================================
^t:: ; 天火 按住ctrl+t释放,以下技能类似
send eeer
sleep 250
send t
return
^d:: ; 陨石
send eewr
sleep 250
send d
return
^b:: ; 超声波
send qwer
sleep 150
send b
return
^f:: ; 火人
send qeer
sleep 150
send f
return
^c:: ; 雷暴
send wwwr
sleep 250
send c
return
^y:: ; 速冻
send qqqr
sleep 150
send y
return
^v:: ; 幽灵漫步 有bug,暂不自动释放
send qqwr
sleep 150
send v
return
^g:: ; 冰墙
send qqer
sleep 150
send g
return
^z:: ; 灵动迅捷
send wwer
sleep 150
send z
return
^x:: ; 飓风
send wwqr
sleep 250
send x
return
; ========================================================
; 物品栏
; ========================================================
space::
send {Numpad7}
return
$MButton::
send {Numpad7}
return
$3::
send {Numpad8}
return
$4::
send {Numpad4}
return
$5::
send {Numpad5}
return
; ========================================================
; 快捷功能
; ========================================================
^!r:: ; Ctrl+Alt+r 一键random
send {Enter}-random{Enter}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment