| 地址: |
上海市浦东新区 |
| 电话: |
025-21-85787780 |
| 传真: |
032-21-85787780 |
| 邮箱: |
tian7xin7@126.com |
| 网址: |
http://www.yqjlr.com |
|
|
| 雷霆传奇回收验证码脚本范例 |
| 发布时间:2019-07-16 文章来源:www.yqjlr.com 浏览次数:912 |
function _check()
local dialog = GetDlgPoint(0)
local NapDlgAddr = 0
local StrText = ""
local NpcDlg = { }
for i = 1, #dialog do
local diaInfo = GetDlgInfo(dialog[i])
if diaInfo.name == "DMerchantDlg_" and diaInfo.show == 1 then
NapDlgAddr = diaInfo.addr
NpcDlg = diaInfo
break
end
end
local SunText=""
local dialog = GetDlgPoint(NapDlgAddr)
for i = 1, #dialog do
local diaInfo = GetDlgInfo(dialog[i])
SunText=SunText..diaInfo.showtext..diaInfo.sendtext
end
local ExtTmpArray = ExtractText(SunText, "馨提示:", "答案提示")
if #ExtTmpArray > 0 then
StrText = ExtTmpArray[1]
Out("答案初步筛选:" .. StrText)
StrText=StrText.."答案提示"
SunText=StrText
end
local ExtTmpArray = ExtractText(SunText, "馨提示:", "答案提示")
if #ExtTmpArray > 0 then
StrText = ExtTmpArray[1]
StrText = ReplaceText(StrText, " ", "")
Out("答案:" .. StrText)
end
Out("答案:" .. StrText)
if string.len(StrText) < 1 then
return 0
end
local dialog = GetDlgPoint(NapDlgAddr)
for i = 1, #dialog do
local diaInfo = GetDlgInfo(dialog[i])
if FindText(diaInfo.showtext, "输入当前") >= 0 and FindText(diaInfo.sendtext, "@") >= 0 then
MoveTo(NpcDlg.x + diaInfo.x + 10, NpcDlg.y + diaInfo.y + 10, 1)
Sleep(10)
MouseBtn(1)
Sleep(100)
MouseBtn(2)
end
end
SetClipboardText(StrText)
Sleep(100)
Key(17, 1)
Sleep(50)
Key(86, 1)
Sleep(50)
Key(86, 2)
Sleep(50)
Key(17, 2)
Sleep(500)
Key(13, 1)
Sleep(50)
Key(13, 2)
Sleep(500)
return 0
end
function _get_have_code()
local dialog = GetDlgPoint(0)
local NapDlgAddr = 0
for i = 1, #dialog do
local diaInfo = GetDlgInfo(dialog[i])
if diaInfo.name == "DMerchantDlg_" and diaInfo.show == 1 then
NapDlgAddr = diaInfo.addr
break
end
end
local dialog = GetDlgPoint(NapDlgAddr)
for i = 1, #dialog do
local diaInfo = GetDlgInfo(dialog[i])
if FindText(diaInfo.showtext, "防脱及验证") >= 0 then
return 1
end
end
return 0
end
while _get_have_code() == 1 do
if get_stop_status() == 1 then
break
end
_check()
Sleep(100)
end
|
|