Copy/paste layout object with its coordinates

If You know how to store the position of a layout-object and how to paste that object into other layouts at the very same position - no need to read on

  • copy the desired object in a layout where its position is ok
  • select browse mode (this stores the position)
  • select layout mode again
  • go to the next layout where that object should be pasted into
  • without any clicking, paste
  • the object will be pasted at its original position. Make sure that the target layout is heigh enough and don’t click anywhere

I guess that most of You are aware of this - but I was not, dito for some friends of mine, but we’re all rookies

This tip was shared at the german DevCon by the guru of printing, Fabrice Ricker (he speaks to printers and printer drivers - those probably dream about him…)

11 Likes

I’ve always done step 2 and 3 after step 4. I didn’t know it worked this way too. Thanks.

Re: accidentally clicking. If you do click somewhere on the target layout, you can enter browse mode then layout mode and the paste position will be fixed again.

1 Like

Hi Markus,

if you use a tool like Clip Manager it is even easier:
activate Clip Manager
copy any object to the clipboard
[do something completely different including using the clipboard]
come back to Clip Manager and load the above copied objects
insert at the exact same place…

in the clipboard-XML

Layout enclosingRectTop=“141.0000000” enclosingRectLeft=“145.0000000” enclosingRectBottom=“215.0000000” enclosingRectRight=“567.0000000”

seems to store the position of the objects but that gets lost in/by the FM-engine

… or is destroyed to prohibit pasting at the exact same position because FM fears we could mess up the layout and end with double/triple what ever layout objects one stapled on the other…

1 Like

Thank You Holger!

I had an earlier version of clip manager - but that thing was crashing a lot (although Windows users did not have crashes at that time) and I decided to give it up

Does it run stable now? If so, I would buy it again…

I’m using version 5 without any difficulties

What I like is copying snippets within Apple Remote Desktop sessions since the FM-XML-clipboard does not work anymore between different computers

yes, I know, I could also use Russells fmWorkmate, but for me Clip Manager does the trick

2 Likes

re-bought, site license (upgrade was possible)

Thanks!

and I hope you still have your old library :slight_smile:

no. That one went off as I bought a new Mini some time ago. Is not a problem, I did not save those snippets because of older versions (FM, os, all…)

with the MBS Plugin you can replicate the behaviour

  1. register hotkey for copy-step

Set Variable [ $$hotkey_c_shift_ctrl ; Value: MBS( “HotKey.Register”;“c”; “shift-control” ;1) ]

  1. define hotkey

this copies to clipboard, enters browse-mode and resets clipboard to same content

Set Variable [ $hotkeyEvaluate ; Value: MBS( “HotKey.SetEvaluate”; $$hotkey_c_shift_ctrl; “Let ([ r = MBS( “Menubar.RunMenuCommand”; 57634 ); xmlCB = MBS( “Clipboard.GetFileMakerData”; “Layout12” ); r = MBS( “Menubar.RunMenuCommand”; 49155 )/browse/;r = MBS( “Clipboard.SetFileMakerData”; “Layout12”; xmlCB ) ]; “” )” )]

  1. register hotkey for paste-step

Set Variable [ $$hotkey_v_shift_ctrl ; Value: MBS( “HotKey.Register”;“v”; “shift-control” ;1) ]

  1. define hotkey

this enters layout-mode and pastes clipboard

Set Variable [ $hotkeyEvaluate ; Value: MBS( “HotKey.SetEvaluate”; $$hotkey_v_shift_ctrl; “Let ([ r = MBS( “Menubar.RunMenuCommand”; 49156 )/layout/;r = MBS( “Menubar.RunMenuCommand”; 57637 )]; “” )” ) ]

  1. enable both hotkeys

Set Variable [ $setEnabled ; Value: MBS(“HotKey.SetEnabled”;$$hotkey_c_shift_ctrl; 1) ]
Set Variable [ $setEnabled ; Value: MBS(“HotKey.SetEnabled”;$$hotkey_v_shift_ctrl; 1) ]

with this method you copy layout objects to the clipboard and change to browse-mode
(hotkey shift-ctrl-c)
now you navigate to the target (layout, register, slider…)
and paste to the exact position
(hotkey shift-ctrl-v)

makes live a bit easier although it would be nicer not to have the need of changing between layout- and browse-mode, I was not (yet) able to get that behaviour into one hotkey-calculation

PS. only tested on macOS so far…

1 Like