DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: problems with certain strings using auto-completion in AHK  (Read 4,552 times)

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
problems with certain strings using auto-completion in AHK
« on: October 11, 2008, 04:24 PM »
Hello, I'm having problems with certain  strings containing diacritics.

1- paste this line in an AHK script.

Code
:oc:ppr1::tgsPÉtRe tgsPunié tgsPUQÀM tgsPCeIn tgsPordr tgsPlogl tgsPpron tgsPPr1

2- Run the script

3- type ppr1 in farr's entry box (do trigger the automatic string replacement).


Weird stuff happens.

1- first, only "tgsPÉtRe tgsPunié tgsPUQ" appears in the text box (where it should be : "tgsPÉtRe tgsPunié tgsPUQÀM tgsPCeIn tgsPordr tgsPlogl tgsPpron tgsPPr1")

2- second, farr will search and match the first corresponding file with the truncated "tgsPÉtRe tgsPunié tgsPUQ"

3- it will seemingly select it (but don't have the time to see it) and have it appear in the text box AND will append the remaining part that was cut from the original string

So, in the text box I'll end up with something like : MyMSWordFile tgsPÉtRe tgsPunié tgsPUQÀM tgsPCeIn tgsPordr tgsPlogl tgsPpron tgsPPr1.doc tgsPCeIn tgsPordr tgsPlogl tgsPpron tgsPPr1

... where the first part (MyMSWordFile tgsPÉtRe tgsPunié tgsPUQÀM tgsPCeIn tgsPordr tgsPlogl tgsPpron tgsPPr1.doc) is the actual file name, and "tgsPCeIn tgsPordr tgsPlogl tgsPpron tgsPPr1" is the second part of the truncated string talked about in point 1.
Why is that ?  :tellme:
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould
« Last Edit: October 11, 2008, 04:53 PM by Armando »

Original address: https://www.donationcoder.com/forum/index.php?topic=15309.0