Skip to content

Instantly share code, notes, and snippets.

@yuki-tkd
Created May 26, 2020 08:15
Show Gist options
  • Save yuki-tkd/f58b5bcdb32ce214bfb47623251dd096 to your computer and use it in GitHub Desktop.
Save yuki-tkd/f58b5bcdb32ce214bfb47623251dd096 to your computer and use it in GitHub Desktop.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
^Space::Send, {vkF3sc029} ; Ctrl+Spaceで"全角/半角"キー送信
;win+hjkl to arrow
F12 & H::Send,{Blind}{Left}
F12 & J::Send,{Blind}{Down}
F12 & K::Send,{Blind}{Up}
F12 & L::Send,{Blind}{Right}
~LCtrl::Send,{vk1Dsc07B} ; 無変換 末尾が07Bが無変換
~RCtrl::Send,{vk1Csc079} ; 変換キー 末尾が079のやつが変換
; スクロールの方向を逆にする
;WheelUp::Send {WheelDown}
;Return
;WheelDown::Send {WheelUp}
;Return
; ctrl + shift + 3 -> Capture screenshot of the screen
#if GetKeyState("Ctrl", "P")
Shift & 3::RunWait PowerShell.exe -ExecutionPolicy Unrestricted -File .\screenshot_all.ps1 ,, hide
; ctrl + shift + 4 -> Capture screenshot of an active window
#if GetKeyState("Ctrl", "P")
Shift & 4::RunWait PowerShell.exe -ExecutionPolicy Unrestricted -File .\screenshot_window.ps1 ,, hide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment