目的
无限火力太费手,普通的连发容易检测
代码 管理员运行
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
;SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetBatchLines -1 ; 确保此方法最高的效率.
#IfWinActive ahk_class RiotWindowClass
keyLol:=[]
MyVar:="a,q,w,2"
time1:=15
time2:=25
~$a::
Sort, MyVar, Random D,
Loop, parse, MyVar, `,
{
keyLol[A_Index] := A_LoopField
}
for k,v in keyLol
{
SendInput,{%v% down}
Random, OutputVar,%time1%,%time2%
sleep(OutputVar)
SendInput,{%v% up}
Random, OutputVar,%time1%,%time2%
sleep(OutputVar)
}
return
Numpad5::
Reload
Return
sleep(duration)
{
SleepDuration:= duration ;这里有时可以根据下面的值进行细微调整(例如 2 与 3 的区别).
DllCall("Sleep", UInt, SleepDuration) ; 必须使用 DllCall 而不是 Sleep 命令.
DllCall("WinmmtimeEndPeriod", UInt, TimePeriod) ; 应该进行调用来让系统恢复正常.
}
/*
SendInput,{q down}
Random, OutputVar,%time1%,%time2%
sleep(OutputVar)
SendInput,{e down}
Random, OutputVar,%time1%,%time2%
sleep(OutputVar)
SendInput,{e up}
SendInput,{q up}
*/
说明
触发快捷键: a
随机延时变量:time1和 time2
连发键修改变量: MyVar
如果是牛头二连等有顺序的按键:参考注释的代码,游戏里面把按一个键触发前一个键的选项勾选
长期使用,稳定有效
干的不错 加油
厉害 ,难怪我以前用ahk写总是没作用 …学习了