吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 2868|回复: 6
收起左侧

[其他转载] 闲着没事写的自动重链接(公共网络每3/小时要连接一次问题)

[复制链接]
bloodfog 发表于 2018-6-22 16:15
本帖最后由 bloodfog 于 2018-6-22 16:16 编辑




    #include <IE.au3>
    ;#NoTrayIcon
    #AutoIt3Wrapper_Icon=E:\AUTOIT3\CODE\OPENHTTP\ico.ico ;
    #AutoIt3Wrapper_UseX64=n$url = 'https://portal.danmagi.com/magni/sheraton_club_des_pins/tiered/packages/connected?times='&@YEAR&@MON&@MDAY&@HOUR&@MIN&@SEC
    $oIE = _IECreate ($url)
    $sHTML = _IEDocReadHTML ($oIE)
    Sleep(20000)
    $file = FileOpen("Sheraton.ini", 2) ;打开并清空文本内容
    ; 检查打开的文件是否可为读
    FileWrite('Sheraton.ini', $sHTML) ;写入数据
    FileClose($file) ;关闭文本
    Sleep(5000)
    WinClose("Sheraton")
    Sleep(2000)$filenote = FileReadLine("Sheraton.ini", 76) ;读取第76行内容$getstr = StringMid($filenote,58,17)
    $getstr = StringMid($getstr,8,4)&StringMid($getstr,5,2)&StringMid($getstr,2,2)&StringMid($getstr,13,2)&StringMid($getstr,16,2)
    ;MsgBox(0,"返回指定字符数",$getstr);If StringLen($getstr) <> 12 Then
    $getstr = '200808080808'
    $notetime = '程序已启动,冲浪愉快^_^'
    Else
    $notetime = '网络过期时间 '&StringMid($filenote,58,17)&' 冲浪愉快^_^'
    EndIfMsgBox(4096, "Copyright 2018 RainMan", $notetime, 5) ;5S后自动关闭While 1 ;每分钟执行一次
    $nowdate = @YEAR&@MON&@MDAY&@HOUR&@MIN
    ;MsgBox(0,"检测报告",$nowdate&">"&$getstr)
    If $nowdate>$getstr Then
    MsgBox(4096, "Copyright 2018 RainMan", "网络已到期,5S后程序将自动重新链接网络...", 5) ;5S后自动关闭$sUrl = 'https://portal.danmagi.com/magni/sheraton_club_des_pins/tiered/free_only?times='&@YEAR&@MON&@MDAY&@HOUR&@MIN&@SEC
    $oIE = _IECreate($sUrl) ;IE打开
    $tHTML = _IEDocReadHTML ($oIE)
    Sleep(15000)
    $file = FileOpen("Connect.ini", 2) ;打开并清空文本内容
    ; 检查打开的文件是否可为读
    FileWrite('Connect.ini', $tHTML) ;写入数据
    FileClose($file) ;关闭文本
    Sleep(2000)
    $isTrue = FileReadLine("Connect.ini", 84)
    Sleep(1000)
    $oInputs = _IETagNameGetCollection ($oIE, "BUTTON")
    If $isTrue = " 3 Hours / Free" Then
    MsgBox(4096, "Copyright 2018 RainMan", "开工咯~准备开始自动连接网络^_^", 5)
    For $oInput In $oInputs
    if $oInput.value = "Connect" then
    _IEAction ($oInput, "click")
    EndIf
    Next
    Else
    MsgBox(4096, "Copyright 2018 RainMan", "神游了,没找到链接按钮,那我再来一次吧^_^", 5)
    EndIfSleep(10000)
    WinClose("danmagi")
    Sleep(2000)
    WinClose("Sheraton")
    Sleep(2000)
    WinClose("360")
    Sleep(2000)
    WinClose("504")
    Sleep(2000)
    WinClose("Property")
    Sleep(2000)
    WinClose("您访问的网页")
    Sleep(2000)$oIE = _IECreate ($url)
    $sHTML = _IEDocReadHTML ($oIE)
    Sleep(10000)
    $file = FileOpen("Sheraton.ini", 2) ;打开并清空文本内容
    ; 检查打开的文件是否可为读
    FileWrite('Sheraton.ini', $sHTML) ;写入数据
    FileClose($file) ;关闭文本
    Sleep(5000)
    WinClose("Sheraton")
    Sleep(2000)$filenote = FileReadLine("Sheraton.ini", 76) ;读取第76行内容$getstr = StringMid($filenote,58,17)
    $getstr = StringMid($getstr,8,4)&StringMid($getstr,5,2)&StringMid($getstr,2,2)&StringMid($getstr,13,2)&StringMid($getstr,16,2)If StringLen($getstr) <> 12 Then
    $getstr = '200808080808'
    EndIfSleep(2000)EndIf
    Sleep(60000)
    WEnd
    22.png



已链接

已链接

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

我要做大神 发表于 2018-6-22 16:32
这是什么?
一不小心就丶 发表于 2018-6-22 16:37
link57010 发表于 2018-6-22 16:40
A羽飞 发表于 2018-6-22 16:48
干嘛用的呢?
willgoon 发表于 2018-6-22 16:59
感觉是AU3写的
honb1 发表于 2019-4-12 12:43
厉害了,研究一下
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-4-19 17:49

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表