autohotkey

Triggering simultaneous key press and hold in AutoHotKey


how do i get WASD to mirror the exact same actions that the arrow keys do?

Say if I hold the Up arrow key for a few seconds I'm trying to get W to mirror the same.

This is what I've tried so far

   Up::
{
    Send("{Up}")
    Sleep(50)  ; Waits 50 milliseconds
    Send("w")
}

Solution

  • It's actually as simple as:

    ~up::w
    ~down:s
    ~left::a
    ~right::d