object name to clipboard

hi friend
i am seeking object name to clipboard
i am beginner in script

pls good help me

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
barigazy's picture

Copy Object Name To Clipboard

Select a object, click "Copy object name"
and press "Paste object name"
to recive tex from clipboard.

rollout test "Copy Object Name To Clipboard"
(
	button btnCopy "Copy object name" width:146
	button btnPaste "Paste object name" width:146
	label lbl "" style_sunkenedge:true width:144 height:20
 
	local Clipboard = dotNetClass "Clipboard"
	on btnCopy pressed do 
	(
		if selection.count == 1 do 
		( 
			lbl.Text="" ; Clipboard.Clear()
			Clipboard.SetText selection[1].name
		)
	)
	on btnPaste pressed do 
	(
		if Clipboard.ContainsText() do lbl.Text= Clipboard.GetText()
	)
)
createDialog test 150 80 fgcolor:yellow

barigazy

dussla's picture

thank you a lot

really thank you

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.