By continuing to use this website, you agree with our
Cookie Policy
Confirm
RU
EN
Main Page
Download
Addons
Forum
Blog
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
News:
AIMP for Linux
AIMP Forum
»
AIMP for PC
»
Skin Editor, Skin Engine
»
Questions
(Moderator:
Tarik
) »
Button copy text to clipboard?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Button copy text to clipboard? (Read 27189 times)
0 Members and 1 Guest are viewing this topic.
Button copy text to clipboard?
«
on:
February 21, 2022, 18:12:05 »
koelo
Завсегдатай
Posts: 58
Карма: +12/-0
How to make a button which when pressed copies a custom text into clipboard?
Logged
Re: Button copy text to clipboard?
«
Reply #1 on:
February 21, 2022, 19:30:51 »
Soolo
Администратор
Эксперт
Posts: 8640
Карма: +1397/-187
Какой текст?
Logged
Re: Button copy text to clipboard?
«
Reply #2 on:
February 21, 2022, 20:17:23 »
koelo
Завсегдатай
Posts: 58
Карма: +12/-0
Quote from: Soolo on February 21, 2022, 19:30:51
Какой текст?
Just some text regarding my skin. For example lets just make it "abc".
Logged
Re: Button copy text to clipboard?
«
Reply #3 on:
February 22, 2022, 20:49:31 »
Artem
Администратор
Эксперт
Posts: 20433
Карма: +3195/-76
Only TASETextDisplay and TASETextDisplayEx has the CopyToClipboard method that copies the text display's content.
Refer to CopyToClipboardHandler custom provider in the Charm skin
Logged
Re: Button copy text to clipboard?
«
Reply #4 on:
March 27, 2026, 00:21:10 »
heroclix
Местный
Posts: 130
Карма: +8/-6
Is there any progress on this? i wrote a script to test it, but it’s not working. here’s the script i wrote:
procedure Execute(Sender, Arguments: TComponent);
var
S: string;
InfoTextObj: TComponent;
begin
InfoTextObj := FindObject('FInfoText');
if InfoTextObj <> nil then
begin
try
S := InfoTextObj.Get('DisplayValue');
except
S := '';
end;
if Arguments <> nil then
begin
Arguments.Set('DisplayValue', S);
Arguments.CopyToClipboard;
ShowMessage('Info Copied: ' + S);
end
else
begin
ShowMessage('Arguments empty: ' + S);
end;
end
else
ShowMessage('FInfoText not found.');
end;
Logged
Re: Button copy text to clipboard?
«
Reply #5 on:
March 27, 2026, 08:20:51 »
Artem
Администратор
Эксперт
Posts: 20433
Карма: +3195/-76
What exactly does not work here?
Logged
Re: Button copy text to clipboard?
«
Reply #6 on:
March 27, 2026, 08:56:37 »
heroclix
Местный
Posts: 130
Карма: +8/-6
There is an FInfoText component, but its displayValue cannot be copied; it constantly returns 'Arguments empty'
Logged
Re: Button copy text to clipboard?
«
Reply #7 on:
March 27, 2026, 09:56:17 »
Artem
Администратор
Эксперт
Posts: 20433
Карма: +3195/-76
Quote from: heroclix on March 27, 2026, 08:56:37
FInfoText
What class of this component? What component invokes the script?
Logged
Re: Button copy text to clipboard?
«
Reply #8 on:
April 04, 2026, 20:48:30 »
heroclix
Местный
Posts: 130
Карма: +8/-6
no worries, i figured it out thanks
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
AIMP Forum
»
AIMP for PC
»
Skin Editor, Skin Engine
»
Questions
(Moderator:
Tarik
) »
Button copy text to clipboard?