XButton1::
#Persistent
SetTimer, pressN, 20
pressN:
{
send 33
send 999
}
if ( GetColor(1358,965)=="0xB87950" ) ;
{
send 0
}
if ( GetColor(1098,962)=="0xFDCFA0" ) ;
{
send 2
}
if ( GetColor(960,915)=="0xFFF5C9" ) ;
{
send 4
}
if not ( GetColor(960,915)=="0xFFF5C9" ) ;
{
send 5
}
Return
;抓取颜色函数,在上面脚本中调用。
GetColor(x,y)
{
PixelGetColor, color, x, y, RGB
StringRight color,color,10 ;
return color
}
XButton1 up::
SetTimer, pressN, OFF
return
#MaxHotkeysPerInterval 1000
#Persistent
SetTimer, pressN, 20
pressN:
{
send 33
send 999
}
if ( GetColor(1358,965)=="0xB87950" ) ;
{
send 0
}
if ( GetColor(1098,962)=="0xFDCFA0" ) ;
{
send 2
}
if ( GetColor(960,915)=="0xFFF5C9" ) ;
{
send 4
}
if not ( GetColor(960,915)=="0xFFF5C9" ) ;
{
send 5
}
Return
;抓取颜色函数,在上面脚本中调用。
GetColor(x,y)
{
PixelGetColor, color, x, y, RGB
StringRight color,color,10 ;
return color
}
XButton1 up::
SetTimer, pressN, OFF
return
#MaxHotkeysPerInterval 1000