미니 키보드를 사용 중인 개발자로서
home/end 키를 PageUP/down키보다 자주 쓰는데,
home/end키가 fn을 늘 함께 써야 하는 불편함에
autohotkey를 설치해서 사용중.
또 원격 데스크탑에 autohotkey를 적용하기 위해선, 후킹을 해야 하므로 아래와 같이
추가 스크립트가 필요함 .
#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.
PgUp::Home
Home::PgUp
PgDn::End
End::PgDn
#IfWinActive ahk_class TscShellContainerClass
~vkFF::
; An artificial vkFF keystroke is detected when the RDP client becomes active.
; At that point, the RDP client installs its own keyboard hook which takes
; precedence over ours, so ...
if (A_TimeIdlePhysical > A_TimeSinceThisHotkey)
{
Suspend On
Suspend Off ; ... reinstall our hook.
Sleep 50
}
return
반응형
'Develop' 카테고리의 다른 글
WSA ( windwos subsystme for adroid ) 설치 (0) | 2021.10.24 |
---|---|
[java] int <-> byte[] 변환 (0) | 2021.09.17 |
Envoy & gRPC (0) | 2021.07.23 |
hyper-v 에서 Pop-OS 해상도 변경하기 (0) | 2021.07.03 |
윈도우 11 인사이더 프리뷰 설치 (0) | 2021.06.30 |