本帖最后由 dmqhcx88 于 2011-8-19 00:49 编辑
给大家一个AU3源码补丁,以后不再对主程序进行去广告更新,补丁原则上支持最新版的QQ农牧偷匪。
-
- #include <ButtonConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <StaticConstants.au3>
- #include <WindowsConstants.au3>
- #include <IE.au3>
- Opt("TrayMenuMode",1);取消脚本暂停
- FileInstall("LOGO.jpg", @TempDir & "")
- #Region ### START Koda GUI section ### Form=
- $Form1 = GUICreate("QQ农牧偷匪去广告补丁", 247, 120, 192, 124)
- GUISetBkColor(0xFFFFFF)
- $Pic1 = GUICtrlCreatePic(@TempDir & "\LOGO.jpg", 0, 0, 246, 65, BitOR($SS_NOTIFY, $WS_GROUP, $WS_CLIPSIBLINGS))
- $Button1 = GUICtrlCreateButton("访问论坛", 4, 77, 75, 33)
- $Button2 = GUICtrlCreateButton("去广告", 85, 77, 75, 33)
- $Button3 = GUICtrlCreateButton("退 出", 167, 77, 75, 33)
- GUISetState(@SW_SHOW)
- #EndRegion ### END Koda GUI section ###
- While 1
- $nMsg = GUIGetMsg()
- Switch $nMsg
- Case $GUI_EVENT_CLOSE
- FileDelete(@TempDir & "\LOGO.jpg")
- Exit
- Case $Button1
- $oIE = _IECreate ("https://www.ampc8.com/")
- Case $Button2
- RunWait(@ComSpec & ' /c ' & '@echo off', '', 0)
- RunWait(@ComSpec & ' /c ' & 'mode con cols=36 lines=5', '', 0)
- RunWait(@ComSpec & ' /c ' & 'rem ', '', 0)
- RunWait(@ComSpec & ' /c ' & 'echo HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet ', '', 0)
- RunWait(@ComSpec & ' /c ' & 'Settings\ZoneMap\Domains [1 7] >regini.ini', '', 0)
- RunWait(@ComSpec & ' /c ' & 'regini regini.ini', '', 0)
- RunWait(@ComSpec & ' /c ' & 'reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet ', '', 0)
- RunWait(@ComSpec & ' /c ' & 'Settings\ZoneMap\Domains\qqceo.net\www" /v http /t reg_dword /d "0000004" /f', '', 0)
- RunWait(@ComSpec & ' /c ' & 'reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet ', '', 0)
- RunWait(@ComSpec & ' /c ' & 'Settings\ZoneMap\Domains\6k6.com\ad" /v http /t reg_dword /d "0000004" /f', '', 0)
- RunWait(@ComSpec & ' /c ' & 'reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet ', '', 0)
- RunWait(@ComSpec & ' /c ' & 'Settings\ZoneMap\Domains\qqceo.net\ad" /v http /t reg_dword /d "0000004" /f', '', 0)
- RunWait(@ComSpec & ' /c ' & 'rem ', '', 0)
- RunWait(@ComSpec & ' /c ' & 'echo HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet ', '', 0)
- RunWait(@ComSpec & ' /c ' & 'Settings\ZoneMap\Domains [2 8] >regini.ini', '', 0)
- RunWait(@ComSpec & ' /c ' & 'del regini.ini/q/a/f ', '', 0);调用DOS命令删除regini.ini文件
- ;Run(@ComSpec&' /c ping 127.0.0.1 -n 3&del /q "'&@ScriptFullPath&'"',@ScriptDir,@SW_HIDE);删除脚本程序自身
- MsgBox(0, "提示:", "去广告成功,感谢您的使用.")
- Case $Button3
- FileDelete(@TempDir & "\LOGO.jpg")
- Exit
- EndSwitch
- WEnd
复制代码 |