我想做一个游戏的后台脚本源代码下边
While7=7Fori=1To2Delay1000KeyPress"9",1Delay1500KeyPress"1",1Delay200LeftClick1Delay5...
While 7=7
For i=1 To 2
Delay 1000
KeyPress "9", 1
Delay 1500
KeyPress "1", 1
Delay 200
LeftClick 1
Delay 5000
KeyPress "2", 1
Delay 1500
KeyPress "1", 1
Delay 200
LeftClick 1
Delay 5000
KeyPress "V", 1
Delay 5000
KeyPress "Space", 1
Next
KeyPress "F", 1
Delay 2500
KeyPress "F", 1
Delay 1000
KeyPress "F", 1
KeyPress "F", 1
Wend 展开
For i=1 To 2
Delay 1000
KeyPress "9", 1
Delay 1500
KeyPress "1", 1
Delay 200
LeftClick 1
Delay 5000
KeyPress "2", 1
Delay 1500
KeyPress "1", 1
Delay 200
LeftClick 1
Delay 5000
KeyPress "V", 1
Delay 5000
KeyPress "Space", 1
Next
KeyPress "F", 1
Delay 2500
KeyPress "F", 1
Delay 1000
KeyPress "F", 1
KeyPress "F", 1
Wend 展开
2个回答
展开全部
Hwnd = Plugin.Window.MousePoint()
While 7=7
Call Plugin.Bkgnd.KeyPress(hwnd,69)
//后台按键命令69是按键,按键精灵内查询按键码很方便
delay 3000
//延时3秒,单位毫秒,1000毫秒=1秒
Call Plugin.Bkgnd.LeftClick(Hwnd,X,Y)
//后台鼠标命令,移动到坐标X和坐标Y,进行鼠标左键点击(按键精灵内Bkgnd插件有其他命令,例如右键或者按住左键、弹起左键)
wend
备注(不是代码):X,Y是你游戏内指定地点的窗口坐标,根据上述命令,自行修改增加,变成你自己的脚本吧,总不能我一行一行帮你弄呀
While 7=7
Call Plugin.Bkgnd.KeyPress(hwnd,69)
//后台按键命令69是按键,按键精灵内查询按键码很方便
delay 3000
//延时3秒,单位毫秒,1000毫秒=1秒
Call Plugin.Bkgnd.LeftClick(Hwnd,X,Y)
//后台鼠标命令,移动到坐标X和坐标Y,进行鼠标左键点击(按键精灵内Bkgnd插件有其他命令,例如右键或者按住左键、弹起左键)
wend
备注(不是代码):X,Y是你游戏内指定地点的窗口坐标,根据上述命令,自行修改增加,变成你自己的脚本吧,总不能我一行一行帮你弄呀
追问
wind 7=7什么意思
满意答案点错了~_~
来自:求助得到的回答
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询