Develop

[Autohotkey Scrpit] 미니키보드 용

freetome 2021. 8. 23. 16:49

미니 키보드를 사용 중인 개발자로서

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
반응형