一,下載並安裝 AutoHotkey
AutoHotkey 主頁: https://autohotkey.com/
下載鏈接:
https://autohotkey.com/download/ahk-install.exe
在安裝 Autohotkey 過程中, 選擇安裝 UNICODE版本以及安裝位置。一直點下一步直到完成,選擇最後一個exit退出。
二. 如何創建一個腳本
1,右鍵點桌面空白處,點擊"新建"菜單,點擊裡面的"AutoHotkey Script"新建一個腳本,默認名字是 新建 AutoHotkey Script
2,給腳本重命名為自己喜歡的名字如:三光宏-靈活版.ahk
3,找到剛剛新建的腳本並右鍵點擊它,點擊"Edit Script"
4,打開的是記事本,先把默認的腳全都清空,然後複製黏貼以下三光宏代碼,保存。本宏的作用是,自動釋放2,3,4狀態技能,強制位移鍵(X)以及左鍵。1鍵和鼠標右鍵可以放三光/盾閃,或者別的取決於你的需要,長按三光可以自動走A。開關是F2 或鼠標側鍵2
<code>SetKeyDelay,10
SetMouseDelay,10
bStart
:=false
bLeft
:=true
Skill1
:{
,,{1},暗黑破壞神III
Send
1
Return
}
Skill2
:{
,,{2},暗黑破壞神III
Send
2
Return
}
Skill3
:{
,,{3},暗黑破壞神III
Send
3
Return
}
Skill4
:{
,,{4},暗黑破壞神III
Send
4
Return
}
ForceMove
:{
,,{x},暗黑破壞神III
Send
x
Return
}
MouseLButton
:{
Click
;鼠標左鍵
Return
}
Close(){
global
bStart
:=false
Skill1,off
SetTimer
Skill2,Off
SetTimer
Skill3,Off
SetTimer
Skill4,Off
SetTimer
ForceMove,Off
SetTimer
MouseLButton,Off
}
Start(){
global
=false){
bStart
:=true
Skill1, 210
Skill2, 220
Skill3, 230
Skill4, 240
ForceMove, 20
MouseLButton, 50
}
else{
Close()
}
}
::
::
{
Close()
}
Return
F2
::
::
Start()
Return
F3
::
::
=true){
=true){
bLeft
:=false
SetTimer
MouseLButton,Off
}else{
bLeft
:=true
MouseLButton, 50
}
}
Return
/<code>
4,找到剛剛保存的腳本並右鍵點擊它,點擊"Compile Script",就會生成對應的exe文件,你的第一個ahk宏生成了,右鍵管理員運行試一試吧。
關鍵字: 暗黑 MouseLButton 新建