开发者

AutoHotKey mapping

开发者 https://www.devze.com 2023-01-06 07:56 出处:网络
I am trying to map the following key combinations on my keyboard using开发者_开发百科 AutoHotkey -

I am trying to map the following key combinations on my keyboard using开发者_开发百科 AutoHotkey -

Alt i -> Up Arrow Alt j -> Left Arrow Alt k -> Right Arrow Alt m -> Down Arrow

I added the following code to my AutoHotkey.ahk file -

!i::Up
!j::Down
!m::Left
!k::Right

but it doesn't produce the desired results. Please help!!


!i::SendInput,{UP}
!j::SendInput,{LEFT}
!k::SendInput,{RIGHT}
!m::SendInput,{DOWN} 


Jay's answer works, but

!i::Send {Up}
Return
!k::Send {Down}
Return
!l::Send {Right}
Return
!j::Send {Left}
Return

is a much faster solution.


I think a better approach is to use the freeware application TouchCursor http://touchcursor.sourceforge.net/overview.html It has training mode, is easier to configure. Also, I was surprised to learn that using 'space' rather than 'alt' works much better in practice.

0

精彩评论

暂无评论...
验证码 换一张
取 消