Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 06, 2016, 04:00:08 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

Armando

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

1- paste this line in an AHK script.

: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:
« Last Edit: October 11, 2008, 11:53:32 AM by Armando »