按键精灵变量~怎么把游戏进图和出图的时间做成能在按键小精灵界面自定义的,还有脚本运行次数也是自定义

KeyPress"Ctrl",1Delay500MoveTo454,53LeftClick1Delay850KeyPress"Num0",1Delay1000MoveTo... KeyPress "Ctrl", 1
Delay 500
MoveTo 454, 53
LeftClick 1
Delay 850
KeyPress "Num 0", 1
Delay 1000
MoveTo 797, 644
LeftClick 1
Delay 1000
KeyDown "Alt", 1
Delay 250
KeyPress "Tab", 1
Delay 250
KeyUp "Alt", 1
Delay 250
KeyPress "Num 0", 1
Delay 1000
MoveTo 1680, 900
LeftClick 1
Delay 20000 --------------此处延时时间要设置成在按键小精灵界面能自定义的
KeyPress "Num 1", 1
Delay 1000
KeyDown "Alt", 1
Delay 250
KeyPress "Tab", 1
Delay 250
KeyUp "Alt", 1
Delay 850
KeyPress "Num 1", 1
Delay 1000
KeyPress "D", 1
Delay 500
LeftClick 1
Delay 100
KeyPress "F", 1
Delay 150
KeyPress "F", 1
Delay 2500
KeyPress "F8", 1
Delay 150
KeyDown "Alt", 1
Delay 250
KeyPress "Tab", 1
Delay 250
KeyUp "Alt", 1
Delay 500
KeyPress "D", 1
Delay 500
LeftClick 1
Delay 100
KeyPress "F", 1
Delay 150
KeyPress "F", 1
Delay 2500
KeyPress "F8", 1
Delay 20000--------------此处延时时间要设置成在按键小精灵界面能自定义的

还有怎么设置这个脚本的循环次数,是在按键小精灵里面可以自定义的次数哦,不是脚本属性右边的那个设置循环次数的

求大神 知道 修改~~~~~~~~
展开
 我来答
wch1297174480
2012-12-09 · TA获得超过151个赞
知道答主
回答量:82
采纳率:0%
帮助的人:55.4万
展开全部
首先 楼主您没有梳理好问题
您是想说给生成小精灵的自定义吧
那么 就拿你的这个脚本举一个例子

UserVar yanshi=0 "脚本延时"
UserVar cishu=0 "脚本次数"
For cishu //这里循环说的是 循环cishu的值 那么你在自定义变量里改变了cishu的变量 那么他就循环这么多次
KeyPress "Ctrl", 1
Delay 500
MoveTo 454, 53
LeftClick 1
Delay 850
KeyPress "Num 0", 1
Delay 1000
MoveTo 797, 644
LeftClick 1
Delay 1000
KeyDown "Alt", 1
Delay 250
KeyPress "Tab", 1
Delay 250
KeyUp "Alt", 1
Delay 250
KeyPress "Num 0", 1
Delay 1000
MoveTo 1680, 900
LeftClick 1
Delay yanshi // 根据您要的需求 就像上面的例子一样 延时yanshi变量的值
KeyPress "Num 1", 1
Delay 1000
KeyDown "Alt", 1
Delay 250
KeyPress "Tab", 1
Delay 250
KeyUp "Alt", 1
Delay 850
KeyPress "Num 1", 1
Delay 1000
KeyPress "D", 1
Delay 500
LeftClick 1
Delay 100
KeyPress "F", 1
Delay 150
KeyPress "F", 1
Delay 2500
KeyPress "F8", 1
Delay 150
KeyDown "Alt", 1
Delay 250
KeyPress "Tab", 1
Delay 250
KeyUp "Alt", 1
Delay 500
KeyPress "D", 1
Delay 500
LeftClick 1
Delay 100
KeyPress "F", 1
Delay 150
KeyPress "F", 1
Delay 2500
KeyPress "F8", 1
Delay yanshi // 根据您要的需求 就像上面的例子一样 延时yanshi变量的值
Next

望采纳(*^__^*) 嘻嘻……
追问
额 我忘了改脚本了 其实脚本里的两个延时时间是不一样的.要怎么修改?我修改了一下,你看看,但是我发现循环次数不受控,输入循环次数不管用,他一直循环不停
UserVar yanshi1=0 "进图时间(单位:秒)"
UserVar yanshi2=0 "出图时间(单位:秒)"
UserVar cishu=0 "脚本次数"
For cishu
KeyPress "Ctrl", 1
.
.
Delay yanshi1*1000
.
.
Delay yanshi2*1000
Next
我测了,延时队,循环错误
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

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

类别

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

说明

0/200

提交
取消

辅 助

模 式