Copying Text From Message Frame

Greetings all,

Well, I’ve written a simple damage meter using a scrolling message frame. I would like to be able to add two [related] functions:

  1. Click the copy button and copy the entire log and,
  2. Using the mouse, select specific lines of text and copy that.

Here’s what the log looks like at the moment

https://imgur.com/a/ouPhuZX

Do I need to integrate EditBox methods into my existing frame?

Cheers,

CTRL-A Select all,
CTRL-C Copy what is selected (all or part)

You can use

EditBox:HighlightText([start, [end]])
EditBox:SetFocus()

https://wow.gamepedia.com/API_EditBox_HighlightText

Addons cannot programmatically call clipboard functions (Copy/Paste etc.)