想(Want)知道如何创建键盘快捷键以在Windows 10上执行任何操作吗?本指南将有所帮助。令人惊讶的是,创建一个可以打开程序、执行可重复任务并加快工作流程的快速键绑定非常容易。
我将建议您可以使用许多不同的选项来制作键盘快捷键,并提供一些示例来说明如何将它们发挥最大潜力。
快速打开程序
我可以看到这个快捷方式选项对大量Windows 10用户很有用。设置起来既快速又容易,以便快速快捷方式可以打开任何可执行文件。这是如何做到的。
首先,从 Directedge 下载 WinHotKey 程序(WinHotKey program from Directedge)。它可以免费使用。它有点旧,但它可以工作而且很干净。下载后,通过安装向导,然后启动WinHotKey。在WinHotKey中,单击左上角的New HotKey。
在出现的新窗口中,为热键命名(give the hotkey a name)。之后,选择(choose what combination)您想要触发快捷方式的组合。例如,我选择了Windows+F2。之后,您可以单击“浏览( Browse )”选项来查找要打开的可执行文件的位置。
或者,您可以只复制并粘贴该位置。WinHotKey将自动抓取应用程序图标,以便为您提供有关它的视觉上下文。您现在可以使用您指定的热键打开您的程序。
您必须确保您的键盘快捷键不与任何现有快捷键冲突,无论是Windows默认快捷键还是WinHotKey界面中的快捷键。例如,不能使用Alt+F4最好坚持使用Windows + ’X’组合以避免冲突。
自动键入文本
如果您始终键入相同的句子或单词,您也可以使用WinHotKey将其自动化。为此,请单击WinHotKey中的(WinHotKey)New Hotkey,然后单击I want WinHotKey to:下的下拉框,然后选择Type some text。
现在,将文本键入或粘贴到新热键窗口底部的框中。最后,确保选择一个您以前没有使用过的新键盘快捷键。
使用此快捷方式使用的字符数没有限制,但如果您粘贴的任何内容中有换行符,它将在那里结束。因此,最好复制单个段落,例如Instagram的标签或(Instagram)YouTube描述的社交链接。
在Windows 10(Windows 10)中打开文件夹和文档
WinHotKey还可用于在Windows 10中快速打开特定文件夹和文档。您可以简单地选择“我希望 WinHotKey 用于: ”下拉框下的“(I want WinHotKey to:)打开文档”(Open a Document )或“打开文件夹(Open a Folder )”选项,然后按照与上述相同的步骤进行操作。
不过这一次,您需要浏览到特定的文件或应用程序。如果您选择打开文档选项,大多数文档都可以使用,只要您有一个默认打开这些类型文件的支持应用程序。通过我的测试,我可以获得Photoshop 、 Excel等办公应用程序、PDF文件和文本文件。
如果某个文件不起作用,Windows 10 将要求您为该文件类型选择一个默认应用程序,然后该文件类型的未来热键也将起作用。
对表情符号使用自动热键
AutoHotkey是另一个适用于Windows 10的应用程序,可以帮助您创建更复杂的键盘快捷键。该软件可用于自动化大量不同的任务。您可以从他们的网站免费下载 Autohotkey 。(download Autohotkey from their website)
下载后,将文件解压缩到一个容易记住的位置。然后,在目录中,双击一个 .ahk 文件(double click an .ahk file),然后在询问时选择浏览(choose to browse )应该使用什么应用程序来打开这些文件。
接下来(Next),浏览并导航到 AutoHotkeyU64(navigate to
AutoHotkeyU64)。这将允许您通过双击它们来运行AutoHotkey脚本。(AutoHotkey)
在智能手机上使用表情符号非常容易,但默认情况下在计算机上没有任何简单的方法可以做到这一点。使用
Autohotkey,您可以设置多个表情符号快捷键。这是如何做到的。
创建热键扩展可能非常复杂,但幸运的是互联网上有许多很棒的自动热键脚本。对于创建表情符号,我们建议使用这个(we’d suggest this one)。
在上面共享的页面上,单击原始(Raw )按钮以转到原始文本文件。接下来(Next),按Ctrl+A选择整个代码。然后按Ctrl+C将其全部复制。之后,打开记事本(Notepad)文件并将代码粘贴到那里。
现在,单击记事本中的文件( File ),然后单击另存为(Save as)。导航到您提取Autohotkey的目录。接下来(Next),单击保存类型(Save as type )下拉框并选择所有文件。(All files. )现在,将其命名为Emoji.ahk,然后单击保存。( Save.)
要使用此热键脚本,您需要在每次启动 PC 时双击它( double click it each time you start your
PC)。之后,您可以输入 :smiley: 之类的表情符号代码来自动使用表情符号。您可以随时参考上面的Github链接,查看每个表情符号使用了哪些代码。
更高级的自动热键脚本
更高级的Autohotkey(Autohotkey)脚本的潜力令人印象深刻。您可以在此处阅读一些最佳脚本(best scripts here)。一些示例包括以下内容:
- 使用键绑定放大屏幕
- 使用鼠标手势
- 轻松拖动窗口
- 快速访问您喜欢的文件夹
- (View)通过屏幕上的小叠加层查看上传/下载速度
概括
我希望本使用Windows键盘快捷键的指南对您有所帮助。你(Did)有学到什么吗?但愿如此。您是否(Did)对本指南中的任何建议感到困惑?如果是这样,请给我发一条推文(Tweet),我很乐意尽快提供帮助。
Create Custom Keyboard Shortcuts for Anything in Windows 10
Want to know how to create keyboаrd shortcuts
to do anything on Windows 10? This guide will help. Surprisingly, it’s quite
easy to create a quick kеybind that can open programѕ, perform repeatable
taѕks, and speed up your workflow.
I’ll suggest a number of different options you
can use to make keyboard shortcuts and provide some examples of how you can use
them to their max potential.
Open Programs Quickly
I can see this shortcut option being useful
for a large number of Windows 10 users. It’s quick and easy to set it up so
that a quick shortcut can open any executable file. Here’s how to do it.
First, download the WinHotKey program from Directedge. It’s free to use. It’s a bit old, but it works and it’s clean. Once downloaded, go through the installer wizard, then launch WinHotKey. In WinHotKey, click New HotKey in the top left.
In the new window that appears, give the hotkey a name. After, choose what combination you’d like to trigger the shortcut. For example, I chose to do Windows+F2. After, you can click the Browse option to find the location of the executable you’d like to open.
Alternatively, you can just copy and paste the
location. WinHotKey will automatically grab the application icon so that you
are given visual context about it. You can now open your program with the
hotkey you’ve specified.
You must make sure that your keyboard shortcut doesn’t conflict with any existing shortcuts, either Windows defaults or from within the WinHotKey interface. For example, Alt+F4 couldn’t be used. It’s best to stick to Windows + ’X’ combinations to avoid conflicts.
Automatically Type Text
If you consistently type the same sentences or words, you can automate it with WinHotKey too. To do this, click New Hotkey in WinHotKey, then click the drop down box under I want WinHotKey to: and select Type some text.
Now, type or paste the text into the box at the bottom of the new hotkey window. Finally, make sure to choose a new keyboard shortcut you haven’t used before.
There isn’t a limit on how many characters you use with this shortcut, but if there is a line break in anything you paste, it will end there. So, it’s best for copying single paragraphs, things like hashtags for Instagram or social links for YouTube descriptions.
Open Folders and Documents in Windows 10
WinHotKey can also be used to quickly open specific folders and documents within Windows 10. You can simply select the Open a Document or Open a Folder options under the I want WinHotKey to: dropdown box and then follow the same steps as above.
This time though, you’ll need to browse to a
specific file or application. If you choose the open document option, most
documents will work, so long as you have a supporting application defaulted to
open those kinds of files. From my testing, I could get Photoshop, office apps
like Excel, PDF files, and text files.
If a file didn’t work, Windows 10 will ask you
to choose a default application for that file type, and then future hotkeys
with that file type would then also work.
Use Autohotkey for Emojis
AutoHotkey is another application for Windows 10 that can help you to create more complex keyboard shortcuts. This software can be used to automate a large number of different tasks. You can download Autohotkey from their website for free.
Once you’ve downloaded it, extract the file to
a memorable location. Then, in the directory, double click an .ahk file, then when asked, choose to browse what application should be used to open such files.
Next, browse and navigate to
AutoHotkeyU64. This will allow you to run AutoHotkey scripts by double
clicking them.
It’s very easy to use emojis on a smartphone,
but there isn’t any easy way to do this on a computer by default. With
Autohotkey, you can set up a number of emoji shortcuts. Here’s how to do it.
Creating a hotkey extension can be quite complex, but thankfully there are dozens of great autohotkey scripts on the internet. For creating emojis, we’d suggest this one.
On the page shared above, click the Raw button to be taken to a raw text file. Next, press Ctrl+A to select the entire code. Then press Ctrl+C to copy it all. After, open a Notepad file and paste the code there.
Now, click File in Notepad, then click Save as. Navigate to the directory you extracted Autohotkey. Next, click the Save as type drop down box and select All files. Now, name it Emoji.ahk and click Save.
To use this hotkey script, you’ll need to double click it each time you start your
PC. After, you can type emoji codes like :smiley: to automatically use
emojis. At any time, you can refer back to the Github link above to see which
codes are used for each emoji.
More Advanced Autohotkey Scripts
The potential for more advanced Autohotkey scripts is quite impressive. You can read up on some of the best scripts here. Some examples include the following:
- Magnify the screen with keybinds
- Use mouse gestures
- Drag windows easily
- Quickly access your favorite
folders
- View upload/download speed via a
small on-screen overlay
Summary
I hope that this guide on using Windows keyboard shortcuts has been useful. Did you learn anything? I hope so. Did you struggle with any of the suggestions in this guide? If so, send me a Tweet and I’ll be happy to help out as soon as possible.