• 欢迎访问奇跡の海网站,本站不上传任何资源,所有资源均来自于网络,欢迎加入奇跡の海~!奇跡の海-WordPress QQ群
  • 本站下载资源为网络上收集整理而来,并且以计算机技术研究交流为目的,版权归原作者所有,仅供大家参考,学习,不存在任何商业目的与商业用途.
  • 本站系统镜像均来自于官方原版,ed2k可视为P2P下载链接。所有操作系统默认均为试用版,如有正版密钥可以有效激活,本站不提供任何激活和相关服务。

WinXP桌面IE图标设置及WIN7桌面IE图标设置

AutoIT3 奇跡の海 2年前 (2017-05-20) 374次浏览 已收录 0个评论 扫描二维码

WinXP桌面IE图标设置及WIN7桌面IE图标设置

源码简介

Windows (winxp、win7)桌面IE图标设置(显示/隐藏)

源码分享

#region ;**** 参数创建于 ACNWrapper_GUI ****
#PRE_Icon=..\..\..\..\Program Files\Internet Explorer\iexplore.exe
#PRE_Outfile=Windows桌面IE图标.exe
#PRE_Compression=4
#PRE_Res_Comment=Windows桌面IE图标
#PRE_Res_Description=
#PRE_Res_Fileversion=1.2.0.1
#PRE_Res_LegalCopyright=
#PRE_Res_requestedExecutionLevel=None
#PRE_Run_Tidy=y
#endregion ;**** 参数创建于 ACNWrapper_GUI ****
#include <GUIConstantsEx.au3>
Opt("GUIOnEventMode", 1) ; 切换为 OnEvent 模式
Opt("TrayMenuMode", 1)
Select
	Case @OSBuild = 2600
		$mainwindow = GUICreate(&quot;<a href="http://www.seaomc.com/archives/tag/winxp" title="查看更多关于WinXP的文章" target="_blank">WinXP</a>桌面IE图标设置&quot;, 340, 120) ; 创建窗口并返回窗口句柄
		GUICtrlCreateLabel(&quot;<a href="http://www.seaomc.com/archives/tag/winxp" title="查看更多关于WinXP的文章" target="_blank">WinXP</a>桌面IE图标“显示/隐藏”设置工具&quot;, 65, 15)
		$showbutton = GUICtrlCreateButton(&quot;显示<a href="http://www.seaomc.com/archives/tag/winxp" title="查看更多关于WinXP的文章" target="_blank">WinXP</a>桌面IE图标&quot;, 20, 40, 140, 60)
		$hidebutton = GUICtrlCreateButton(&quot;隐藏<a href="http://www.seaomc.com/archives/tag/winxp" title="查看更多关于WinXP的文章" target="_blank">WinXP</a>桌面IE图标&quot;, 180, 40, 140, 60)
		GUICtrlSetOnEvent($hidebutton, &quot;XHideButton&quot;)
		GUICtrlSetOnEvent($showbutton, &quot;XShowButton&quot;)
	Case @OSBuild = 7601
		$mainwindow = GUICreate(&quot;WIN7桌面IE图标设置&quot;, 340, 120) ; 创建窗口并返回窗口句柄
		GUICtrlCreateLabel(&quot;WIN7桌面IE图标“恢复/删除”设置工具&quot;, 65, 15)
		$showbutton = GUICtrlCreateButton(&quot;恢复WIN7桌面IE图标&quot;, 20, 40, 140, 60)
		$hidebutton = GUICtrlCreateButton(&quot;删除WIN7桌面IE图标&quot;, 180, 40, 140, 60)
		GUICtrlSetOnEvent($hidebutton, &quot;HideButton&quot;)
		GUICtrlSetOnEvent($showbutton, &quot;ShowButton&quot;)
	Case @OSBuild &gt; 2600 And @OSBuild &lt; 7601 Or @OSBuild &lt; 2600 Or @OSBuild &gt; 7601
		$mainwindow = GUICreate(&quot;桌面IE图标设置&quot;, 340, 120) ; 创建窗口并返回窗口句柄
		GUICtrlCreateLabel(&quot;桌面IE图标“恢复/删除”设置工具&quot;, 65, 15)
		$showbutton = GUICtrlCreateButton(&quot;恢复桌面IE图标&quot;, 20, 40, 140, 60)
		$hidebutton = GUICtrlCreateButton(&quot;删除桌面IE图标&quot;, 180, 40, 140, 60)
		GUICtrlSetOnEvent($hidebutton, &quot;HideButton&quot;)
		GUICtrlSetOnEvent($showbutton, &quot;ShowButton&quot;)
EndSelect
GUISetOnEvent($GUI_EVENT_CLOSE, &quot;CLOSEClicked&quot;) ; 设置窗口关闭事件Show and hide
GUISetState(@SW_SHOW)

While 1
	Sleep(1000) ; 不做任何事
WEnd

