-
August 10th, 2021, 04:08 #1
- Join Date
- May 2016
- Posts
- 521
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 01:19.
-
August 27th, 2021, 23:52 #2
- Join Date
- May 2016
- Posts
- 521
Confirmed compatible with TEST channel ruleset changes along with new refmanual builder.
Confirmed compatible with v4.1.9
Confirmed compatible with v4.1.5Last edited by jharp; November 2nd, 2021 at 22:37.
-
August 28th, 2021, 01:57 #3
Hah! Very good.
I do something like that in MoreCore and Player Agency but I never thought of using it for this purpose.
-
August 28th, 2021, 03:28 #4
- Join Date
- May 2016
- Posts
- 521
From you I take that as a great complement. Thank you.
-
October 31st, 2021, 15:28 #5
Can you give a better example of "how to" please.
Got a Bug - Click & FOLLOW the procedure here, it will save time
Ultimate Edition Fantasy Grounds - ONLY ON Linux
Twitch Channel
-
October 31st, 2021, 18:18 #6
- Join Date
- May 2016
- Posts
- 521
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
-
November 1st, 2021, 20:46 #7Got a Bug - Click & FOLLOW the procedure here, it will save time
Ultimate Edition Fantasy Grounds - ONLY ON Linux
Twitch Channel
-
November 2nd, 2021, 21:07 #8Got a Bug - Click & FOLLOW the procedure here, it will save time
Ultimate Edition Fantasy Grounds - ONLY ON Linux
Twitch Channel
-
November 2nd, 2021, 21:14 #9
- Join Date
- May 2016
- Posts
- 521
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.
JasonLast edited by jharp; November 2nd, 2021 at 21:31.
-
November 2nd, 2021, 21:31 #10
ftcp.png
Getting this error. Which I should have posted initially. ThanksGot a Bug - Click & FOLLOW the procedure here, it will save time
Ultimate Edition Fantasy Grounds - ONLY ON Linux
Twitch Channel
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks