dumbeau / AutoHotPie

Radial menus in Windows, aka PIE MENYOOS!
MIT License
340 stars 18 forks source link

Can't assign folder path with special characters #27

Closed Avastgard closed 2 years ago

Avastgard commented 2 years ago

I assigned a slice to open a certain folder, but when I try to open it, I get the following error:

---------------------------
PieMenu.ahk
---------------------------
Cannot find directory:
C:\Users\user\OneDrive - NÉRY\Área de Trabalho\Flávio\AutoHotkey
---------------------------
OK   
---------------------------

I presume this is because the file path has special characters. Is that right? Is there a way for me to manually correct this?

dumbeau commented 2 years ago

Could you paste what the intended path is including special characters here? I may be able to account for this on my end.

You can export the settings file (File > Export Settings) edit that json file and then import it.

Avastgard commented 2 years ago

This is what it is supposed to look like:

C:\Users\flima\OneDrive - GERALDO NÉRY LOPES ADVOGADOS ASSOCIADOS\Área de Trabalho\Flávio\AutoHotkey

Checking the .json file, this is what was there:

C:\\Users\\flima\\OneDrive - GERALDO NÉRY LOPES ADVOGADOS ASSOCIADOS\\Área de Trabalho\\Flávio\\AutoHotkey

Changing the double backslashes to single ones had no effect and produced the same error message.

dumbeau commented 2 years ago

Thanks! Looking into this now, seems like AHK just doesn't handle special characters in filepaths on its own, but everything on the frontend is working fine. This should be fixable on my end.

Avastgard commented 2 years ago

Great, thanks for the feedback!

dumbeau commented 2 years ago

Still working on this, for the time being all I'd say is don't use special characters in filepaths, but I plan on having this fixed before any "official" release.

Avastgard commented 2 years ago

That's great to hear! I can change file paths in my own PC, but since this script will be particularly helpful to me at work, and I can't change file paths there, knowing this will eventually be addressed is nice. Thanks for this great script!

dumbeau commented 2 years ago

omg the solution ended up being really simple. This is fixed in v1.0.17-alpha.

You should now be able to use any special characters in all user-defined strings and filepaths.

Avastgard commented 2 years ago

Just tested and it works! Thank you very much!