xanChat

xanChat

20.1k Downloads

Random copy malfunction.

Natlyz opened this issue ยท 11 comments

commented

Hello!

I'm randomly experiencing this "bug" that won't allow me to properly copy the text I want. No error text.

WoWScrnShot_030320_150246

Thanks :)

commented

Can you give me a few more details? What is preventing you from copying? Can you describe using your picture? On my end it just seems like the copy frame is working properly.

commented

I think I know what it is. Character limit or something in highlighting or copying stuff. I guess after awhile too much text is put into it and it cannot select after a certain point. I'll have to research this.

commented

Please, compare my screenshot to how it normally looks. It won't allow me to properly choose the text I want to copy. This happened like 3-4 times in the recent weeks.

It occures randomly and I still can't find what's causing it.

commented

Is it possible to make it store only certain amount of most recent lines of text?

commented

Is it possible to make it store only certain amount of most recent lines of text?

Yep that's what I'm doing. I'm adding pages to the copy chat function. There is a hard limit of 500 lines for highlighting. So I'll just show the most recent lines and if you want to go further back, then use the page back and forward buttons.

commented

After some more testing it looks like it's not just the character limit but specific chat images that cause it to break. Things like the currency icons or player role icons and such in chat that transfer over to the copy chat window. It messes up the character limit because those are actually special image inserts. So I removed them as well with the copy chat window. Since you can't really copy and paste those anyways. It looks like the pages is working with a chat line limit of 500 lines or less. I'm still testing though.

commented

I think I got it down. I found some other bugs with player links and BNET links in chat. It does not like copy and paste LOL. Would cause all sort of issues. So I've filtered them out so that the links are removed but the text remains. Seems to be working. The other issue is the scrolling. You see since this is an editable box it functions differently then lets say your chat frame. Scrolling is based on the cursor position and since you can't use your cursor on the chat frame it works differently. This requires me to have to be creative on moving the scrollbar with the cursor to the bottom of the frame. It seems to be working pretty good though. If everything checks out, I'll release it today.

commented

Can't wait to test it and find more bugs!

commented

Can't wait to test it and find more bugs!

Well there is one thing I'd like to point out before you post a bug report on it ๐Ÿ˜† . By default when you open the copy chat frame it will show the last 500 lines, regardless of the current highest page number. It will always show the last 500 lines when you open the copy chat frame.

This is different when changing the pages.
So if you go back and forth in pages it may show 500 lines in the first page and only 10 in the second page. This is normal behavior. Because you are cycling through the amount of pages. Otherwise if you didn't use the pages back and forward button, the copy frame will always show the last 500 lines.

I did this to make it quick to grab a copy chat without having to flip through the pages, especially if lets say the current page only has 10 lines.

I just wanted to say that ahead of time heh.

commented

Oh and the scrollbar is a buggy mess of code on blizzards part. So it's not 100% accurate and sometimes won't show all the way at the bottom. But even though it's not at the bottom, trust me you will see the last text at the very bottom of the edit box copy frame. I'm trying to force it to go to the bottom but it hates me sometimes.

commented

Thanks! The new copy window looks nice, can't wait for it to bug so I could report it ๐Ÿ˜