按键精灵脚本优化(本人新手,自己看网上帖子弄了一个按键精灵的脚本,运行游戏以后发现好卡)

运行以后发现CPU还是好高。。。之前是4个的,我合成了一个,求大神告诉我一下怎么样能优化这个脚本让进程不要那么高。。。BeginThreadaaBeginThreadbb... 运行以后发现CPU还是好高。。。之前是4个的,我合成了一个,求大神告诉我一下怎么样能优化这个脚本让进程不要那么高。。。BeginThread aaBeginThread bbBeginThread ccBeginThread dd
Sub aaRem aFindPic 0,0,1024,768,"Attachment:\重登.bmp",0.9,intX,intYIf intX > 0 And intY > 0 Then KeyPress "Delete", 1Delay 1000KeyPress "H", 1KeyPress "U", 1KeyPress "A", 1KeyPress "N", 1KeyPress "G", 1KeyPress "J", 1KeyPress "I", 1KeyPress "N", 1KeyPress "G", 1KeyPress "Enter", 1Delay 1000KeyPress "Enter", 1Delay 1000KeyPress "Enter", 1Delay 1000KeyPress "Enter", 1Delay 1000KeyPress "Enter", 1Delay 1000KeyPress "Enter", 1Delay 1000KeyDown 18, 1KeyPress 56, 1KeyUp 18, 1Delay 1000KeyDown 18, 1KeyPress 55, 1KeyUp 18, 1Delay 1000KeyPress "Delete", 1End IfGoto aEnd Sub
Sub bbRem aFindPic 0,0,1024,768,"Attachment:\500.bmp",0.9,intX,intYIf intX > 0 And intY > 0 ThenKeyPress "Delete", 1Delay 1000KeyPress "PageUp", 1Delay 3000KeyPress "Delete", 1End IfGoto aEnd Sub
Sub ccRem aKeyPress "F6", 1Delay 200000Goto aEnd Sub
Sub ddRem aKeyPress "F5", 3Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Enter", 1Delay 500KeyPress "Enter", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Enter", 1Delay 500KeyPress "Enter", 1Delay 500KeyPress "Enter", 1Delay 500KeyPress "Enter", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Down", 1Delay 125KeyPress "Enter", 1Delay 125KeyPress "Enter", 1Delay 125KeyPress "Enter", 1Delay 125KeyPress "Enter", 1Delay 125KeyPress "Enter", 1Delay 125KeyPress "Enter", 1Delay 125KeyPress "Enter", 1Delay 125KeyPress "Enter", 1Delay 300000Goto aEnd Sub
展开
 我来答
yd6501151
2015-01-30 · TA获得超过113个赞
知道小有建树答主
回答量:248
采纳率:0%
帮助的人:98.4万
展开全部
每一个SUB都是一个子程序,你这是多线程同时运行4个,当然有点卡,看你第一个程序,是登陆游戏的,没有必要让它一直运行
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式