If mzi="对方交易物品栏" Then
Goto jumpA
Else
Goto jump0
End if
Rem jumpA
qx=Plugin.window.findex(hwnd3,0,"Button","取消")
zby=Plugin.Window.GetClientRect(wpl)
Mzby=split(zby,"|",-1,1)
x=cint(Mzby(0)):y=cint(Mzby(1))
zbe=Plugin.BGKM5.ScrToCli(hwnd1,x,y)
Mzbe=split(zbe,"|",-1,1)
x1=cint(Mzbe(0)):y1=cint(Mzbe(1))
x2=x1+16:y2=y1+16
Call Plugin.Window.Move(hwnd1,-6000,20)
Call 检查交易是否提前结束()
End Sub
//==========================检查物品=========================
Sub 检查物品()
b=0
c=0
d=0:e=0
x3=x2:y3=y2
For 12
Rem jump1
If b>=3 Then
Goto jump2
End if
gysy(d)=Plugin.Bkgnd.GetPixelColor(hwnd1,x3,y3)
If gysy(d)="000000" Then
Goto jump1
ElseIf gysy(d)="0A0A0A" Then
Delay 2000
b=b+1
Goto jump1
Else
Call 物品第二颜色()
x3=x3+34
b=0
d=d+1
c=c+1
If c=6 Then
x3=x2:y3=y2+34
End if
End if
Next
Rem jump2
If gysy(0)="0A0A0A" Then
Call Plugin.BGKM5.LClick(qx,25,8)
Call Plugin.Window.Move(hwnd1,Myzb(0),Myzb(1))
Goto jump0
End if
End Sub
//===========================出价==========================
Sub 出价()
Call 检查交易是否提前结束()
hwnd4=Plugin.window.findex(hwnd3,0,"Button","ChawImg2")
strj=Plugin.window.findex(hwnd3,hwnd4,"Button",0)
strm=Plugin.window.findex(hwnd3,strj,"Button",0)
qdj=Plugin.window.findex(hwnd3,0,"Button","确定金")
jy=Plugin.window.findex(hwnd3,0,"Button","同意")
qdm=Plugin.window.findex(hwnd3,0,"Button","交易-已方确定魔石")
If zhifu=1 Then
Call Plugin.BGKM5.LClick(strj,48,4)
Delay 500
Call Plugin.Bkgnd.SendString(strj,zongjia)
Delay 500
Call Plugin.BGKM5.LClick(qdj,10,8)
ElseIf zhifu=2 Then
Call Plugin.BGKM5.LClick(strm,48,4)
Delay 500
Call Plugin.Bkgnd.SendString(strm,zongjia)
Delay 500
Call Plugin.BGKM5.LClick(qdm,10,8)
End if
Delay 500
Call Plugin.BGKM5.LClick(jy,25,8)
End Sub
//===========================检查交易是否提前结束=====================
Sub 检查交易是否提前结束()
Rem jump3
co=Plugin.Bkgnd.GetPixelColor(hwnd1,x1+229,y1+26)
If co="000000" Then
Goto jump3
ElseIf co="100E10" Then
Goto jump4
Else
Call Plugin.Window.Move(hwnd1,Myzb(0),Myzb(1))
Delay 1000
Goto jump0
End if
Rem jump4
End Sub
//============================物品第二颜色================================
Sub 物品第二颜色()
Rem jump5
gyse(e)=Plugin.Bkgnd.GetPixelColor(hwnd1,x3+2,y3+2)
If gyse(e)="000000" Then
Goto jump5
Else