6
votes

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!!

3
@marc AHK scripting is bona fide programming and fits better here than on SU.Jay

3 Answers

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

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.

0
votes

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.