How to remap arrow keys with AutoHotkey?

Discussion in 'Technical Help' started by Fii, Jun 12, 2025.

  1. Fii
    Offline

    Fii Donator

    Joined:
    Jul 23, 2019
    Messages:
    234
    Likes Received:
    406
    Gender:
    Female
    Location:
    International
    I want to remap my arrow keys to WASD but only for Royals instead of hardware remapping, I've tried running in admin but it doesn't work.
    Does anyone familiar with or have been using it?
     
  2. pogdog
    Offline

    pogdog Donator

    Joined:
    Jun 12, 2022
    Messages:
    712
    Likes Received:
    1,490
    Country Flag:
    IGN:
    pogdog
    Guild:
    Create
    Code:
    #IfWinActive ahk_exe MapleRoyals.exe
    
    a::Left
    s::Down
    d::Right
    w::Up
    return
    
    This should work, also make sure you're using AHK v1 and not v2. 0:)
     
  3. winterpast
    Offline

    winterpast Donator

    Joined:
    Dec 25, 2016
    Messages:
    182
    Likes Received:
    218
    IGN:
    Winterpast
    Guild:
    Revival
    also if you want to be able to toggle it on and off with ` so you can type in chat, you can add this

    Code:
    *`::
    Suspend ;Suspend Hotkeys off/on
    Pause,, 1 ;Pause Script off/on
    Return
     
  4. Fii
    Offline

    Fii Donator

    Joined:
    Jul 23, 2019
    Messages:
    234
    Likes Received:
    406
    Gender:
    Female
    Location:
    International

    Thanks all for answering, by the way does L-Win key remapping not work properly in Royals? I'm now trying to utilize that key with the similar trick but seems that the game disabled it completely:confused:
     
  5. NehZu
    Offline

    NehZu Donator

    Joined:
    Dec 10, 2023
    Messages:
    510
    Likes Received:
    1,014
    Gender:
    Male
    Country Flag:
    MapleRoyals disable Windows key somehow, pretty weird.
     
    Moeyuki and Fii like this.
  6. Fii
    Offline

    Fii Donator

    Joined:
    Jul 23, 2019
    Messages:
    234
    Likes Received:
    406
    Gender:
    Female
    Location:
    International
    Alright that means I still have to hardware rebind on the two win keys I guess-.-'
    Thanks for answering.
     
  7. Emoducky
    Offline

    Emoducky Well-Known Member

    Joined:
    May 4, 2019
    Messages:
    141
    Likes Received:
    61
    Country Flag:
    IGN:
    Emodukky
    Level:
    198
    Guild:
    Cloudy/Ours
    I personally switched off from AHK to windows PowerToys. AHK seemed to have a lot of issues with keys getting stuck. Only downside so far with powertoys is that it's a bit tedious to change between farming/bossing keys if you have different setups and switch often. Its very straightforward though with remapping your keys. Recommend both still.
     
    Fii likes this.
  8. Fii
    Offline

    Fii Donator

    Joined:
    Jul 23, 2019
    Messages:
    234
    Likes Received:
    406
    Gender:
    Female
    Location:
    International
    I've just tried for a 10 minute boss run and I also felt the issue of stucking. But PowerToys can't actually satisfy me because I can't remap everything freely when it comes to per-program remapping(I wanted to remap my alt-tab but it doesn't allow me to), there is no difference between PowerToys and my original hardware level remapping, means I have to sacrificed the convenience of playing Royals and chatting at same time.
    Evantually I just switched back to hardware so at least I don't have to install anything-.-'
     
    Sylafia likes this.
  9. skete
    Offline

    skete Well-Known Member

    Joined:
    Jan 19, 2023
    Messages:
    289
    Likes Received:
    569
    If you're not on a laptop and have a gaming keyboard you can use their software to remap or if you have a custom keyboard, then you can probably use VIA like I do.

    The second key to the right of my spacebar switches back and forth between the layers so it's not automatic but it's just the press of one button. It worked well for me when I switched between farming and chatting.

    via1.png
    via2.png
     
    kori133, Fii and pogdog like this.
  10. Fii
    Offline

    Fii Donator

    Joined:
    Jul 23, 2019
    Messages:
    234
    Likes Received:
    406
    Gender:
    Female
    Location:
    International
    I'm have similar settings as yours, just mine are saved on the keyboard itself though.
    However my original goal was 0 button is still much better than 1 because I don't have to tell my brain doing an extra task when switching to Discord, that's why I went to try AHK and other things.
     
  11. skete
    Offline

    skete Well-Known Member

    Joined:
    Jan 19, 2023
    Messages:
    289
    Likes Received:
    569
    You could try playing royals on a VM and changing your keyboard mapping with some type of software on that VM but that may introduce different issues.
     
    kori133 likes this.

Share This Page