*Space::
SendInput {LShift Down}
If SandS_SpaceDown = 1
{
Return
}
SandS_SpaceDown := 1
SandS_SpaceDownTime := A_TickCount ; milliseconds after computer is booted http://www.autohotkey.com/docs/Variables.htm
SandS_AnyKeyPressed := 0
; watch for the next single key, http://www.autohotkey.com/docs/commands/Input.htm
Input, SandS_AnyKey, L1 V,{LControl}{RControl}{LAlt}{RAlt}{LShift}{LShift}{LWin}{RWin}{AppsKey}{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{Left}{Right}{Up}{Down}{Home}{End}{PgUp}{PgDn}{Del}{Ins}{BS}{Capslock}{Numlock}{PrintScreen}{Pause}
SandS_AnyKeyPressed := 1
Return
*Space Up::
SendInput {LShift Up}
SandS_SpaceDown := 0
If SandS_AnyKeyPressed = 0
{
If A_TickCount - SandS_SpaceDownTime < 200
{
SendInput {Space}
}
; Send EndKey of the "Input" command above
; You must use Send here since SendInput is ignored by "Input"
Send {LShift}
}
Return
# [control+tab] to [option+tab]
# [option+tab] to [control+tab]
LCtrl & Tab:: AltTab
!Tab::Send {LCtrl down}{Tab}{LCtrl up}
Return
# [control+pageup] to [control+option+left]
^!Right::
Send,^{PgDn}
Return
# [control+pagedown] to [control+option+right]
^!Left::
Send,^{PgUp}
Return
# [windows]キーを無効にするが [windows]キーを使ったショートカットは有効にする
; RWin::
; Send {LShift}
; return
; LWin::
; Send {LShift}
; return
快適キーボード操作のためのキーカスタマイズ 〜AutoHotKeyのキー押しっぱなし問題とScrollLockの非推奨~ | さくらのナレッジ