好像很容易啊
FindPic0,0,1024,768,"Attachment:\神盾1.bmp",0.9,intX,intY
IfintX>0AndintY>0Then
//找到图一的话就找图2
FindPic0,0,1024,768,"Attachment:\神盾2.bmp",0.9,intX,intY
IfintX>0AndintY>0Then
MoveTointx,inty
Delay100
LeftClick1
Goto结束
//找到一个就完了吧?
EndIf
EndIf
//图1找不到,下面找图3
FindPic0,0,1024,768,"Attachment:\神盾3.bmp",0.9,intX,intY
IfintX>0AndintY>0Then
FindPic0,0,1024,768,"Attachment:\神盾4.bmp",0.9,intX,intY
IfintX>0AndintY>0Then
MoveTointx,inty
Delay100
LeftClick1
Goto结束
EndIf
EndIf
FindPic0,0,1024,768,"Attachment:\神盾5.bmp",0.9,intX,intY
IfintX>0AndintY>0Then
FindPic0,0,1024,768,"Attachment:\神盾6.bmp",0.9,intX,intY
IfintX>0AndintY>0Then
MoveTointx,inty
Delay100
LeftClick1
Goto结束
EndIf
EndIf
Rem结束
VB中的键码常数键码值描述-------------------------------------------------------------------vbKeyLButton1鼠标左键-------------------------------------------------------------------vbKeyRButton2鼠标右键-------------------------------------------------------------------vbKeyCancel3CANCEL键-------------------------------------------------------------------vbKeyMButton4鼠标中键-------------------------------------------------------------------vbKeyBack8Backspace键-------------------------------------------------------------------vbKeyTab9TAB键-------------------------------------------------------------------vbKeyClear12CLEAR键-------------------------------------------------------------------vbKeyReturn13Enter键-------------------------------------------------------------------vbKeyShift16Shift键-------------------------------------------------------------------vbKeyConterol17Ctrl键-------------------------------------------------------------------vbKeyMenu18菜单键-------------------------------------------------------------------vbKeyPause19PAUSE键-------------------------------------------------------------------vbKeyCapital20CAPSLOCK键-------------------------------------------------------------------vbKeyEscape27ESC键-------------------------------------------------------------------vbKeySpace32SPACEBAR键-------------------------------------------------------------------vbKeyPageUp33PAGEUP键-------------------------------------------------------------------vbKeyPageDown34PAGEDOWN键-------------------------------------------------------------------vbKeyEnd35END键-------------------------------------------------------------------vbKeyHome36HOME键-------------------------------------------------------------------vbKeyLeft37LEFTARROW键←-------------------------------------------------------------------vbKeyUp38UPARROW键↑-------------------------------------------------------------------vbKeyRight39RIGHTARROW键→-------------------------------------------------------------------vbKeyDown40DOWNARROW键↓-------------------------------------------------------------------vbKeySelect41SELECT键-------------------------------------------------------------------vbKeyPrint42PRINTSCREEN键-------------------------------------------------------------------vbKeyExecute43EXECUTE键-------------------------------------------------------------------vbKeySnapshot44SNAPSHOT键-------------------------------------------------------------------vbKeyInser45INSERT键-------------------------------------------------------------------vbKeyDelete46DELETE键-------------------------------------------------------------------vbKeyHelp47HELP键-------------------------------------------------------------------vbKey0480键-------------------------------------------------------------------vbKey1491键-------------------------------------------------------------------vbKey2502键-------------------------------------------------------------------vbKey3513键-------------------------------------------------------------------vbKey4524键-------------------------------------------------------------------vbKey5535键-------------------------------------------------------------------vbKey6546键-------------------------------------------------------------------vbKey7557键-------------------------------------------------------------------vbKey8568键-------------------------------------------------------------------vbKey9579键-------------------------------------------------------------------vbKeyA65A键-------------------------------------------------------------------vbKeyB66B键-------------------------------------------------------------------vbKeyC67C键-------------------------------------------------------------------vbKeyD68D键-------------------------------------------------------------------vbKeyE69E键-------------------------------------------------------------------vbKeyF70F键-------------------------------------------------------------------vbKeyG71G键-------------------------------------------------------------------vbKeyH72H键-------------------------------------------------------------------vbKeyI73I键-------------------------------------------------------------------vbKeyJ74J键-------------------------------------------------------------------vbKeyK75K键-------------------------------------------------------------------vbKeyL76L键-------------------------------------------------------------------vbKeyM77M键-------------------------------------------------------------------vbKeyN78N键-------------------------------------------------------------------vbKeyO79O键-------------------------------------------------------------------vbKeyP80P键-------------------------------------------------------------------vbKeyQ81Q键-------------------------------------------------------------------vbKeyR82R键-------------------------------------------------------------------vbKeyS83S键-------------------------------------------------------------------vbKeyT84T键-------------------------------------------------------------------vbKeyU85U键-------------------------------------------------------------------vbKeyV86V键-------------------------------------------------------------------vbKeyW87W键-------------------------------------------------------------------vbKeyX88X键-------------------------------------------------------------------。
创建脚本啊我只会最简单的你的屏幕是个坐标系先点有个坐标捕捉,把鼠标移动到你要脚本点击的位置ct+al+1这个点就存下来了然后编辑的时候选鼠标操作鼠标移动到这个点再选择一个延迟例如500ms再鼠标操作点个单击编辑好以后保存然后按F10好像启动脚本这个简单的脚本就是鼠标移动到你保存的那个点等0.5秒以后点击一下这个延迟时间设置很重要每两个操作之间最好都设置一个延迟里面有很多设置鼠标键盘都有点进去看了就知道只要懂了基本操作其他衍生的慢慢就会了很简单的。
VBSCalla=GetPixelColor(100,120)
VBSCallb=GetPixelColor(101,121)
VBSCallc=GetPixelColor(102,122)
Ifa=b
Ifa=c
MoveTo27750
LeftClick1
EndIf
复制上面的到源代码就可以了
//第一行括号内为x1,y1;第二行括号内为x2,y2;第三行括号内为x3,y3;MoveTo27750为鼠标移到xy
下面用and也可以
VBSCallGetCursorpos(100,120)
color1=GetPixelColor(100,120)
VBSCallGetCursorpos(101,121)
color2=GetPixelColor(101,121)
VBSCallGetCursorpos(102,122)
color3=GetPixelColor(102,122)
Ifcolor1=color2andcolor1=color3
MoveTo27750
LeftClick1
EndIf
SetSimMode2
BeginThread按7
Delay500
BeginThread按E
Sub按7()
Rema
KeyPress"7",1
Delay500
gotoa
EndSub
Sub按E()
remb
KeyPress"E",1
Delay3000
gotob
EndSub
如果是每个0.5秒按7,每隔3秒按E的话,用上面的,如果是按7以后隔0.5秒按E,再隔3秒的话,用下面的
SetSimMode2
Remgo
KeyPress"7",1
Delay500
KeyPress"E",1
For3
Delay1000
Next
Gotogo
按键精灵的鼠标动作录制是一项非常好用的功能,但因为鼠标点击的地方是固定死板的,且延迟时间无法调整,如果在后台脚本中添加一些专用代码,就可以调整点击频率和点击时间,甚至可以在安卓模拟器上使用模拟按压式点击,当然,这只是冰山一角,创造脚本为专业连续作业做准备才好玩呢!

