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

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

[其它] 去掉QQ迷你首页广告AU3代码

[复制链接]
ampc8193

签到天数: 816 天

[LV.10]无所不能

id yinbinly 发表于 2011-05-21 21:38:14
  1. #NoTrayIcon
  2. #RequireAdmin
  3. #Region ;**** 参数创建于 ACNWrapper_GUI ****
  4. #AutoIt3Wrapper_Icon=工具.ico
  5. #AutoIt3Wrapper_OutFile=去掉QQ迷你首页广告.exe
  6. #AutoIt3Wrapper_Res_Comment=制作:yinbinly
  7. #AutoIt3Wrapper_Res_Description=去QQ广告
  8. #AutoIt3Wrapper_Res_LegalCopyright=版权所有 (C) 2011
  9. #AutoIt3Wrapper_Run_Tidy=y
  10. #EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
  11. #Region AutoIt3Wrapper 预编译参数(常用参数)

  12. #EndRegion AutoIt3Wrapper 预编译参数(常用参数)

  13. ;不显示托盘图标
  14. ;防止程序重复运行
  15. $g_szVersion = "test"
  16. If WinExists($g_szVersion) Then Exit
  17. AutoItWinSetTitle($g_szVersion)

  18. #include <ButtonConstants.au3>
  19. #include <GUIConstantsEx.au3>
  20. #include <WindowsConstants.au3>
  21. #Region ### START Koda GUI section ### Form=
  22. $Form1 = GUICreate("yinbinly", 199, 182, 192, 124)
  23. $Button1 = GUICtrlCreateButton("去掉迷你首页", 24, 32, 145, 41)
  24. $Button2 = GUICtrlCreateButton("恢复迷你首页", 25, 98, 145, 41)
  25. GUISetState(@SW_SHOW)
  26. #EndRegion ### END Koda GUI section ###

  27. While 1
  28.         $nMsg = GUIGetMsg()
  29.         Switch $nMsg
  30.                 Case $GUI_EVENT_CLOSE
  31.                         Exit

  32.                 Case $Button1
  33.                         $QQkey = "HKEY_LOCAL_MACHINE\SOFTWARE\TENCENT\QQ2009"
  34.                         $QQpath = RegRead($QQkey, "Install")
  35.                         $Dirs = $QQpath & "\Plugin\Com.Tencent.Advertisement\bin\Advertisement.dll"
  36.                         If FileSetAttrib($Dirs, "+R") Then
  37.                                 MsgBox(0, "成功", "成功去除迷你首页")
  38.                         Else
  39.                                 MsgBox(16, "失败", "仅对QQ2011有效?")
  40.                         EndIf

  41.                 Case $Button2
  42.                         $QQkey = "HKEY_LOCAL_MACHINE\SOFTWARE\TENCENT\QQ2009"
  43.                         $QQpath = RegRead($QQkey, "Install")
  44.                         $Dirs = $QQpath & "\Plugin\Com.Tencent.Advertisement\bin\Advertisement.dll"
  45.                         If FileSetAttrib($Dirs, "-R") Then
  46.                                 MsgBox(0, "成功", "成功恢复迷你首页")
  47.                         Else
  48.                                 MsgBox(16, "失败", "仅对QQ2011有效?")
  49.                         EndIf
  50.         EndSwitch
  51. WEnd
复制代码


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?验证注册

x

评分

参与人数 1带宽 +5 收起 理由
ampc81 + 5 很好的帖子,非常感谢.

本文地址: https://www.ampc8.com/thread-724-1-1.html
上一篇:微软Windows 8操作系统十二大传闻
下一篇:ollydbg的一个内存爆指令的演示
回复

举报

ampc8562

签到天数: 1538 天

[LV.Master]顶级配置

id tiger8818 发表于 2011-08-23 22:50:28
谢谢楼主分享!
回复

举报

ampc8753

签到: Lazy

id 咩咩 发表于 2011-06-12 16:21:41
{:4_98:}厉害啊!强赞一个
回复

举报

ampc8508

签到天数: 53 天

[LV.5]五张显卡

id kael 发表于 2011-05-25 20:49:42
恩,学习了!!下次我也试试!!
回复

举报

ampc8113

签到天数: 234 天

[LV.7]七个CPU

id 曾经最美 发表于 2011-05-23 22:48:03
好吧,非常实用,谢谢分享
回复

举报

ampc8193

签到天数: 816 天

[LV.10]无所不能

lz  楼主| yinbinly 发表于 2011-05-22 19:06:23
回复 3# shejiewu

QQ2010也可以的
回复

举报

ampc836

签到天数: 2640 天

[LV.Master]顶级配置

id δ豆σ豆δ 发表于 2011-05-22 08:12:42
谢绝广告,支持一个!
回复

举报

ampc81

签到天数: 679 天

[LV.9]九级电脑高手

id 发表于 2011-05-21 22:12:21
谢谢分享了。
回复

举报

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

Powered by AMpc8.Com (晋ICP备13003365号ghs 晋公网安备 14090202000112号 |GMT+8, 2025/5/1 08:46 | A
快速回复 返回顶部 返回列表