1. 按键精灵脚本怎么写
好像很容易啊
FindPic 0,0,1024,768,"Attachment:\神盾1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
//找到图一的话就找图2
FindPic 0,0,1024,768,"Attachment:\神盾2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intx, inty
Delay 100
LeftClick 1
Goto 结束
//找到一个就完了吧?
End If
End If
//图1找不到,下面找图3
FindPic 0,0,1024,768,"Attachment:\神盾3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
FindPic 0,0,1024,768,"Attachment:\神盾4.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intx, inty
Delay 100
LeftClick 1
Goto 结束
End If
End If
FindPic 0,0,1024,768,"Attachment:\神盾5.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
FindPic 0,0,1024,768,"Attachment:\神盾6.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intx, inty
Delay 100
LeftClick 1
Goto 结束
End If
End If
Rem 结束
2. 按键精灵判断怎么写
在按键精灵中判断语句的写法:
指令X
FindPic 0,0,1024,768,"Attachment:\图片1.bmp",1,intX,intY
If intX > 0 And intY > 0 Then
//要执行的代码
endif
FindPic 0,0,1024,768,"Attachment:\图片2.bmp",1,intX,intY
If intX > 0 And intY > 0 Then
//要执行的代码
endif
FindPic 0,0,1024,768,"Attachment:\图片3.bmp",1,intX,intY
If intX > 0 And intY > 0 Then
//要执行的代码
endif
3. 第一次写脚本按键精灵 判断循环 怎么写啊 大神看下怎么回事
//下面是源代码,复制上去就能使用,不过要截几张图要在官网下载手机助手电脑版,然后截图,只截那文字的图片即可。
Dim intX, intY
do
FindPic 0, 0, 0, 0, "Attachment:副本.png", "000000", 0, 0.9, intX, intY
If intX > -1 And intY > -1 Then
Tap intx+2,inty+2
Delay 300
t = now
Do
FindPic 0, 0, 0, 0, "Attachment:技能.png", "000000", 0, 0.9, intX, intY
Delay 300
If datediff("s",t,now)>=10 then exit do //超时几秒没进入副本就退出重新进
Loop Until intx > 0
If intx > 0 Then
t = now
Do
FindPic 0, 0, 0, 0, "Attachment:技能.png", "000000", 0, 0.9, intX, intY
If intx > 0 Then Tap intx + 2, inty + 2
Delay 300
If datediff("s",t,now)>=60 then exit do //副本打怪最大超时几秒
Loop Until intx 0 Then
Tap intx + 2, inty + 2
Delay 500
t = now
Do
FindPic 0, 0, 0, 0, "Attachment:确定.png", "000000", 0, 0.9, intX, intY
Delay 300
If datediff("s",t,now)>=-5 then exit do
Loop Until intx > 0
If intx>0 then tap intx+2,inty+2
End If
End If
End If
Delay 200
loop
4. 按键精灵的IF判断语句有没有长度限制,今天我做了一个if XXX > 0 and
通常编程语言的优先级是and高于or,所以它会先运算 XXX > 0 and XXX > 0的结果,再算or的结果。这就像2+3*4,会先算3*4,而不是2+3。所以
If XXX > 0 and XXX > 0 or XXX 0 and XXX = XXX Then就相当于
If (XXX > 0 and XXX > 0) or (XXX 0 and XXX = XXX) Then
5. 按键精灵安卓版怎么写标记和跳转代码
//直接打开微信朋友圈
RunApp "com.tencent.mm", ".plugin.sns.ui.SnsTimeLineUI"
//等待启动微信朋友圈
Delay 1500
Dim rukouX, rukouY, zanX, zanY
//定义入口和点赞坐标
FindPic 0, 0, 0, 0, "Attachment:rukou.png", 1, 0.9, rukouX, rukouY
//查找入口
If rukouX > 0 And rukouY > 0 Then
//找到入口则
TracePrint "坐标为" rukouX &","& rukouY
//调试窗口显示坐标数据
Tap rukouX,rukouY
//点击入口按钮
Delay 200
FindPic 0, 0, 0, 0, "Attachment:zan.png", 1, 0.9, zanX, zanY
//查询点赞按钮是否存在
If zanX > 0 And zanY > 0 Then
//如果存在则
TracePrint "坐标为"zanX &"," zanY
//调试窗口显示坐标数据
Tap zanX,zanY
//点击点赞按钮
Else
//如果没找到则
Delay 1000
Swipe 729,1700, 729,1200
//从下往上滑动屏幕500像素位置
End If
End If
6. 按键精灵程序怎么写
这个是比较难为人的,因为你要求程序检测是的组合键,这样就增加了,写这个功能的难度,需要调用系统api进行按键状态检测,所以一般按键精灵高手不一定写的出来,能写出来的都是编程高手,根本就不用按键精灵这样傻瓜式的脚本语言写了。所以不要太难的功能,如果是if按下某个键这样提示就简单多了。
如果是分开左右的按键码你可以看看软件给予你的按键码定义,如下图
通用的Ctrl键都是按键码17,如果是分左右的就是 162和163.
转载请注明出处育才学习网 » 按键精灵and怎么写