#IfWinActive ahk_class LaunchUnrealUWindowsClient
F1::
MouseGetPos, mouseX, mouseY
PixelGetColor, color, %mouseX%, %mouseY%, RGB
StringRight color,color,10 ;
tooltip, %mouseX%,%mouseY%颜色是:%color%
return
XButton2::
XButton1::
#Persistent
SetTimer, pressN, 0
pressN:
if ( GetColor(687,764)=="0xFACA75" ) ;
{
send {tab}
sleep 1
}
else
{
if ( GetColor(753,625)=="0x00B8FE") ;
{
send t
sleep 100
}
else
{
if ( GetColor(743,827)=="0x767070" ) ;
{
send z
}
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
}