找回密码
 加入
搜索
查看: 1533|回复: 0

[AU3基础] 代码求助!

  [复制链接]
发表于 2011-3-29 15:59:12 | 显示全部楼层 |阅读模式
我想更新这个代码最新
#cs ____________________________________

AutoIt 版本: 3.2.11.2(第一版)
脚本作者: 小姚/OldHat
        Email: 534500688@qq.com
        QQ/TM: 534500688
脚本版本: 3.2.11.2
作者主页: http://534500688.qzone.qq.com/

#ce  ___________________________________

#include <Process.au3>

#NoTrayIcon;隐藏图标

$I_1 = @HOUR * 60 * 60
$S_1 = @MIN * 60
$X_1 = @SEC
$C_1 = $I_1 + $S_1 + $X_1
$File_1 = FileExists(@ScriptDir & "\Client.ini")
If $File_1 = 0 Then
        MsgBox(0, "提醒您:", "未找到配置文件,不能正常启动程序,请重新检查!")
        Exit
EndIf
FileInstall("Client.ini", @ScriptDir & "\Client.ini", 0)
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\TIME", "时间", "REG_SZ", $C_1)
$File = IniRead(@ScriptDir & "\Client.ini", "天翼配置", "安装路径", "")
$Time = IniRead(@ScriptDir & "\Client.ini", "天翼配置", "退出延时", "")
$Time_Exit = IniRead(@ScriptDir & "\Client.ini", "天翼配置", "关闭天翼", "")
Run($File)
Dim $Reg = 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System'

While 1
        RegWrite($Reg, "DisableTaskmgr", "REG_DWORD", "00000000")
        $Off_1 = WinExists("客户端", "非法的卡号!")
        $Off_2 = WinExists("客户端", "该卡暂不能上机,请联系管理员!")
        $Off_3 = WinExists("", "重新输入")
        $Off_4 = WinExists("客户端", "无法连接到服务器,请与管理员联系!")
        If $Off_1 = 1 Then
                RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\TIME")
                ProcessClose("ty_Client.exe")
                _RunDOS("taskkill /f /im explorer.exe")
                RegWrite($Reg, "DisableTaskmgr", "REG_DWORD", "00000000")
                Run(@WindowsDir & "\explorer.exe")
                Exit
        EndIf
        If $Off_2 = 1 Then
                RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\TIME")
                ProcessClose("ty_Client.exe")
                _RunDOS("taskkill /f /im explorer.exe")
                RegWrite($Reg, "DisableTaskmgr", "REG_DWORD", "00000000")
                Run(@WindowsDir & "\explorer.exe")
                Exit
        EndIf
        If $Off_3 = 1 Then
            controlsettext("","登    录","Edit1","0009586104")
                ControlCommand ( "", "登    录", "Button1", "Check", "" )
        EndIf
        If $Off_4 = 1 Then
                RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\TIME")
                ProcessClose("ty_Client.exe")
                _RunDOS("taskkill /f /im explorer.exe")
                RegWrite($Reg, "DisableTaskmgr", "REG_DWORD", "00000000")
                Run(@WindowsDir & "\explorer.exe")
                Exit
        EndIf
        $I_2 = @HOUR * 60 * 60
        $S_2 = @MIN * 60
        $X_2 = @SEC
        $C_2 = $I_2 + $S_2 + $X_2
        If $C_2 = $C_1 + $Time Then
                RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\TIME")
                FileDelete(@TempDir & "\Client.dll")
                If $Time_Exit = "是" Then
                        ProcessClose("ty_Client.exe")
                        _RunDOS("taskkill /f /im explorer.exe")
                        RegWrite($Reg, "DisableTaskmgr", "REG_DWORD", "00000000")
                        Run(@WindowsDir & "\explorer.exe")
                        Exit
                Else
                        Exit
                EndIf
        EndIf
WEnd
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-6-11 23:25 , Processed in 0.079098 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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