#IfWinActive ahk_class LaunchUnrealUWindowsClient
F1::
MouseGetPos, mouseX, mouseY
PixelGetColor, color, %mouseX%, %mouseY%, RGB
StringRight color,color,10 ;
tooltip, %mouseX%,%mouseY%颜色是:%color%
return
XButton1::
KeyWait, G, T2
if !(a := !a)
Reload
SetTimer, pressA, 0
SetTimer, pressB, 0
SetTimer, pressC, 0
SetTimer, pressD, 0
SetTimer, pressE, 0
SetTimer, pressF, 0
SetTimer, pressG, 0
SetTimer, pressH, 0
SetTimer, pressI, 0
SetTimer, pressJ, 0
pressA:
send v
if ( GetColor(742,737)=="0x650412" ) ;超神夜叉
{
send ]4
}
return
pressB:
send 44
return
pressC:
if ( GetColor(757,736)=="0xCE0D19" ) ;夜叉
{
send ]4
}
return
pressD:
if ( GetColor(760,737)=="0x108FF1" ) ;修罗
{
send ]4
}
return
pressE:
if ( GetColor(748,745)=="0x264B83" ) ;跟上面不同位置的修罗
{
send ]4
}
return
pressF:
if ( GetColor(747,553)=="0x36DAFF" ) ;掠夺,想手动掠夺的给里面的坐标随便瞎打几个数就行了
{
send f4
}
return
pressG:
if ( GetColor(758,736)=="0xB50BC0" and GetColor(746,555)=="0x6D81F3") ;前面一个是罗刹后面一个是破裂
{
send f4
}
return
pressH:
if ( GetColor(749,745)=="0x4D1061" and GetColor(736,555)=="0x43B4DF") ;跟上面不同位置的,前面一个是罗刹后面一个是破裂
{
send f4
}
return
pressI:
if ( GetColor(756,737)=="0x1C1C1C" ) ;黑色夜叉
{
send [
}
if ( GetColor(604,797)=="0x5E5E5E" ) ;换上垃圾武器灵核脱掉,放个紫色V后把内力打成1,这样V变成黑色,必须是正在冷却读条的黑色V,如果期间V冷却好了,就自己再放一个。取偏左的冷却中的黑色V,这样回内更好
{
send [
}
return
pressJ:
if ( GetColor(567,727)=="0x2A2951" ) ;戒型锁
{
send 2
}
return
;抓取颜色函数,在上面脚本中调用。
GetColor(x,y)
{
PixelGetColor, color, x, y, RGB
StringRight color,color,10 ;
return color
}
XButton2::
SetTimer, pressA, Off
SetTimer, pressB, Off
SetTimer, pressC, Off
SetTimer, pressD, Off
SetTimer, pressE, Off
SetTimer, pressF, Off
SetTimer, pressG, Off
SetTimer, pressH, Off
SetTimer, pressI, Off
SetTimer, pressJ, Off
SetTimer, press1, 1
press1:
send 424]
send 424]
if ( GetColor(752,738)=="0x494949" ) ;换垃圾装备,放超神然后内力打空,右键变黑色时候取。这样超神后没内力了会自动左键
{
send [
}
if ( GetColor(756,737)=="0x1C1C1C" ) ;黑色夜叉
{
send [
}
if ( GetColor(604,797)=="0x5E5E5E" ) ;换上垃圾武器灵核脱掉,放个紫色V后把内力打成1,这样V变成黑色,必须是正在冷却读条的黑色V,如果期间V冷却好了,就自己再放一个。取偏左的冷却中的黑色V,这样回内更好
{
send [
}
Return
XButton2 up::
SetTimer, press1, Off
Return
~!z::
click
send f
sleep 10
Return
EmptyMem(PID="Client.exe or 剑灵 or AHK.exe Rocks"){
pid:=(pid="Client.exe or 剑灵 or AHK.exe Rocks") ? DllCall("GetCurrentProcessId") : pid
h:=DllCall("OpenProcess", "UInt", 0x001F0FFF, "Int", 0, "Int", pid)
DllCall("SetProcessWorkingSetSize", "UInt", h, "Int", -1, "Int", -1)
DllCall("CloseHandle", "Int", h)
}
Return