ahk吧 关注:855贴子:2,633
  • 9回复贴,共1

AHK 剑灵游戏

只看楼主收藏回复

#IfWinActive ahk_class LaunchUnrealUWindowsClient
XButton2::
{
v_Enable:=!v_Enable
If (v_Enable=0)
SetTimer, Label, Off
Else
SetTimer, Label, 1
}
Return
Label:
SetTimer, Label, 0
if ( GetColor(1243,963)=="0x54DDFF"and GetColor(1242,936)=="0x54DDFF") ;
{
sleep 750
loop 9
{
send {9 down}
sleep 30
send {9 up}
}
}
Return
GetColor(x,y)
{
PixelGetColor, color, x, y, RGB
StringRight color,color,10 ;
return color
}
F11::Pause


IP属地:浙江1楼2020-03-30 18:08回复
    中间那个if 我本来想满足两个条件 使用 Send 9 但是不能用,如果不删除and GetColor(1242,936)=="0x54DDFF" 就能实现使用, 请问我这边哪里错了!


    IP属地:浙江2楼2020-03-30 18:10
    收起回复
      括号删了


      IP属地:江苏3楼2020-04-07 11:30
      回复
        能问一下你们的AHK是官网下的吗,我的ahk里好像没有Getcolor这个命令


        IP属地:江苏4楼2020-04-07 11:50
        回复
          Getcolor这感觉就是说根据后面坐标点,色号,而触发xx键


          IP属地:湖北来自Android客户端5楼2020-12-16 08:10
          回复
            达到两个取色就一直按9么?


            IP属地:湖北来自Android客户端6楼2020-12-18 08:34
            回复
              R我懂了
              初级粉丝1
              #IfWinActive ahk_class LaunchUnrealUWindowsClient
              XButton2::
              {
              v_Enable:=!v_Enable
              If (v_Enable=0)
              SetTimer, Label, Off
              Else
              SetTimer, Label, 1
              }
              Return
              Label:
              SetTimer, Label, 0
              if ( GetColor(1243,963)=="0x54DDFF" and GetColor(1242,936)=="0x54DDFF")
              {
              sleep 750
              loop 9
              {
              send {9 down}
              sleep 30
              send {9 up}
              }
              }
              Return
              GetColor(x,y)
              {
              PixelGetColor, color, x, y, RGB
              StringRight color,color,10 ;
              return color
              }
              F11::Pause


              IP属地:湖北7楼2022-02-25 01:13
              回复
                请问AHK的取色工具用什么哦,坐标取色


                IP属地:四川8楼2022-02-28 10:13
                回复
                  v_Enable:= ! v_Enable 你这句不对 后面判断会出问题 !前后都是有空格的
                  你是想写一键开关SetTimer, Label, 0 这是多余的不需要 前面你在判断的时候有写一个
                  后面看不懂你想实现什么操作


                  IP属地:贵州9楼2022-07-12 15:04
                  回复