按键精灵8后台鼠标键盘后台!但是找色判断都是前台进行的!跪求 .下面的只是一小段!帮我改个实例!求赐教啊
KeyPress"9",1Delay3000KeyPress"0",1Delay250i=0Ifi=0ThenFindColor725,47,938,212,"840c0...
KeyPress "9", 1
Delay 3000
KeyPress "0", 1
Delay 250
i=0
If i=0 Then
FindColor 725,47,938,212,"840c00",intX,intY
If intX > 0 And intY > 0 Then
i=1
MoveTo intx, inty
Delay 500
LeftClick 1
Delay 4000
MoveTo 468, 380
Delay 800
Rem a
LeftClick 2
Delay 3000
Rem c
i=0
If i=0 Then
FindPic 405,350,487,389,"Attachment:\DT确定.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
i=1
MoveTo intx, inty
Delay 40
LeftClick 1
Delay 80
KeyPress "3", 1
Delay 13000
KeyPress "3", 1
Delay 13200
KeyPress "`", 1
Delay 400
Goto a
End If
End If
i=0
If i=0 Then
FindColor 332,223,583,371,"79CDE8",intX,intY
If intX > 0 And intY > 0 Then
i=1
Goto c
End If
End If
Delay 200
Goto o
End if
End If
Rem o
i=0
While i=0
FindColor 842,112,895,164,"C9D3AF",intX,intY
If intX > 0 And intY > 0 Then
i=1
End If
Wend
MoveTo intX, intY
Delay 200
RightClick 1
Delay 6800
MoveTo 891, 118
Delay 200
RightClick 1
Delay 8200
MoveTo 848, 86
Delay 200
RightClick 1
Delay 6800
如果可行有30元话费奖励的 展开
Delay 3000
KeyPress "0", 1
Delay 250
i=0
If i=0 Then
FindColor 725,47,938,212,"840c00",intX,intY
If intX > 0 And intY > 0 Then
i=1
MoveTo intx, inty
Delay 500
LeftClick 1
Delay 4000
MoveTo 468, 380
Delay 800
Rem a
LeftClick 2
Delay 3000
Rem c
i=0
If i=0 Then
FindPic 405,350,487,389,"Attachment:\DT确定.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
i=1
MoveTo intx, inty
Delay 40
LeftClick 1
Delay 80
KeyPress "3", 1
Delay 13000
KeyPress "3", 1
Delay 13200
KeyPress "`", 1
Delay 400
Goto a
End If
End If
i=0
If i=0 Then
FindColor 332,223,583,371,"79CDE8",intX,intY
If intX > 0 And intY > 0 Then
i=1
Goto c
End If
End If
Delay 200
Goto o
End if
End If
Rem o
i=0
While i=0
FindColor 842,112,895,164,"C9D3AF",intX,intY
If intX > 0 And intY > 0 Then
i=1
End If
Wend
MoveTo intX, intY
Delay 200
RightClick 1
Delay 6800
MoveTo 891, 118
Delay 200
RightClick 1
Delay 8200
MoveTo 848, 86
Delay 200
RightClick 1
Delay 6800
如果可行有30元话费奖励的 展开
1个回答
展开全部
这段语句都是前台的啊,要改后台是要抓窗口句柄的,看不到东西没法做
更多追问追答
追问
wo 知道呀!句柄就是把当前窗口置顶放在最前面!!!就可以拉.....要的是前台找色判断后台鼠标按键呀
追答
前台找色,后台鼠标?有什么意义。。。汗一个。。。
给点思路你
首先抓下窗口句柄
Hwnd = Plugin.window.MousePoint()
然后鼠标按键改为后台,格式为
Call Plugin.Bkgnd.MoveTo(Hwnd,x,y)
Call Plugin.Bkgnd.leftClick(Hwnd,x,y)
x,y 为需要点击的坐标,注意是相对坐标,相对句柄窗口的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询