求一个窗口循环找图左键点击的按键脚本 手机按键精灵找图点击

577℃ JENNY

求一个窗口循环找图左键点击的按键脚本手机按键精灵找图点击

求按键精灵两点循环点击左键点击脚本

展开全部

do

FindPic 0,0,1024,768,"Attachment:\图1.bmp",0.9,intX,intY

If intX > 0 And intY > 0 Then

MoveTo intX,intY

LeftClick 1

End If

FindPic 0,0,1024,768,"Attachment:\图2.bmp",0.9,intX,intY

If intX > 0 And intY > 0 Then

MoveTo intX,intY

LeftClick 1

End If

loop

按键精灵,求同时2个循环。鼠标左键自动循环点击,同时自动找图,找到图后鼠标自动移到图片左键点击的脚本

Do

Delay 200

MoveTo x, y//这里是你要点击的地方

LeftClick 1

Delay 500

FindPic 0,0,1024,768,"Attachment:\图一.bmp",0.9,intX,intY

If intX > 0 And intY > 0 Then //这里是找图,找到了就执行下面的移动跟点击

MoveTo intX+5, intY+10

LeftClick 1

Goto xiamian//这里是跳出循环

End If

Loop//这是无限循环

Rem xiamian

求按键精灵两点循环点击左键的脚本

while true

moveto x1,y1

leftclick 1

delay n1

moveto x2,y2

leftclick 1

delay n2

endwhile

上面的代码就可以实现你要的功能

x1,y1和x2,y2表示你要循环点击的两点的坐标

n1和n2表示点击一次后延迟时间再点击下一个点 单位:毫秒

按键精灵脚本,无限循环 先执行一个开头,a循环: 然后找图,点击无限循环 直到找不到这个图 然后

 希望可以帮到你:

线程图a=找图1()

线程图b=找图2()

function 找图1

    do

    findpic 0,0,1024,768,"attachment:\a.bmp",0.9,intx,inty

    if intx > 0 and inty > 0 then

    //执行命令

    exit do

    end if

    loop

end function

function 找图2

    do

    findpic 0,0,1024,768,"attachment:\b.bmp",0.9,intx,inty

    if intx > 0 and inty > 0 then

    //执行命令

    end if

    loop

end function

t = now

do

    if datediff("s", t, now) >= 3 then

    //执行其它命令

    exit do

    else  

    findpic 0,0,1024,768,"attachment:\c.bmp",0.9,intx,inty

    if intx > 0 and inty > 0 then

    //执行命令

    exit do

    end if

    end if

loop

delay 200

restartscript