View Single Post
11-10-14, 11:01 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
The "|k000000|k" sequence is replaced with the real text internally. You can print it or SetText with it and get the expected text shown on the screen, but you can't actually see it in Lua code or manipulate with the Lua string functions. This is intentional, and there is no way around it. Addon code cannot tell what the contents of the "|k" sequence are, period.

It's also worth noting that you can trim the sequence by removing some of the 0 characters (so if "|k00000|k" is "Phanx" then "|k00|k" is just "Ph") but extra 0s are just ignored ("|k00000000000000|k" is still just "Phanx").
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote