It is currently April 27th, 2024, 5:03 am

Click to copy text?

Get help with creating, editing & fixing problems with skins
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Click to copy text?

Post by sl23 »

I dunno, I suppose I just prefer a skin to be self contained. Obviously not the case here anyway what with the font, INC file and all those skin files for the different categories, so I'll make an exception! :jawdrop :lol:

Haven't had a chance to try it out yet, maybe over the weekend... :thumbup:
- MuLab -
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Click to copy text?

Post by sl23 »

death.crafter wrote: September 3rd, 2021, 11:22 am To every problem, there is always a solution.

CopyIcon.lua

Code: Select all

function SetClip(varName)
	SKIN:Bang('!SetClip', SKIN:GetVariable(varName))
end

Code: Select all

[Variables]
IconN=[\xNinjaCat]

[Clipboard]
Measure=Script
ScriptFile=#@#CopyIcon.lua

[IconN]
...
LeftMouseUpAction=[!CommandMeasure Clipboard "SetClip('#CURRENTSECTION#')"]
; Don't forget the single quotes!
Works perfectly! Thank you very much :thumbup:
- MuLab -