LoginSignup
0
3

More than 5 years have passed since last update.

Autohotkey小ネタ

Posted at

AltTabの画面でホイール移動

WheelDown:: AltTab
WheelUp:: ShiftAltTab
;設定ファイルの先頭部に記述しないと動かないので注意

マウスホイールでカーソル横移動

;Shift+ホイールUp → 左カーソル
Shift & WheelUp::Send {left}

;Shift+ホイールUp → 右カーソル
Shift & WheelDown::Send {right}

Ctrl 二回連続押しでランチャー起動

ctrl::
If (A_PriorHotkey == A_ThisHotkey && A_TimeSincePriorHotkey < 1000)
Input,InputChar,L1 T1,{RWIN}
If ErrorLevel=Max
{
;Yahoo
If InputChar=y
Run,C:\Program Files (x86)\Google\Chrome\Application\chrome.exe "http://www.yahoo.co.jp/"
;サクラエディタ起動
If InputChar=s
Run, D:\programs\sakura\sakura.exe
Else
;ダウンロードフォルダ表示
If InputChar=d
Run, d:\Programs\HmFilerClassic\HmFilerClassic.exe d:\Download
Else
}
Return

保存時にAutoHotKey設定ファイル自動リロード

#IfWinActive, ahk_class Notepad
~^s::
ScriptName := "AutoHotkey.ahk"
IfWinActive, %ScriptName%
{
Reload
}
return

無変換+1or2でウィンドウ操作

; 無変換 + 1 → 最大化
sc07B & 1::Send, #{Up}

; 無変換 + 2 → ウィンドウ縮小(2回押すと最小化)
sc07B & 2::Send, #{Down}

0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3