最近、方法をお見せしましたQuicksilverにBit.ly URL短縮を追加します、そして今、KevinはAutohotkeyスクリプトを作成しているため、Windowsユーザーは迅速なキーボードベースのURL短縮を楽しむことができます。
Kevinは、スクリプトをカスタマイズしたい人のための指示を含めるのに十分なほど素晴らしかった(インターネットの速度や選択したブラウザの速度に応じて必要な場合があります)。スクリプトを起動するために必要なのはCtrl+Shift+Bにヒットし、Firefoxの現在のURLが短縮され、クリップボードにコピーされます。 (別のブラウザを使用することはできますが、彼のスクリプトを変更する必要があります。)必要に応じてショートカットを変更することもできます。スクリプトは次のとおりです。
; AutoHotkey Version: 1.x; Language: English; Platform: Win9x/NT; Author: A.N.Other ;;#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.SendMode Input ; Recommended for new scripts due to its superior speed and reliability.SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.waitTimeLoad = 700 ;; for slower internect connections, this number needs to be larger (in milliseconds)waitTimeKey = 200 ;; for slower computers, this number needs to be larger (in milliseconds)^+b:: ;; delete this to make this script run once and stop (for keyboard launchers)IfWinExist, ahk_class MozillaUIWindowClass ;; modify ahk_class for use with other browsers WinActivate Send ^l Send ^c ;; put URL in clipboard Send ^t Send https://bit.ly/?url= Send ^v Send {Enter} Sleep %waitTimeLoad% Send ^a Sleep %waitTimeKey% send ^c Sleep %waitTimeKey% ;; change this for your pc send ^w msgbox %clipboard%`n`nShortened URL Copied to clipboard return
スタートアップフォルダーに投げ込むか、既存のAHKスタートアップスクリプトに追加するだけです(これが機能するためにAutoHotkeyをインストールする必要があります)。クイックURLの短縮に関する他のヒントはありますか?コメントでそれらを共有してください!ありがとう、ケビン!