<pre lang="Javascript"> function copytoclipboard(t) { alert("t =" + t); const txt = t; navigator.clipboard.writeText(txt + 'xyz') .then(() => { alert(`Copied 123!`) }) .catch((error) => { alert(`Copy failed! ${error}`) }) return; } C# code <pre lang="c#"> CopyClipAction.Val = MacroDesc; Thread newThread = new Thread(new ThreadStart(ClipActionPR)); newThread.SetApartmentState(ApartmentState.STA); newThread.Start();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)