#IfWinActive ahk_class LaunchUnrealUWindowsClient
F1::
MouseGetPos, mouseX, mouseY
PixelGetColor, color,754,1024, RGB
StringRight color,color,10 ;
tooltip, %mouseX%,%mouseY%颜色是:%color%
return
RButton::
SetTimer, pressA, 0
SetTimer, pressB, 20
pressA:
if(isF == 1 and isF500 = 1){
FV := GetColor(919,1025)
if(FV == "0xC8895D" or FV == "0x564031" ){
send v
}
FZ := GetColor(754,1024)
if(FZ == "0xD99492" or FZ == "0x5C4443" ){
send z
}
}
send 2{-}
if(isF <>1){
send {=}
}
return
pressB:
send xc
if(GetColor(919,953) == "0xC77CE9"){;4好了
send 4
}
if(GetColor(927,797) == "0xFF4000"){;5层火
send 1
}
if(GetColor(1195,689) == "0x5E393D"){;双龙好了
send f
}
return
RButton up::
SetTimer, pressA, off
SetTimer, pressB, off
send {-}{-}
return
;按住左键 不打寒冰,0.5秒后自动zv
~LButton::
isF := 1
sleep 400
GetKeyState,State,LButton,P
If (State<>"U") ;
{
isF500 := 1
}
return
LButton up::
isF := 0
isF500 := 0
return
;按住V自动放冰花,不管在什么状态下
v::
loop
{
send v
sleep 200
GetKeyState,State,v,P
If (State="U") ;
{
Break
}
send {=}
}Until Not GetKeyState("v", "P")
;按住Z自动放击倒,不管在什么状态下
z::
loop
{
send z
sleep 200
GetKeyState,State,z,P
If (State="U") ;
{
Break
}
send {=}
}Until Not GetKeyState("z", "P")
;抓取颜色函数,在上面脚本中调用。
GetColor(x,y)
{
PixelGetColor, color, x, y, RGB
StringRight color,color,10 ;
return color
}
不知道错在哪
F1::
MouseGetPos, mouseX, mouseY
PixelGetColor, color,754,1024, RGB
StringRight color,color,10 ;
tooltip, %mouseX%,%mouseY%颜色是:%color%
return
RButton::
SetTimer, pressA, 0
SetTimer, pressB, 20
pressA:
if(isF == 1 and isF500 = 1){
FV := GetColor(919,1025)
if(FV == "0xC8895D" or FV == "0x564031" ){
send v
}
FZ := GetColor(754,1024)
if(FZ == "0xD99492" or FZ == "0x5C4443" ){
send z
}
}
send 2{-}
if(isF <>1){
send {=}
}
return
pressB:
send xc
if(GetColor(919,953) == "0xC77CE9"){;4好了
send 4
}
if(GetColor(927,797) == "0xFF4000"){;5层火
send 1
}
if(GetColor(1195,689) == "0x5E393D"){;双龙好了
send f
}
return
RButton up::
SetTimer, pressA, off
SetTimer, pressB, off
send {-}{-}
return
;按住左键 不打寒冰,0.5秒后自动zv
~LButton::
isF := 1
sleep 400
GetKeyState,State,LButton,P
If (State<>"U") ;
{
isF500 := 1
}
return
LButton up::
isF := 0
isF500 := 0
return
;按住V自动放冰花,不管在什么状态下
v::
loop
{
send v
sleep 200
GetKeyState,State,v,P
If (State="U") ;
{
Break
}
send {=}
}Until Not GetKeyState("v", "P")
;按住Z自动放击倒,不管在什么状态下
z::
loop
{
send z
sleep 200
GetKeyState,State,z,P
If (State="U") ;
{
Break
}
send {=}
}Until Not GetKeyState("z", "P")
;抓取颜色函数,在上面脚本中调用。
GetColor(x,y)
{
PixelGetColor, color, x, y, RGB
StringRight color,color,10 ;
return color
}
不知道错在哪