How do I copy everything from the list?

0 favourites
  • 2 posts
From the Asset Store
The ultimate voice pack filled with 1,536 files of .......wav and mp3 of individual numbers, letters, and words (that go
  • Hello everyone.

    I have a problem. My task is to select all the elements in the list, copy this selection by clicking on the sprite. Then the user will be able to paste this list from the clipboard wherever he wants.

    I did it simply - Click on the sprite object - Clipboard: Copy text List.Selected text.

    But for some reason only the very first attribute is copied, from which the selection began.

    Why are not all the selected attributes in the list copied?

    Thanks everyone!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Do you want to copy all elements in the list. So, for example, if your list is:

    - Element 1

    - Element 2

    - Element 3

    Then you expect your clipboard to contain "Element 1 Element 2 Element 3"?

    If this is the case, then do this:

    List: On clicked

    >> Local string textToCopy‎ = ""

    >> System: Repeat List.ItemCount times:

    >> System: Add List.ItemTextAt(LoopIndex)&newline to textToCopy

    then, at the end of the loop, copy the whole text:

    Clipboard: Copy text textToCopy

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)