Skip to content

Instantly share code, notes, and snippets.

@katapad
Created March 2, 2017 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katapad/ba6a3c76da1337cb80fde08521c59beb to your computer and use it in GitHub Desktop.
Save katapad/ba6a3c76da1337cb80fde08521c59beb to your computer and use it in GitHub Desktop.
Rider上でCtrl + p すると Unity で RunしてくれるAutoHotKey
SetTitleMatchMode, 2 ; 中間一致
; http://d.hatena.ne.jp/monk_saruhobo/20050712/p1
; https://sites.google.com/site/agkh6mze/howto/detect_window
$^p::
if ( WinActive("ahk_class SunAwtFrame") ) {
WinActivate, Unity
Sleep, 500
Send, ^p
return
} else {
Send, ^p
}
return
;hoge-project - [C:\Users\hoge\hoge.sln] - Hoge.cs - Rider 1.0 EAP
;ahk_class SunAwtFrame
;ahk_exe rider64.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment