AM电脑吧 - Win10精简版系统_Win11精简版_Win7旗舰版

Yes
查看: 6610|回复: 7
收起左侧

[其它] QQ农牧偷匪去广告补丁

[复制链接]
ampc8224

签到天数: 230 天

[LV.7]七个CPU

id dmqhcx88 发表于 2011-08-19 00:36:09
本帖最后由 dmqhcx88 于 2011-8-19 00:49 编辑

给大家一个AU3源码补丁,以后不再对主程序进行去广告更新,补丁原则上支持最新版的QQ农牧偷匪。



  1. #include <ButtonConstants.au3>
  2. #include <GUIConstantsEx.au3>
  3. #include <StaticConstants.au3>
  4. #include <WindowsConstants.au3>
  5. #include <IE.au3>
  6. Opt("TrayMenuMode",1);取消脚本暂停
  7. FileInstall("LOGO.jpg", @TempDir & "")
  8. #Region ### START Koda GUI section ### Form=
  9. $Form1 = GUICreate("QQ农牧偷匪去广告补丁", 247, 120, 192, 124)
  10. GUISetBkColor(0xFFFFFF)
  11. $Pic1 = GUICtrlCreatePic(@TempDir & "\LOGO.jpg", 0, 0, 246, 65, BitOR($SS_NOTIFY, $WS_GROUP, $WS_CLIPSIBLINGS))
  12. $Button1 = GUICtrlCreateButton("访问论坛", 4, 77, 75, 33)
  13. $Button2 = GUICtrlCreateButton("去广告", 85, 77, 75, 33)
  14. $Button3 = GUICtrlCreateButton("退  出", 167, 77, 75, 33)
  15. GUISetState(@SW_SHOW)
  16. #EndRegion ### END Koda GUI section ###
  17. While 1
  18. $nMsg = GUIGetMsg()
  19. Switch $nMsg
  20.   Case $GUI_EVENT_CLOSE
  21.    FileDelete(@TempDir & "\LOGO.jpg")
  22.    Exit
  23.   Case  $Button1
  24. $oIE = _IECreate ("https://www.ampc8.com/")   
  25.   Case  $Button2
  26. RunWait(@ComSpec & ' /c ' & '@echo off', '', 0)
  27. RunWait(@ComSpec & ' /c ' & 'mode con cols=36 lines=5', '', 0)
  28. RunWait(@ComSpec & ' /c ' & 'rem ', '', 0)
  29. RunWait(@ComSpec & ' /c ' & 'echo HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet ', '', 0)
  30. RunWait(@ComSpec & ' /c ' & 'Settings\ZoneMap\Domains [1 7] >regini.ini', '', 0)
  31. RunWait(@ComSpec & ' /c ' & 'regini regini.ini', '', 0)
  32. RunWait(@ComSpec & ' /c ' & 'reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet ', '', 0)
  33. RunWait(@ComSpec & ' /c ' & 'Settings\ZoneMap\Domains\qqceo.net\www" /v http /t reg_dword /d "0000004" /f', '', 0)
  34. RunWait(@ComSpec & ' /c ' & 'reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet ', '', 0)
  35. RunWait(@ComSpec & ' /c ' & 'Settings\ZoneMap\Domains\6k6.com\ad" /v http /t reg_dword /d "0000004" /f', '', 0)
  36. RunWait(@ComSpec & ' /c ' & 'reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet ', '', 0)
  37. RunWait(@ComSpec & ' /c ' & 'Settings\ZoneMap\Domains\qqceo.net\ad" /v http /t reg_dword /d "0000004" /f', '', 0)
  38. RunWait(@ComSpec & ' /c ' & 'rem ', '', 0)
  39. RunWait(@ComSpec & ' /c ' & 'echo HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet ', '', 0)
  40. RunWait(@ComSpec & ' /c ' & 'Settings\ZoneMap\Domains [2 8] >regini.ini', '', 0)
  41. RunWait(@ComSpec & ' /c ' & 'del regini.ini/q/a/f ', '', 0);调用DOS命令删除regini.ini文件
  42. ;Run(@ComSpec&' /c ping 127.0.0.1 -n 3&del /q "'&@ScriptFullPath&'"',@ScriptDir,@SW_HIDE);删除脚本程序自身
  43. MsgBox(0, "提示:", "去广告成功,感谢您的使用.")
  44.      Case  $Button3
  45.   FileDelete(@TempDir & "\LOGO.jpg")
  46.    Exit
  47. EndSwitch
  48. WEnd
复制代码

本文地址: https://www.ampc8.com/thread-3084-1-1.html
上一篇:系统垃圾清理工具增强版
下一篇:AU3窗口标题滚动例子
回复

举报

ampc870

签到天数: 718 天

[LV.9]九级电脑高手

id jiazhou312 发表于 2012-04-17 13:09:16
这个软件下下来看看。
回复

举报

ampc8177

签到天数: 22 天

[LV.4]四枚内存条

id 聆听雨的心 发表于 2012-04-17 09:55:55
看看,谢谢
回复

举报

ampc896

签到天数: 3 天

[LV.2]二兆带宽

id ︶ㄣ紫メ楓ゞ 发表于 2012-03-17 20:30:44
真的管用么??
回复

举报

ampc85191

签到天数: 8 天

[LV.3]三流显示器

id xz00311 发表于 2012-03-17 15:01:05
看看AU3写的是咋样的
回复

举报

ampc85779

签到天数: 1 天

[LV.1]一个记事本

id |▍、ー种、未完 发表于 2012-02-03 11:55:50
正需要这个东西,谢谢了。
回复

举报

ampc81504

签到天数: 57 天

[LV.5]五张显卡

id v244609180 发表于 2011-10-07 03:14:56
路过,看看,顶............
回复

举报

ampc82346

签到天数: 27 天

[LV.4]四枚内存条

id yghflxc 发表于 2011-09-22 02:00:05
正需要这个东西,谢谢了。
回复

举报

您需要登录后才可以回帖 登录 | 验证注册

Powered by AMpc8.Com (晋ICP备13003365号ghs 晋公网安备 14090202000112号 |GMT+8, 2024/5/3 06:42 |
快速回复 返回顶部 返回列表