ahk吧 关注:864贴子:2,675
  • 0回复贴,共1

按下启动松开停止,怎么松开就马上停止运行,

只看楼主收藏回复

我的这个松开后始终 都要执行完才会停止
#IfWinActive ahk_exe Client.exe
F1::
MouseGetPos, mouseX, mouseY
PixelGetColor, color, %mouseX%, %mouseY%, RGB
StringRight color,color,10 ;
tooltip, %mouseX%,%mouseY%颜色是:%color%
return
F2::Suspend
RButton::
#Persistent
SetTimer, XAction, 0
XAction:
if(GetColor(672,788)==0xB6868B)
{
Send 1
}
else
if(GetColor(711,787)==0xFFFFE6)
{
Send 2
}
else
if(GetColor(876,597)==0x839F50)
{
Send f
}
else
if(GetColor(749,789)==0x6A81BC)
{
Send 3
}
if(GetColor(874,605)==0xFEBC7B)
{
Send f
}
if(GetColor(409,411)==0x564C30)
{
Send x
}
if(GetColor(1137,665)==0x3F3E3E)
{
Send f
}
{
Send [
Send ]
Send [
Send ]
Send [
Send ]
Send [
Send ]
Send [
Send ]
Send [
Send ]
}
Return
RButton UP::
SetTimer, XAction, Off
Return
GetColor(x,y)
{
PixelGetColor, color, x, y, RGB
StringRight color,color,10
return color
}


IP属地:重庆1楼2023-01-22 22:52回复