如何在Windows中将“显示桌面”图标移动到快速启动栏或任务栏

If you aren’t a fan of scrolling your pointer over to the lower right corner of your monitor to show the desktop, we have a cool tweak that will allow you to add the Show Desktop icon to the Quick Launch bar or anywhere on your Taskbar.

如果您不喜欢将指针滚动到显示器的右下角以显示桌面,那么我们可以进行一些很酷的调整,使您可以将“显示桌面”图标添加到“快速启动”栏或任务栏上的任何位置。

If you want to easily get access to the Desktop in Windows 7, 8, or 10, you’ve undoubtedly noticed they moved the Show Desktop to the lower right corner of the screen. This can be annoying if you have a dual monitors, or even a large monitor.

如果您想轻松访问Windows 7、8或10中的桌面,您无疑会注意到他们将“显示桌面”移动到了屏幕的右下角。 如果您有双显示器甚至大显示器,这可能会很烦人。

There are a couple of ways you can make the Show Desktop icon more accessible. We’ll take a look at each and you can choose which method works best for you. We show both methods in Windows 10, but they will also work in Windows 7 and 8.

有两种方法可以使“显示桌面”图标更易于访问。 我们将仔细研究每种方法,您可以选择最适合您的方法。 我们在Windows 10中展示了这两种方法,但在Windows 7和8中也可以使用。

如何通过重新添加快速启动栏将“显示桌面”图标放回以前的位置 (How to Put the Show Desktop Icon Back to Where it Used to Be by Adding Back the Quick Launch Bar)

The first method of moving the Show Desktop icon is to add back the Quick Launch bar to the Taskbar. The Quick Launch bar contains a Show Desktop option, so once you follow the steps in our article to bring back the Quick Launch bar, you should see the Show Desktop icon on the left side of the Taskbar. If you don’t, the article also describes how to move icons on the Quick Launch bar.

移动“显示桌面”图标的第一种方法是将“快速启动”栏重新添加到任务栏 。 快速启动栏包含一个“显示桌面”选项,因此,一旦按照本文中的步骤将“快速启动”栏带回去,您应该在任务栏的左侧看到“显示桌面”图标。 如果您不这样做,本文还将介绍如何在“快速启动”栏上移动图标。

This method will “kill two birds with one stone” by getting the Quick Launch bar and the Show Desktop icon back where they used to be in Windows.

通过使快速启动栏和“显示桌面”图标恢复到以前在Windows中的位置,此方法将“用一块石头杀死两只鸟”。

如何将显示桌面图标固定到任务栏 (How to Pin the Show Desktop Icon to the Taskbar)

If you don’t want the Quick Launch bar back, you could pin the icon to the Taskbar instead. Unfortunately, the process isn’t as easy as a simple drag and drop, but there is an easy workaround.

如果您不希望快速启动栏返回,则可以将图标固定在任务栏上。 不幸的是,该过程并不像简单的拖放那样简单,但是有一个简单的解决方法。

Right-click on any empty area of the desktop and go to New > Text Document.

右键单击桌面上的任何空白区域,然后转到“新建”>“文本文档”。

Rename the document to Show Desktop.exe.

将文档重命名为Show Desktop.exe

NOTE: You will need to have file extensions showing in order for this to work.

注意:您需要显示文件扩展名才能正常工作。

The following warning dialog box displays because you are changing the extension on the shortcut. Click the “Yes” button to change the name and extension on the shortcut.

显示以下警告对话框,因为您正在更改快捷方式上的扩展名。 单击“是”按钮更改快捷方式的名称和扩展名。

Right-click on the dummy .exe file you just made and select “Pin to taskbar” from the popup menu.

右键单击刚刚创建的虚拟.exe文件,然后从弹出菜单中选择“固定到任务栏”。

Create a new text file in Notepad, or your favorite text editor, and copy and paste the following code into the new file.

在记事本或您喜欢的文本编辑器中创建一个新的文本文件,然后将以下代码复制并粘贴到新文件中。

