The problem isn't with including friends (that's easy to do by passing certain predefined parameters to the Blizzard autocomplete function) but with including your alts, who are not necessarily on your friends list or in your guild. Pre-3.2, Postal kept track of your alts, and autocompleted to them at the mailbox, prioritizing them over friends and guild members.
The changes I suggested just make Postal works as it used to work before 3.2, including alt name completion ^^
I know absolutely nothing about LUA so I don't know how "dirty" or "clean" the modifications to Blackbook Groumf suggested, but I put them in and I no longer get a LUA error from Blackbook when logging in/opening mailbox and alt autocompletion works now. I don't get the terrible Blizzard menu when I type names and it prioritizes my alts/friends list.
I just realized that it would be nice, for the people that take time and make the effort to come here on the forum, to post my BlackBook.lua file, if they are not afraid of using a file from a complete stranger ;)
Thanks Groumf for your file. I was already wondering about the changes in no. 2 because my line numbers are way off for some reason ... Looking at your file thats no wonder, you have an additional linefeed after every line. Your fix works great, thanks!
Hello there,
I have a small suggestion/request about the recent AutoComplete change. I've seen Postal has patched and provides BlackBook features to turn on/off. My problem is that sometimes the autocompletion just wont happen when the first character is typed. I'm not sure what the exact condition is though.
For example:
Say I have only 2 names on my list: Abc & Xyz, so I expect when I type "x" it will be filled by "Xyz", but when I open mailbox, tab to "Send Mail", and type "x" in "To: " field, the autocompletion doesnt happen, I have to type "xy" to get "Xyz" filled. Now I erase the field and type "a", it works fine and fills me "Abc". Now I send something to "Abc", after I send the "To: " field would remain "Abc" or be cleared depending on setting; either way, now I type "x" but the autocompletion doesnt happen again.
I really wish I can type only 1 character and get the recipient filled in, because my alts and bank chars are different (as intended) on the first character :)
I'm aware of this issue, and had tried to work around it in the past. It proved much trickier to solve and I opted not to solve it. The bug occurs if something (such as an addon or any of the Blizzard calls) programmatically sets the text of the To field, so that it doesn't trigger the internal length of the typed text to update as to whether to do the autocomplete or not.
I'm aware of this issue, and had tried to work around it in the past. It proved much trickier to solve and I opted not to solve it. The bug occurs if something (such as an addon or any of the Blizzard calls) programmatically sets the text of the To field, so that it doesn't trigger the internal length of the typed text to update as to whether to do the autocomplete or not.
I have a different problem with AutoComplete, but my problem doesn't sound like the above poster's 2 character problem. I have an alt named Endorphin, and I have a guildie enchanter friend named Emptyinside. If I send items to Endorphin with "auto fill last mailed name" checked, when a new mail is created, Endorphin is correctly filled in. However, when I select the entire name and start typing "Emptyinside" it fills in "Endorphin" places my cursor at the end and then starts typing everything AFTER the second letter (not including the first or second letter). It used to fill in names, and then just let you keep typing, changing the names as the letters change. As in, if I selected it and typed "E" it would fill in "Endorphin" first, but not change my cursor position, allowing me to continue typing the "m" of "Emptyinside" and then would change the suggestion to "Emptyinside." Basically, it hijacks my name field assuming that I never want to mail anyone with an "E" for the first letter except my alt, unless I delete the entire name and start from a blank box. The temporary solution I have found is to disable the autofill feature, but I figured I'd let you know. Sorry for the ramble, I hope its clear.
"However, when I select the entire name and start typing "Emptyinside" it fills in "Endorphin" places my cursor at the end and then starts typing everything AFTER the second letter (not including the first or second letter)."
Actually xtoq, its not clear at all. No idea what the heck you are saying. Also is this issue with Postal v3.2.0 or Postal v3.2.1?
Do you also use Altoholic? If you are, try turning off Altoholic and see if the issue exists. That addon doesn't play nice with many other addons, especially in the way of hooks.
Actually xtoq, its not clear at all. No idea what the heck you are saying. Also is this issue with Postal v3.2.0 or Postal v3.2.1?
Do you also use Altoholic? If you are, try turning off Altoholic and see if the issue exists. That addon doesn't play nice with many other addons, especially in the way of hooks.
I have the same issue, and yes disabling Altoholic does indeed fix it. Basically when you type the first letter of one of your Alts names into the "To:" box it autocompletes it to that alts name and moves the cursor to the end of their name so for example i type "s" and it autocompletes it "shagem" with the cursor and the end and none of it highlighted, so typing any other name starting with s requires me to delete everything it autocompleted and continue from there.
I can see this isn't your problem but do you have any tips on what we need to ask the altoholic developer to change so that it doesn't screw up Postal's perfect implementation of autocompletion?
I suspect Altoholic has also implemented its own form of name completion, so the 2 compete (that is, Postal will autocomplete "Shagem" first when you type "S", then Altoholic thinks the user typed in the full name "Shagem" and autocompletes "Shagem" too but with the cursor at the end since it thinks the user typed the "m") and one interferes with the other.
Can I suggest you to check if you can disable Altoholic's autocomplete? Or disable Postal to see if Altoholic does indeed have its own autocomplete mechanism?
Actually xtoq, its not clear at all. No idea what the heck you are saying. Also is this issue with Postal v3.2.0 or Postal v3.2.1?
Do you also use Altoholic? If you are, try turning off Altoholic and see if the issue exists. That addon doesn't play nice with many other addons, especially in the way of hooks.
The version was 3.2.1, and I realized it after I posted that I hadn't given you the version number. But I do always run the most up to date version that's on either WoWI or Curse. I do run Altoholic, and I'll see if this fixes it. It didn't use to do this before but with the patch updates, I probably updated Altoholic and Postal the same day. I'll post back with results.
And sorry for my rambling...I'll blame my 13 month old. =P
I suspect Altoholic has also implemented its own form of name completion, so the 2 compete (that is, Postal will autocomplete "Shagem" first when you type "S", then Altoholic thinks the user typed in the full name "Shagem" and autocompletes "Shagem" too but with the cursor at the end since it thinks the user typed the "m") and one interferes with the other.
Can I suggest you to check if you can disable Altoholic's autocomplete? Or disable Postal to see if Altoholic does indeed have its own autocomplete mechanism?
You're right of course, if i disable Postal the autocomplete from Altoholic works in the same way Postal's does. Unfortunately there doesn't seem to be any way to disable this functionality in Altoholic currently though.
Yes, there is no option to disable the Autocomplete in Altoholic. However, this behavior didn't happen until the release of Altoholic after Blizzard's implementation of the Autocomplete feature. Should we merely ask Thaoky to add an option to disable it? I'm posting a bug report on Altoholic regarldless, or voting on one if its already there.
Postal's autocomplete will complete names from Postal's contacts, alts, recently mailed, Friend's list and Guild list, and Postal allows you to select/deselect which of these 5 lists you want to include/exclude.
I'm not sure which lists of names Altoholic auto-completes from but if it is less powerful or more limited, then yes, by all means ask him to add such a feature to disable the auto-complete. Currently, the auto-complete in Postal cannot be disabled except by disabling the whole BlackBook module.
The BlackBook module has an option to disable Blizzard's autocomplete (default Off, meaning Blizzard's one is not disabled, it will work alongside Postal's one).
I will add an option to disable auto-completes, I think that's the best option since no matter how hooks are handled, two auto-completes would conflict anyway.
I will add an option to disable auto-completes, I think that's the best option since no matter how hooks are handled, two auto-completes would conflict anyway.
I should probably add an option to disable auto-complete as well, in case there are other conflicts with any other addons that also do auto-complete.
Problem solved!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
The changes I suggested just make Postal works as it used to work before 3.2, including alt name completion ^^
I know absolutely nothing about LUA so I don't know how "dirty" or "clean" the modifications to Blackbook Groumf suggested, but I put them in and I no longer get a LUA error from Blackbook when logging in/opening mailbox and alt autocompletion works now. I don't get the terrible Blizzard menu when I type names and it prioritizes my alts/friends list.
So here it is, attached.
I have a small suggestion/request about the recent AutoComplete change. I've seen Postal has patched and provides BlackBook features to turn on/off. My problem is that sometimes the autocompletion just wont happen when the first character is typed. I'm not sure what the exact condition is though.
For example:
Say I have only 2 names on my list: Abc & Xyz, so I expect when I type "x" it will be filled by "Xyz", but when I open mailbox, tab to "Send Mail", and type "x" in "To: " field, the autocompletion doesnt happen, I have to type "xy" to get "Xyz" filled. Now I erase the field and type "a", it works fine and fills me "Abc". Now I send something to "Abc", after I send the "To: " field would remain "Abc" or be cleared depending on setting; either way, now I type "x" but the autocompletion doesnt happen again.
I really wish I can type only 1 character and get the recipient filled in, because my alts and bank chars are different (as intended) on the first character :)
Is it a internal problem of OnTextChanged event? I've seen a Gello's workaround http://forums.worldofwarcraft.com/thread.html?topicId=19110291258&sid=1 before, there he used OnChar instead of OnTextChanged.
I have a different problem with AutoComplete, but my problem doesn't sound like the above poster's 2 character problem. I have an alt named Endorphin, and I have a guildie enchanter friend named Emptyinside. If I send items to Endorphin with "auto fill last mailed name" checked, when a new mail is created, Endorphin is correctly filled in. However, when I select the entire name and start typing "Emptyinside" it fills in "Endorphin" places my cursor at the end and then starts typing everything AFTER the second letter (not including the first or second letter). It used to fill in names, and then just let you keep typing, changing the names as the letters change. As in, if I selected it and typed "E" it would fill in "Endorphin" first, but not change my cursor position, allowing me to continue typing the "m" of "Emptyinside" and then would change the suggestion to "Emptyinside." Basically, it hijacks my name field assuming that I never want to mail anyone with an "E" for the first letter except my alt, unless I delete the entire name and start from a blank box. The temporary solution I have found is to disable the autofill feature, but I figured I'd let you know. Sorry for the ramble, I hope its clear.
Actually xtoq, its not clear at all. No idea what the heck you are saying. Also is this issue with Postal v3.2.0 or Postal v3.2.1?
Do you also use Altoholic? If you are, try turning off Altoholic and see if the issue exists. That addon doesn't play nice with many other addons, especially in the way of hooks.
I have the same issue, and yes disabling Altoholic does indeed fix it. Basically when you type the first letter of one of your Alts names into the "To:" box it autocompletes it to that alts name and moves the cursor to the end of their name so for example i type "s" and it autocompletes it "shagem" with the cursor and the end and none of it highlighted, so typing any other name starting with s requires me to delete everything it autocompleted and continue from there.
I can see this isn't your problem but do you have any tips on what we need to ask the altoholic developer to change so that it doesn't screw up Postal's perfect implementation of autocompletion?
Can I suggest you to check if you can disable Altoholic's autocomplete? Or disable Postal to see if Altoholic does indeed have its own autocomplete mechanism?
Thanks for your hard work :D
The version was 3.2.1, and I realized it after I posted that I hadn't given you the version number. But I do always run the most up to date version that's on either WoWI or Curse. I do run Altoholic, and I'll see if this fixes it. It didn't use to do this before but with the patch updates, I probably updated Altoholic and Postal the same day. I'll post back with results.
And sorry for my rambling...I'll blame my 13 month old. =P
You're right of course, if i disable Postal the autocomplete from Altoholic works in the same way Postal's does. Unfortunately there doesn't seem to be any way to disable this functionality in Altoholic currently though.
I'm not sure which lists of names Altoholic auto-completes from but if it is less powerful or more limited, then yes, by all means ask him to add such a feature to disable the auto-complete. Currently, the auto-complete in Postal cannot be disabled except by disabling the whole BlackBook module.
The BlackBook module has an option to disable Blizzard's autocomplete (default Off, meaning Blizzard's one is not disabled, it will work alongside Postal's one).
I will add an option to disable auto-completes, I think that's the best option since no matter how hooks are handled, two auto-completes would conflict anyway.
Edit: I've uploaded a fix on curseforge, in r49
http://wow.curseforge.com/addons/altoholic/files/
I should probably add an option to disable auto-complete as well, in case there are other conflicts with any other addons that also do auto-complete.
Problem solved!