Func ShowButton()
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;Internet Explorer&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}&quot;, &quot;InfoTip&quot;, &quot;REG_SZ&quot;, &quot;@C:\Windows\system32\ieframe.dll,-881&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}&quot;, &quot;LocalizedString&quot;, &quot;REG_SZ&quot;, &quot;@C:\WINDOWS\system32\ieframe.dll.mui,-880&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\DefaultIcon&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;C:\Windows\system32\ieframe.dll,-190&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\InProcServer32&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;C:\Windows\system32\ieframe.dll&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\InProcServer32&quot;, &quot;ThreadingModel&quot;, &quot;REG_SZ&quot;, &quot;Apartment&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\shell&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;OpenHomePage&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\shell\NoAddOns&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;在没有加载项的情况下启动(&amp;N)&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\shell\NoAddOns\Command&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;C:\Program Files\Internet Explorer\iexplore.exe about:NoAdd-ons&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\shell\OpenHomePage&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;打开主页(&amp;H)&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\shell\OpenHomePage\Command&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;C:\Program Files\Internet Explorer\iexplore.exe&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\shell\Properties&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;属性(&amp;R)&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\shell\Properties&quot;, &quot;Position&quot;, &quot;REG_SZ&quot;, &quot;bottom&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\shell\Properties\command&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;Rundll32.exe Shell32.dll,Control_RunDLL Inetcpl.cpl&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\Shellex&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\Shellex\ContextMenuHandlers&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\Shellex\ContextMenuHandlers\ieframe&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;{871C5380-42A0-1069-A2EA-08002B30309D}&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\Shellex\MayChangeDefaultMenu&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\ShellFolder&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;C:\Windows\system32\ieframe.dll,-190&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\ShellFolder&quot;, &quot;HideAsDeletePerUser&quot;, &quot;REG_SZ&quot;, &quot;&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\ShellFolder&quot;, &quot;HideFolderVerbs&quot;, &quot;REG_SZ&quot;, &quot;&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\ShellFolder&quot;, &quot;WantsParseDisplayName&quot;, &quot;REG_SZ&quot;, &quot;&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\ShellFolder&quot;, &quot;HideOnDesktopPerUser&quot;, &quot;REG_SZ&quot;, &quot;&quot;)
	RegWrite(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}\ShellFolder&quot;, &quot;Attributes&quot;, &quot;REG_DWORD&quot;, &quot;0x00000030&quot;)
	RegWrite(&quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{871C5380-42A0-1069-A2EA-08002B30308D}&quot;, &quot;&quot;, &quot;REG_SZ&quot;, &quot;&quot;)
	RegWrite(&quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel&quot;, &quot;{871C5380-42A0-1069-A2EA-08002B30308D}&quot;, &quot;REG_DWORD&quot;, &quot;0x00000000&quot;)
	DllCall(&quot;shell32.dll&quot;, &quot;none&quot;, &quot;SHChangeNotify&quot;, &quot;long&quot;, 0x8000000, &quot;int&quot;, 0, &quot;ptr&quot;, 0, &quot;ptr&quot;, 0)
EndFunc   ;==&gt;ShowButton

Func HideButton()
	RegDelete(&quot;HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}&quot;)
	RegDelete(&quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{871C5380-42A0-1069-A2EA-08002B30308D}&quot;)
	RegDelete(&quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel&quot;, &quot;{871C5380-42A0-1069-A2EA-08002B30308D}&quot;)
	RegWrite(&quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel&quot;, &quot;{871C5380-42A0-1069-A2EA-08002B30309D}&quot;, &quot;REG_DWORD&quot;, &quot;0x00000001&quot;)
	DllCall(&quot;shell32.dll&quot;, &quot;none&quot;, &quot;SHChangeNotify&quot;, &quot;long&quot;, 0x8000000, &quot;int&quot;, 0, &quot;ptr&quot;, 0, &quot;ptr&quot;, 0)
EndFunc   ;==&gt;HideButton

Func XShowButton()
	RegWrite(&quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel&quot;, &quot;{871C5380-42A0-1069-A2EA-08002B30309D}&quot;, &quot;REG_DWORD&quot;, &quot;0x00000000&quot;)
	DllCall(&quot;shell32.dll&quot;, &quot;none&quot;, &quot;SHChangeNotify&quot;, &quot;long&quot;, 0x8000000, &quot;int&quot;, 0, &quot;ptr&quot;, 0, &quot;ptr&quot;, 0)
EndFunc   ;==&gt;XShowButton

Func XHideButton()
	RegWrite(&quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel&quot;, &quot;{871C5380-42A0-1069-A2EA-08002B30309D}&quot;, &quot;REG_DWORD&quot;, &quot;0x00000001&quot;)
	DllCall(&quot;shell32.dll&quot;, &quot;none&quot;, &quot;SHChangeNotify&quot;, &quot;long&quot;, 0x8000000, &quot;int&quot;, 0, &quot;ptr&quot;, 0, &quot;ptr&quot;, 0)
EndFunc   ;==&gt;XHideButton

Func CLOSEClicked()
	Exit
EndFunc   ;==&gt;CLOSEClicked


版权声明:本站所有文章和资源使用CC BY-NC-SA 4.0协议授权发布 , 转载应当以相同方式注明文章来自“SeaOMC.COM->WinXP桌面IE图标设置及WIN7桌面IE图标设置!在下边可以分享本文哦!
喜欢 (0)
[]
分享 (0)
奇跡の海
关于作者:
一个WordPress菜鸟!
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址