#IfWinActive ahk_class LaunchUnrealUWindowsClient
F1::
MouseGetPos, mouseX, mouseY
PixelGetColor, color, %mouseX%, %mouseY%, RGB
StringRight color,color,10 ;
tooltip, %mouseX%,%mouseY%颜色是:%color%
return
XButton1::
#Persistent
SetTimer, pressN, 0
pressN:
if ( GetColor(814,955)=="0xF6A75C" ) ; 有满月释放满月
{
send {tab}
sleep 1
}
else
{
if ( GetColor(904,714)=="0x00B6FE") ; 有火龙指示器释放火龙
{
send t
sleep 100
}
else
{
if ( GetColor(969,1035)=="0x44D3E8" ) ;天雷令
{
send c
}
if ( GetColor(1013,1031)=="0x604400" ) ;凤翼
{
send v
}
if ( GetColor(1198,913)=="0x504E4C" ) ;火龙
{
send t
}
if ( GetColor(1190,903)=="0xFFF22C" ) ;火龙
{
send t
}
if ( GetColor(1192,910)=="0x484748" and GetColor(996,976)=="0xF2D443") ;(当火龙cd触发焦热斩)
{
send 4
}
if ( GetColor(1198,913)=="0x504E4C" and GetColor(924,1034)=="0xD4D2C6" ) ;(当火龙cd触发御剑连斩)
{
send x
}
if ( GetColor(877,1034)=="0xF3EDEB" ) ;天崩
{
send z
}
if ( GetColor(1233,905)=="0x5FB2F3" ) ; (火龙闪,剑术姿态左键暴击或者刺剑打2下才出来的那个F)
{
send f
}
send r
}
}
Return
XButton2 UP::
XButton1 UP::
SetTimer, pressN, Off
Return
;抓取颜色函数,在上面脚本中调用。
GetColor(x,y)
{
PixelGetColor, color, x, y, RGB
StringRight color,color,10 ;
return color
}
F1::
MouseGetPos, mouseX, mouseY
PixelGetColor, color, %mouseX%, %mouseY%, RGB
StringRight color,color,10 ;
tooltip, %mouseX%,%mouseY%颜色是:%color%
return
XButton1::
#Persistent
SetTimer, pressN, 0
pressN:
if ( GetColor(814,955)=="0xF6A75C" ) ; 有满月释放满月
{
send {tab}
sleep 1
}
else
{
if ( GetColor(904,714)=="0x00B6FE") ; 有火龙指示器释放火龙
{
send t
sleep 100
}
else
{
if ( GetColor(969,1035)=="0x44D3E8" ) ;天雷令
{
send c
}
if ( GetColor(1013,1031)=="0x604400" ) ;凤翼
{
send v
}
if ( GetColor(1198,913)=="0x504E4C" ) ;火龙
{
send t
}
if ( GetColor(1190,903)=="0xFFF22C" ) ;火龙
{
send t
}
if ( GetColor(1192,910)=="0x484748" and GetColor(996,976)=="0xF2D443") ;(当火龙cd触发焦热斩)
{
send 4
}
if ( GetColor(1198,913)=="0x504E4C" and GetColor(924,1034)=="0xD4D2C6" ) ;(当火龙cd触发御剑连斩)
{
send x
}
if ( GetColor(877,1034)=="0xF3EDEB" ) ;天崩
{
send z
}
if ( GetColor(1233,905)=="0x5FB2F3" ) ; (火龙闪,剑术姿态左键暴击或者刺剑打2下才出来的那个F)
{
send f
}
send r
}
}
Return
XButton2 UP::
XButton1 UP::
SetTimer, pressN, Off
Return
;抓取颜色函数,在上面脚本中调用。
GetColor(x,y)
{
PixelGetColor, color, x, y, RGB
StringRight color,color,10 ;
return color
}