Search code examples
special-charactersautohotkey

How to use the greater-than character as a shortcut trigger in AutoHotkey?


The question is quite straight forward, I want pressing the > character to send Tab. Something like

>::Send, {Tab}

but that doesn't seem to work, probably because the '>' is used to denote right-(ctrl|alt|shift). How do I escape it? Tried {>} with no luck.


Solution

  • Your code does work:

    Code before or after your hotkey might be affecting how it works.

    Try putting your code at the top of the script.

    If that doesn't work, RIGHT CLICK the autohotkey icon on your taskbar, then click "Edit This Script". Save and replace the script with just:

    >::Send, {Tab}
    

    RIGHT CLICK the autohotkey icon on your taskbar again, then click "Reload This Script". Now test > again.