phil294 / AHK_X11

AutoHotkey for Linux (X11-based systems)
GNU General Public License v2.0
770 stars 11 forks source link

key name 'j' not found #43

Closed toimine closed 12 months ago

toimine commented 1 year ago

i'm trying to run a simple script that used to work on windows (i've attached it), but somehow this is what trips up the app, even though the documentation file mentions remapping keys like this without any strikethroughs in case my installation process was wrong: i've downloaded the latest appimage, then ran "chmod +x ./ahk_x11-0.5.1-x86_64.AppImage" in the folder with ahk, launched the file and pressed the install button to install it a.ahk.txt

toimine commented 1 year ago

I've retyped the script in a new file, and this time it says "key name 'left' not found", so I assume the original issue was AHK_X11 not being able to deal with windows line breaks, but now it doesn't know what arrow keys are for some reason

phil294 commented 1 year ago

yes, most likely the file was BOM-encoded or with \r\n instead of \n (#5).

even though the documentation file mentions remapping keys like this without any strikethroughs

I'm not very sure what you mean by that, as the entire section about key remapping is crossed out. So yeah traditional win-ahk-like key remaps aren't supported yet. For now you'll have to do

a::Send, {Left}

but it's quite more limited. Hopefully I'll get to fix this in the next few weeks though.

toimine commented 1 year ago

oh, so that's where that section was i saw similar syntax in hotkeys

phil294 commented 12 months ago

syntax like a::left should work now! so I guess we can close this.