Delay 16 MoveTo 614,578 Delay 16 MoveTo 618,585 Delay 15 MoveTo 619,587 Delay 16 MoveTo 621,592 Delay 15 MoveTo 624,597 MoveTo 624,598 Delay 16 MoveTo 625,601 MoveTo 626,603 Delay 16 MoveTo 628,606 Delay 15 MoveTo 628,607 Delay 16 MoveTo 628,609 MoveTo 628,615 Delay 16 MoveTo 629,618 MoveTo 632,622 Rem ==========以上是按键精灵录制的内容========== Gosub YiDaoZhongJian SaveMousePos //移到(0,0)点,免得鼠标挡住说明窗口 MoveTo 0,0 //按顺序执行各个功能模块 Gosub ShuoMing Gosub XinJian Gosub JieShao1 //Gosub JieShao2 Gosub JieShao3 Gosub ZhiZuo Gosub BaoCunTuiChu EndScript Sub OnScriptExit //收尾的工作 Plugin File.DeleteFile("../qmacro.ini") Plugin File.MoveFile("../qmacro.ini.bak","../qmacro.ini") Return //功能模块0:介绍这个脚本的基本情况 Sub ShuoMing TiShiXinXi = "【按键精灵】动起来教程 1.0版,制作:vrBrothers.Leo"&vbCrLf&"本教程完全自动,请勿在脚本运行时接触键盘和鼠标!" Gosub TiShi TiShiXinXi = "本讲介绍如何建立你的脚本;所需时间:1分30秒" Gosub TiShi TiShiXinXi = "废话不多说,我先点击新建按钮新建一个脚本" Gosub TiShi TiShiXinXi = "偷偷告诉你个小技巧:鼠标移动到按钮上停留2秒,即可看到详细说明" Gosub TiShi Return ShuoMing //功能模块1:主界面移动鼠标到新建按钮,并按下鼠标打开脚本编辑器 Sub XinJian //新建按钮的相对地址 RestoreMousePos bxOpp = 141:byOpp = 47 Gosub GetABPoint //Call MessageBox(ax&"|"&ay&"|"&bx&"|"&by) Gosub ManManYiDong LeftClick 1 Delay 2000 //打开了脚本编辑器,介绍脚本编辑器的功能 TiShiXinXI = "现在您看到的是脚本编辑界面"&vbCrLf&"这里是创造脚本的舞台" Gosub TiShi TiShiXinXI = "脚本编辑器分为4个主要区域" Gosub TiShi TiShiXinXI = "上方是工具栏,都是一些制作脚本的功能按钮" Gosub TiShi TiShiXinXI = "左边是命令面板,通过界面操作即可制作脚本" Gosub TiShi TiShiXinXI = "中间是脚本的代码区域,普通视图全中文,谁叫俺是中国人的作品呢 ^_^ " Gosub TiShi TiShiXinXI = "右边是脚本的属性设置区域,可以设定脚本热键和运行方式" Gosub TiShi Return XinJian //功能模块2:脚本编辑器界面,介绍键盘命令的使用 Sub JieShao1 TiShiXinXI = "请看键盘命令面板"&vbCrLf&"可以模拟键盘的操作" Gosub TiShi //演示键盘命令分类,说明:by要减去20,因为目前抓取区域不会计算标题栏的20个象素 RestoreMousePos bxOpp=131:byOpp=135 Gosub GetABPoint Gosub ManManYiDong LeftClick 1 Delay 3000 LeftClick 1 Return JieShao1 //功能模块3:脚本编辑器界面,介绍鼠标命令的使用 Sub JieShao2 TiShiXinXI = "请看鼠标命令面板"&vbCrLf&"可以模拟鼠标的操作" Gosub TiShi //演示鼠标命令分类 RestoreMousePos bxOpp=131:byOpp=162 Gosub GetABPoint Gosub ManManYiDong