FG Spreadshirt Swag
Page 1 of 3 123 Last
  1. #1

    FTCopyPaste - Support

    OBSOLETE - Version 4.2.2 of FGU now performs these functions natively.

    Hello everyone,

    I've added an extension to forge that allows copy and paste between formattedtextcontrols with the formatting preserved.

    Available at: https://forge.fantasygrounds.com/shop/items/185/view

    By default the tool copies the entire source formattedtextcontrol and appends the data at the end of the destination formattedtextcontrol. All of this is hot key triggered. The focus must be in the source when you copy and in the destination when you paste.

    Due to the lack of selection support for formattedtextcontrol you can do subsections but it requires the use of some marker text to accomplish. I happen to use:

    #FTS# - start position
    #FTE# - end position
    #FTI# - insert position (if you want it somewhere other than the end of the destination formattedtextcontrol


    Releases
    v1.0.7
    • Fix: Now finds formattedtextcontrols in refmanual builder.
    • Change: Added recursion check to finding of formattedtextcontrol with focus. FTCP aborts search path once it hits 5-levels deep.


    v1.0.6
    • Changed: Moved the configuration of FTCopyPaste to the options menu under Ma's Tools.


    v1.0.5
    • Fix: Focus unable to be found in certain cases.


    v1.0.0
    • Initial release
    Last edited by jharp; June 9th, 2022 at 02:19.

  2. #2
    Confirmed compatible with TEST channel ruleset changes along with new refmanual builder.
    Confirmed compatible with v4.1.9
    Confirmed compatible with v4.1.5
    Last edited by jharp; November 2nd, 2021 at 23:37.

  3. #3

  4. #4
    From you I take that as a great complement. Thank you.

  5. #5
    Can you give a better example of "how to" please.

  6. #6
    Quote Originally Posted by Jiminimonka View Post
    Can you give a better example of "how to" please.
    1. Setup your hot keys by typing /FTCP copy in the chat panel. Then drag that text to a hot key. Do the same with /FTCP paste
    2. With your focus and cursor in a Formatted Text Control that you wish to copy from, press the hot key that is set for /FTCP copy
    3. With your focus and cursor now in a Formatted Text Control that you to copy to, press the hot key that is set for /FTCP paste

    Bingo done. The copied area is appended to the paste area.

    However, if you need to only copy a portion of the source then you must modify the source Formatted Text Control text area by inserting some markers. So in the source Formatted Text Control, insert #FTS# on a line by itself above the area you wish to copy. Insert #FTE# on a line by itself below the area you wish to copy. So it will copy the area between the two markers. Paste as normal.

    If you wish to paste in a specific location then insert the marker #FTI# on a line by itself to indicate where the paste should occur. Paste hotkey and it will remove the marker and insert the text from the copy.

    There are two convenience functions that you can set to hotkeys if you wish. They are

    /FTCP itop - inserts a newline at the top of the control to aid in placing markers
    /FTCP ibot - inserts a newline at the bottom of the control to aid in placing markers

    These let you get a newline to place markers if required.

    Let me know if you need anything else,

    Jason

  7. #7
    Quote Originally Posted by jharp View Post
    1. Setup your hot keys by typing /FTCP copy in the chat panel. Then drag that text to a hot key. Do the same with /FTCP paste
    2. With your focus and cursor in a Formatted Text Control that you wish to copy from, press the hot key that is set for /FTCP copy
    3. With your focus and cursor now in a Formatted Text Control that you to copy to, press the hot key that is set for /FTCP paste

    Bingo done. The copied area is appended to the paste area.

    However, if you need to only copy a portion of the source then you must modify the source Formatted Text Control text area by inserting some markers. So in the source Formatted Text Control, insert #FTS# on a line by itself above the area you wish to copy. Insert #FTE# on a line by itself below the area you wish to copy. So it will copy the area between the two markers. Paste as normal.

    If you wish to paste in a specific location then insert the marker #FTI# on a line by itself to indicate where the paste should occur. Paste hotkey and it will remove the marker and insert the text from the copy.

    There are two convenience functions that you can set to hotkeys if you wish. They are

    /FTCP itop - inserts a newline at the top of the control to aid in placing markers
    /FTCP ibot - inserts a newline at the bottom of the control to aid in placing markers

    These let you get a newline to place markers if required.

    Let me know if you need anything else,

    Jason
    Cool, thanks.

  8. #8
    Quote Originally Posted by jharp View Post
    Confirmed compatible with TEST channel ruleset changes.
    Confirmed compatible with v4.1.9
    Confirmed compatible with v4.1.5
    Update to work with latest TEST build coming soon? Especially with the Reference Manual Tools

  9. #9
    I can't see why it wouldn't work but I'll take a look at the reference manual area and confirm.

    Edit: Most certainly does not work in the Ref Manual tools so I'll try to fix that today.

    Jason
    Last edited by jharp; November 2nd, 2021 at 22:31.

  10. #10
    Quote Originally Posted by jharp View Post
    I can't see why it wouldn't work but I'll take a look at the reference manual area and confirm.
    ftcp.png

    Getting this error. Which I should have posted initially. Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in