键盘忍者:使用单个热键弹出Vista日历
We’ve covered how to access the Windows Vista Calendar using the keyboard, but what if you wanted to assign a single keystroke to pop up the calendar? Yeah, sure, you can just click it with the mouse, but where’s the geek fun in that?
我們已經(jīng)介紹了如何使用鍵盤訪問Windows Vista日歷,但是如果您想分配一個按鍵來彈出日歷怎么辦? 是的,當(dāng)然,您可以用鼠標(biāo)單擊它,但是其中的怪胎樂趣在哪里?
In case you aren’t sure what we’re talking about, you can use Win+B, then Left, then Enter to pop up this calendar with the keyboard (or you can just click once on the clock). But we can get that down to a single keystroke with an AutoHotkey script.
如果您不確定我們在說什么,可以使用Win + B,然后按Left,然后按Enter來使用鍵盤彈出該日歷(或者您可以單擊時鐘一次)。 但是我們可以使用AutoHotkey腳本將其簡化為單個擊鍵。
Note: I came up with this idea after reading an article from Digital Inspiration about launching timedate.cpl with a shortcut.
注意:在閱讀Digital Inspiration中有關(guān)使用快捷方式啟動timedate.cpl的文章后,我想到了這個想法。
Using the AutoHotkey Script
使用AutoHotkey腳本
In order to use this script, you’ll need to have AutoHotkey installed. If you’d rather not do that, there’s a compiled version further down.
為了使用此腳本,您需要安裝AutoHotkey 。 如果您不愿意這樣做,則還有一個編譯后的版本。
What we’ll do is assign the F12 key to send the keystrokes instead of having to do them manually. Create a new file named something.ahk and then paste in the following:
我們要做的是分配F12鍵來發(fā)送擊鍵,而不必手動進(jìn)行。 創(chuàng)建一個名為something.ahk的新文件,然后粘貼以下內(nèi)容:
#InstallKeybdHook#Persistent#HotkeyInterval,100SetKeyDelay, -1
#InstallKeybdHook#Persistent#HotkeyInterval,100SetKeyDelay,-1
f12::{send, {lwin down}b{lwin up}sleep 10send, {left}sleep 10send, {enter}Return}
f12 :: {發(fā)送,{lwin向下} b {lwin向上}Hibernate10發(fā)送,{left}Hibernate10發(fā)送,{enter}返回}
Save the file, and now you can double-click on it to launch it.
保存文件,現(xiàn)在您可以雙擊它來啟動它。
At this point you can use the F12 key to pop open the calendar. If you want to close the script out, there’s an icon in the system tray.
此時,您可以使用F12鍵彈出日歷。 如果要關(guān)閉腳本,則系統(tǒng)托盤中會有一個圖標(biāo)。
Note: You can substitute another key instead of F12 if you want. You could also add #NoTrayIcon to keep it from putting an icon into the system tray.
注意:如果需要,可以用其他鍵代替F12。 您還可以添加#NoTrayIcon,以防止其將圖標(biāo)放入系統(tǒng)托盤中。
Using the Compiled Application
使用編譯的應(yīng)用程序
I’ve included a compiled .exe version of the script in the download that you can run if you don’t have AutoHotkey installed. Just double-click on VistaCalendarHotkey.exe to run it.
如果未安裝AutoHotkey,則在下載文件中包含腳本的已編譯.exe版本。 只需雙擊VistaCalendarHotkey.exe即可運行它。
Download VistaCalendarHotkey AutoHotkey Script/Application
下載VistaCalendarHotkey AutoHotkey腳本/應(yīng)用程序
翻譯自: https://www.howtogeek.com/howto/windows-vista/keyboard-ninja-pop-up-the-vista-calendar-with-a-single-hotkey/
總結(jié)
以上是生活随笔為你收集整理的键盘忍者:使用单个热键弹出Vista日历的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 接入amazon avs_每日新闻综述:
- 下一篇: 如何保存推特链接以供以后从台式机和手机阅