目次
アンダースコアをシフトキーなしで入力する
sc073::_
参考:
AutoHotKey で Windows 7 のキー操作をカスタマイズする | ashel の日記
Alt キーでメニューにフォーカスが移らないようにする
*~LAlt::Send {Blind}{vkFF}
参考:
#MenuMaskKey | AutoHotkey [Official]
#MenuMaskKey | AutoHotkey Wiki
ショートカットキーを無効化する
参考:
ゲーム中の Windows キーを無効/有効に切り替える方法 | IT HOOK
ホットキーの上書きと無効化 | AutoHotkey Wiki
How to disable the Win key if it’s the only key being pressed using AutoHotkey? – Stack Overflow
クリップボード経由で文字列を挿入する
参考:
文字をまとめて高速入力する関数 InsertText を作る | 情報科学屋さんを目指す人のメモ
Autohotkey で IME 状態に関係なく、文字列を入力する方法 – Yahoo! 知恵袋
スクロールを早くする
スクロール量を3倍にする。
WheelUp:: Send, {WheelUp} Send, {WheelUp} Send, {WheelUp} Return WheelDown:: Send, {WheelDown} Send, {WheelDown} Send, {WheelDown} Return
クリックを検出する
参考:
How to detect a click on a specific window? – AutoHotkey Community
How can I hotkey middle mouse button – reddit
IME をオン/オフする
参考:
左右の修飾 (Alt、Ctrl、Win、Shift) キーで IME のオンとオフを切り替える – Qiita
ブラウザで URL を開く
Run
コマンドで URL を引数として与えてブラウザを起動する。
^g::Run, chrome.exe "https://www.google.com/"
参考:
Run / RunWait | AutoHotkey Wiki
how open chrome with specific url ahk ii – AutoHotkey Community
How to open a URL in a new browser window with AutoHotkey? – Super User
How to open a new chrome tab with Autohotkey? – Stack Overflow
ファイルを作成する
参考:
FileAppend | AutoHotkey [Official]
quiclky create new text file – AutoHotkey Community
デスクトップ上をホイールボタンクリックでタスクビューを表示する
ClickOnWindow(_title) { local _hWnd MouseGetPos,,,_hWnd If WinExist(_title) == _hWnd return 1 Else return 0 } #If ClickOnWindow("ahk_class WorkerW ahk_exe explorer.exe") Mbutton::#Tab #If
エクスプローラーのパスを取得する
GetExplorerPath(hwnd = 0) { if (hwnd == 0) { explorerHwnd := WinActive("ahk_class CabinetWClass") if(explorerHwnd == 0) explorerHwnd := WinExist("ahk_class CabinetWClass") } else { explorerHwnd := WinExist("ahk_class CabinetWClass ahk_id " . hwnd) } if (explorerHwnd){ for window in ComObjCreate("Shell.Application").Windows{ try{ if (window && window.hwnd && window.hwnd == explorerHwnd) return window.Document.Folder.Self.Path } } } return false } #IfWinActive, ahk_exe explorer.exe ^T:: Path := GetExplorerPath() MsgBox, %Path% Return #IfWinActive
参考:
Get current explorer window path – AutoHotkey Community
alt-ime-ahk
リポジトリ:
karakaram/alt-ime-ahk – GitHub
参考:
Windows の Alt 空打ちで日本語入力 (IME) を切り替えるツールを作った | karakaram-blog
Windows で Alt キーを使って IME を切り替える alt-ime-ahk を試してみた | Neo’s World
alt-ime-ahk-mod
リポジトリ:
nekocodeX/alt-ime-ahk-mod: US 左右 Alt キーの空打ちで IME を ON/OFF する AutoHotkey スクリプトのような何か – GitHub
IME.ahk
参考: