Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AutoHotKey mapping

Tags:

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

like image 377
Arunabh Das Avatar asked Jul 08 '10 20:07

Arunabh Das


People also ask

What is AutoHotkey used for?

Technically, AutoHotKey is a scripting language and interpreter that enables you to automate actions within Windows and installed actions. In practice, many people use AutoHotKey for tasks such as text expansion, mapping keys and mouse clicks to shortcuts or other actions, and launching programs.

What is mouse button 4 in AHK?

Advanced Buttons 4th mouse button. Typically performs the same function as Browser_Back. 5th mouse button. Typically performs the same function as Browser_Forward.


Video Answer


2 Answers

!i::SendInput,{UP}
!j::SendInput,{LEFT}
!k::SendInput,{RIGHT}
!m::SendInput,{DOWN} 
like image 126
Jay Avatar answered Oct 06 '22 23:10

Jay


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.

like image 1
Miguel Avatar answered Oct 07 '22 00:10

Miguel