懂按键精灵的高手帮我把这段代码改成后台运行,谢谢 For 15000 Delay 1000 MoveTo 702, 517 RightClick 1
For15000Delay1000MoveTo702,517RightClick1Delay100MoveTo958,509LeftClick1Delay500MoveT...
For 15000
Delay 1000
MoveTo 702, 517
RightClick 1
Delay 100
MoveTo 958, 509
LeftClick 1
Delay 500
MoveTo 594, 228
LeftClick 1
Delay 300
MoveTo 958, 509
Delay 600
LeftClick 1
Delay 400
MoveTo 884, 187
Delay 400
LeftClick 1
Delay 200
MoveTo 391, 285
Delay 300
LeftClick 1
Delay 300
MoveTo 481, 300
LeftClick 1
Delay 300
MoveTo 603, 537
LeftClick 1
Delay 4000
MoveTo 437, 727
LeftClick 1
Delay 300
MoveTo 604, 537
LeftClick 1
Delay 300
MoveTo 594, 228
LeftClick 1
Delay 4000
Next 展开
Delay 1000
MoveTo 702, 517
RightClick 1
Delay 100
MoveTo 958, 509
LeftClick 1
Delay 500
MoveTo 594, 228
LeftClick 1
Delay 300
MoveTo 958, 509
Delay 600
LeftClick 1
Delay 400
MoveTo 884, 187
Delay 400
LeftClick 1
Delay 200
MoveTo 391, 285
Delay 300
LeftClick 1
Delay 300
MoveTo 481, 300
LeftClick 1
Delay 300
MoveTo 603, 537
LeftClick 1
Delay 4000
MoveTo 437, 727
LeftClick 1
Delay 300
MoveTo 604, 537
LeftClick 1
Delay 300
MoveTo 594, 228
LeftClick 1
Delay 4000
Next 展开
2个回答
展开全部
Hwnd = Plugin.Window.Foreground()
For 15000
Delay 1000
Call Plugin.Bkgnd.MoveTo(Hwnd, 702, 517)
Call Plugin.Bkgnd.RightClick(Hwnd, 50, 20)
Delay 100
Call Plugin.Bkgnd.MoveTo(Hwnd, 958, 509)
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 500
Call Plugin.Bkgnd.MoveTo(Hwnd, 594, 228)
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 300
Call Plugin.Bkgnd.MoveTo(Hwnd, 958, 509)
Delay 600
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 400
Call Plugin.Bkgnd.MoveTo(Hwnd, 884, 187)
Delay 400
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 200
Call Plugin.Bkgnd.MoveTo(Hwnd, 391, 285)
Delay 300
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 300
Call Plugin.Bkgnd.MoveTo(Hwnd, 481, 300)
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 300
Call Plugin.Bkgnd.MoveTo(Hwnd, 603, 537)
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 4000
Call Plugin.Bkgnd.MoveTo(Hwnd, 437, 727)
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 300
Call Plugin.Bkgnd.MoveTo(Hwnd, 604, 537)
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 300
Call Plugin.Bkgnd.MoveTo(Hwnd, 594, 228)
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 4000
Next
这是按键精灵标准的后台代码。。我不保证他的可用性,但这是标准插件。。不能用只能说明按键精灵给的插件不行。。。
For 15000
Delay 1000
Call Plugin.Bkgnd.MoveTo(Hwnd, 702, 517)
Call Plugin.Bkgnd.RightClick(Hwnd, 50, 20)
Delay 100
Call Plugin.Bkgnd.MoveTo(Hwnd, 958, 509)
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 500
Call Plugin.Bkgnd.MoveTo(Hwnd, 594, 228)
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 300
Call Plugin.Bkgnd.MoveTo(Hwnd, 958, 509)
Delay 600
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 400
Call Plugin.Bkgnd.MoveTo(Hwnd, 884, 187)
Delay 400
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 200
Call Plugin.Bkgnd.MoveTo(Hwnd, 391, 285)
Delay 300
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 300
Call Plugin.Bkgnd.MoveTo(Hwnd, 481, 300)
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 300
Call Plugin.Bkgnd.MoveTo(Hwnd, 603, 537)
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 4000
Call Plugin.Bkgnd.MoveTo(Hwnd, 437, 727)
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 300
Call Plugin.Bkgnd.MoveTo(Hwnd, 604, 537)
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 300
Call Plugin.Bkgnd.MoveTo(Hwnd, 594, 228)
Call Plugin.Bkgnd.LeftClick(Hwnd, 50, 20)
Delay 4000
Next
这是按键精灵标准的后台代码。。我不保证他的可用性,但这是标准插件。。不能用只能说明按键精灵给的插件不行。。。
展开全部
楼上的,你的回答完全错误,你没理解坐标在窗口中的位置和屏幕位置的区别
你的后台操作的是窗口坐标,而楼主提供的只是前台屏幕坐标点。要达到真的有效,除非楼主是玩的全屏的游戏(或其它全屏东东),否则不行。然而就楼主要转为后台操作这个动机来看,这绝非全屏游戏(或其它全屏东东)。
至于楼主要的转为后台操作,只能具体问题具体分析。你得知道他窗口客户区大小以及所要操作客户区区域的坐标点!所以这个问提还是要楼主自己解决。
你的后台操作的是窗口坐标,而楼主提供的只是前台屏幕坐标点。要达到真的有效,除非楼主是玩的全屏的游戏(或其它全屏东东),否则不行。然而就楼主要转为后台操作这个动机来看,这绝非全屏游戏(或其它全屏东东)。
至于楼主要的转为后台操作,只能具体问题具体分析。你得知道他窗口客户区大小以及所要操作客户区区域的坐标点!所以这个问提还是要楼主自己解决。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询