[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop

Press Ctrl+S to save the file. In the Save As dialog box, navigate to the following folder and make sure you select “All Files (*.*)” from the “Save as type” dropdown.

按Ctrl + S保存文件。 在“另存为”对话框中,导航到以下文件夹,并确保从“另存为类型”下拉列表中选择“所有文件(*。*)”。

C:\Users\<user name>\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

Replace <user name> with your Windows user name.

<user name>替换<user name> Windows用户名。

NOTE: If you don’t see the AppData folder, you must check the “Show hidden files, folders, and drives” box on the View tab on the Folder Options dialog box.

注意:如果看不到AppData文件夹,则必须在“文件夹选项”对话框的“视图”选项卡上选中“显示隐藏的文件,文件夹和驱动器”框

Type Show Desktop.scf in the “File name” box and click the “Save” button.

在“文件名”框中键入Show Desktop.scf ,然后单击“保存”按钮。

Close Notepad (or your favorite text editor) by clicking the “X” button in the upper-right corner of the window.

通过单击窗口右上角的“ X”按钮,关闭记事本(或您喜欢的文本编辑器)。

Now, we’re going to edit the properties of the shortcut we pinned to the Taskbar. Right-click on the Show Desktop.exe icon, right-click again on the “Show Desktop” option on the popup menu, and then select “Properties from the second popup menu.

现在,我们将编辑固定到任务栏的快捷方式的属性。 右键单击Show Desktop.exe图标,再次右键单击弹出菜单上的“显示桌面”选项,然后从第二个弹出菜单中选择“属性”。

On the Properties dialog box, enter the following path into the Target box on the Shortcut tab, making sure to keep the quotes around the full path. The quotes are required because there are spaces in the path.

在“属性”对话框上,在“快捷方式”选项卡上的“目标”框中输入以下路径,确保将引号保留在完整路径的周围。 引号是必需的,因为路径中有空格。

"C:\Users\<user name>\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Show Desktop.scf"

Again, replace <user name> with your user name.

同样,用您的用户名替换<user name>

Don’t close the Properties dialog box just yet! You have your new icon on the Taskbar, but you might want to change the icon to something more appealing.

暂时不要关闭“属性”对话框! 您在任务栏上有了新图标,但是您可能希望将图标更改为更具吸引力的图标。

While the Properties dialog box is still open, and the Shortcut tab is still active, click the “Change Icon” button.

在“属性”对话框仍然打开且“快捷方式”选项卡仍处于活动状态时,单击“更改图标”按钮。

Because there is no icon associated with the Show Desktop.exe icon we pinned to the Taskbar, we have to select an icon from a different file.

因为没有固定在任务栏上的与Show Desktop.exe图标相关联的图标,所以我们必须从其他文件中选择一个图标。

No worries, though. Windows automatically selects the shell32.dll file in the %SystemRoot%\system32\ folder that contains a lot of icons from which you can choose. Select an icon by clicking on it in the “Select an icon from the list below” box and click the “OK” button.

不用担心。 Windows会自动在%SystemRoot%\system32\文件夹中选择shell32.dll文件,该文件包含许多图标供您选择。 在“从下面的列表中选择一个图标”框中单击以选择一个图标,然后单击“确定”按钮。

Now, click the “OK” button to close the Properties dialog box.

现在,单击“确定”按钮以关闭“属性”对话框。

Initially, the icon may not change on the Show Desktop.exe icon on the Taskbar. However, restarting File (or Windows) Explorer will fix this.

最初,该图标在任务栏上的Show Desktop.exe图标上可能不会更改。 但是, 重新启动文件(或Windows)资源管理器将解决此问题。

Here is the Show Desktop icon on the Taskbar.

这是任务栏上的“显示桌面”图标。

The Show Desktop icon on the far right side of the Taskbar is still available in Windows 7, 8, and 10, even after using one or both of these methods to “move” it.

在Windows 7、8和10中,即使使用这两种方法中的一种或两种“移动”它,任务栏最右侧的“显示桌面”图标仍然可用。

For more on changing icons to something more unique, check out our guide to customizing icons in Windows, and chanaging icons for certain file types.

有关将图标更改为更独特的内容的更多信息,请查看我们的指南,以在Windows中自定义图标以及针对某些文件类型更改图标

翻译自: https://www.howtogeek.com/howto/28600/move-the-show-desktop-icon-to-quick-launch-or-taskbar-in-windows-7/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 你可以使用AutoHotkey编写一个脚本来实现在Windows 10上使用热键来隐藏/显示桌面图标。以下是一个简单的示例脚本: #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% ; 隐藏桌面图标 ^!h:: DllCall("Shell32.dll\SHGetSetSettings", "ptr", , "ptr", x00000001, "ptr", , "uint", ) WinGetClass, ProgmanClass, Progman WinGetClass, WorkerWClass, WorkerW WinHide, ahk_class %ProgmanClass% WinHide, ahk_class %WorkerWClass% return ; 显示桌面图标 ^!s:: DllCall("Shell32.dll\SHGetSetSettings", "ptr", , "ptr", x00000002, "ptr", , "uint", ) WinGetClass, ProgmanClass, Progman WinGetClass, WorkerWClass, WorkerW WinShow, ahk_class %ProgmanClass% WinShow, ahk_class %WorkerWClass% return 在这个脚本中,我们使用了两个热键:Ctrl+Alt+H来隐藏桌面图标,Ctrl+Alt+S来显示桌面图标。当按下Ctrl+Alt+H时,脚本会调用Shell32.dll中的SHGetSetSettings函数来隐藏桌面图标,然后使用WinHide命令隐藏Progman和WorkerW窗口。当按下Ctrl+Alt+S时,脚本会调用SHGetSetSettings函数来显示桌面图标,然后使用WinShow命令显示Progman和WorkerW窗口。 请注意,这个脚本可能不适用于所有的Windows 10系统,因为不同的系统可能使用不同的窗口类名来表示桌面图标。如果你发现这个脚本不能正常工作,请尝试使用其他的窗口类名。 ### 回答2: 在Windows 10操作系统中,我们可以通过自定义热键来实现隐藏/显示桌面图标的功能。为此,我们需要先下载并安装AutoHotkey这一免费软件,然后新建一个AHK文件(后缀名为.ahk),在其中输入以下代码: #NoTrayIcon #Persistent #IfWinActive ahk_class Progman ^!d:: SendMessage 0x111, 0x7, 0, 0, , Progman Return 其中,“#NoTrayIcon”表示喊AutoHotkey将不会在系统托盘中显示图标,“#Persistent”则表示脚本将持续运行,“#IfWinActive ahk_class Progman”指定当桌面为当前活动窗口时才会生效。 然后,在代码中的“^!d::”后面,我们可以自定义所需的热键,这里的“^”表示Ctrl键,“!”表示Alt键,“d”表示D键,即组合键Ctrl+Alt+D。我们可以根据实际需求修改热键。发送消息“SendMessage 0x111, 0x7, 0, 0, , Progman”则实现了隐藏/显示桌面图标的功能。 当我们保存并运行该脚本后,在Windows 10操作系统中使用Ctrl+Alt+D组合键,即可实现隐藏/显示桌面图标的功能。需要注意的是,该脚本的效果不会立即生效,我们需要重新启动Windows Explorer程序或注销/重新登录才能看到效果。 总的来说,通过AutoHotkey软件自定义热键可以方便快捷地实现Windows 10系统中的各种功能,包括隐藏/显示桌面图标。但是需要注意的是,在操作时请确保准确按下组合键,以避免出现意外情况。 ### 回答3: 在Windows 10操作系统中,隐藏和显示桌面图标的方法有很多种,其中使用热键是一种方便快捷的方式。 首先,我们需要使用AutoHotkey(AHK)软件来定义一个热键。AutoHotkey是一款小巧而强大的脚本语言软件,它可以让我们自定义各种热键和脚本,实现更为高效的电脑操作。如果没有安装AutoHotkey,我们需要先下载和安装此软件。 接着,我们打开AutoHotkey软件,右键点击桌面,选择“新建AutoHotkey脚本”,在打开的编辑器中书写以下代码: ^!h:: WinGet, exStyle, Style, ahk_class Progman If (exStyle & 0x100) { WinSet, Style, -0x100, ahk_class Progman WinGet, ExStyle, Style, ahk_class WorkerW WinSet, Style, -0x20, ahk_class WorkerW } Else { WinSet, Style, +0x100, ahk_class Progman WinGet, ExStyle, Style, ahk_class WorkerW WinSet, Style, +0x20, ahk_class WorkerW } 上述代码的含义是:按下Ctrl+Alt+H的热键,可以隐藏或显示桌面图标。当桌面图标处于显示状态时,按下此热键会隐藏桌面图标;反之,当桌面图标处于隐藏状态时,按下此热键会显示桌面图标。 最后,我们保存脚本,并双击打开它。接着,我们就可以使用Ctrl+Alt+H的热键快捷地隐藏或显示桌面图标了。当然,如果需要修改热键,可以在脚本中将“^!h”更改为其他热键。 总之,使用热键可以让我们更方便快捷地隐藏和显示桌面图标,极大地提高了我们的工作效率和操作体验。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值