tags:

views:

25

answers:

1
+1  Q: 

AutoHotKey mapping

Hi

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

+4  A: 
!i::SendInput,{UP}
!j::SendInput,{LEFT}
!k::SendInput,{RIGHT}
!m::SendInput,{DOWN} 
Jay
Thanks a ton Jay!!
arunabhdas
The above settings worked but I had another question related to this. It seems that even though pressing Alt i causes the cursor to move left, if I use Alt i while simultaneously holding down Shift, it doesn't produce the same results as holding down Shift and pressing left arrow, i.e. the text in an editor getting selected as a result of this. Is there a way for AutoHotKey to get Alt i with Shift held down to behave exactly like Shift + Left Arrow?
arunabhdas
I *think* you need to map that explicitly: `+!i::SendInput,!{UP}`
Jay
Thanks Jay +!j::SendInput,+{LEFT} worked!!
arunabhdas