F1::
MouseGetPos, mouseX, mouseY
PixelGetColor, color, %mouseX%, %mouseY%, RGB
StringRight color,color,10 ;
tooltip, %mouseX%,%mouseY%颜色是:%color%
return
e::
Loop
{
GetKeyState,State,XButton1,P
If (State="U") ;
{
Break
}
if ( GetColor(1169,887)=="0xC6C1B9" ) ;
{
e=={f5}
}
else
if ( GetColor(1178,879)=="0x2A2327" ) ;
{
e={f6}
}
}
Return
$f5:: ;
Loop ;
{
Sendplay {f11 down} ;
Sleep,160
Sendplay {f11 up} ;
Sleep,180
Sendplay {f12 down} ;
Sleep,165
Sendplay {f12 up} ;
Sleep,35
if ( GetColor(1178,879)=="0x2A2327" ) ;
{
e={f6}
}
}
Until Not GetKeyState("f5","P")
$f6:: ;
Loop ;
{
Sendplay {f11 down} ;
Sleep,160
Sendplay {f11 up} ;
Sleep,50
Sendplay {f12 down} ;
Sleep,165
Sendplay {f12 up} ;
Sleep,35
if ( GetColor(1169,887)=="0xC6C1B9" ) ;
{
e={f5}
}
}
Until Not GetKeyState("f6","P")
;抓取颜色函数,在上面脚本中调用。
GetColor(x,y)
{
PixelGetColor, color, x, y, RGB
StringRight color,color,10 ;
return color
}
MButton::suspend
XButton2 up::pause
我想要的是 按住E取色相同跳到F5或F6循环并且连续执行F5或F6循环直到 取色相同在跳到F6或F5循环连续执行F6或F5直到取色相同在跳回F5或F6 直到松开E键结束
MouseGetPos, mouseX, mouseY
PixelGetColor, color, %mouseX%, %mouseY%, RGB
StringRight color,color,10 ;
tooltip, %mouseX%,%mouseY%颜色是:%color%
return
e::
Loop
{
GetKeyState,State,XButton1,P
If (State="U") ;
{
Break
}
if ( GetColor(1169,887)=="0xC6C1B9" ) ;
{
e=={f5}
}
else
if ( GetColor(1178,879)=="0x2A2327" ) ;
{
e={f6}
}
}
Return
$f5:: ;
Loop ;
{
Sendplay {f11 down} ;
Sleep,160
Sendplay {f11 up} ;
Sleep,180
Sendplay {f12 down} ;
Sleep,165
Sendplay {f12 up} ;
Sleep,35
if ( GetColor(1178,879)=="0x2A2327" ) ;
{
e={f6}
}
}
Until Not GetKeyState("f5","P")
$f6:: ;
Loop ;
{
Sendplay {f11 down} ;
Sleep,160
Sendplay {f11 up} ;
Sleep,50
Sendplay {f12 down} ;
Sleep,165
Sendplay {f12 up} ;
Sleep,35
if ( GetColor(1169,887)=="0xC6C1B9" ) ;
{
e={f5}
}
}
Until Not GetKeyState("f6","P")
;抓取颜色函数,在上面脚本中调用。
GetColor(x,y)
{
PixelGetColor, color, x, y, RGB
StringRight color,color,10 ;
return color
}
MButton::suspend
XButton2 up::pause
我想要的是 按住E取色相同跳到F5或F6循环并且连续执行F5或F6循环直到 取色相同在跳到F6或F5循环连续执行F6或F5直到取色相同在跳回F5或F6 直到松开E键结束