按键精灵脚本代码大全:
小技巧:按Ctrl+F,输入命令,即可进行查找定位:
按键精灵命令使用方法:
键盘命令分为两大类:键盘模拟命令和键盘控制命令.键盘模拟命令可以模拟我们日常操作键盘的行为.操作键盘的动作分为三类:按下、弹起、按下并弹起.键盘控制命令可以在脚本执行过程中通过键盘控制脚本行为.
[KeyPress、KeyPressS、KeyPressH]
格式:KeyPress{键盘虚拟码},{次数}
解释:先"按下"再"弹起"键,模拟我们平时的"按键"操作
UserVarSetKeys="49|50|51""快捷键参数设置"//用户输入字符串参数,每一个快捷键设置用|隔开
KeyArrary=split(SetKeys,"|")
EnterKey=WaitKey()
SelectCaseint(EnterKey)
Caseint(KeyArrary(0))
FindPic0,0,1024,768,"Attachment:\1.bmp",0.9,intX,intY
IfintX>0AndintY>0Then
MoveTointX,intY
Delay50
LeftClick1
EndIf
ExitScript
Caseint(KeyArrary(1))
FindPic0,0,1024,768,"Attachment:\2.bmp",0.9,intX,intY
IfintX>0AndintY>0Then
MoveTointX,intY
Delay50
LeftClick1
EndIf
ExitScript
Caseint(KeyArrary(2))
FindPic0,0,1024,768,"Attachment:\3.bmp",0.9,intX,intY
IfintX>0AndintY>0Then
MoveTointX,intY
Delay50
LeftClick1
EndIf
ExitScript
EndSelect如上代码该符合你的要求
打开按键精灵,切换到源文件模式,把代码直接粘贴就好了.然后点击上面发布。生成小精灵就OK了。
但这只能是没有附件,没有界面,没有插件的源码可以。
如果有界面,你需要按照代码,画出界面来。然后将附件添加进去。如果有其他支持库,你必须要有支持库文件,放在按键精灵plugin目录下,如:Q语言大学按键精灵支持库.dll。
至于如何判断代码是不是包含这些,只需要点击调试。如直接通过,则可以直接发布成EXE小精灵。如果无法通过,可以在下方调试的脚本信息,查看需要一些什么
专业作者回答,请采纳。如有以问,请追问