picyka Posted March 22, 2023 Share Posted March 22, 2023 I have some functions in a js file included in CustomFiles, it works perfectly. I would like to put these functions in MainForm.Script but there I had no result. async function copyText(texto) { try { await navigator.clipboard.writeText(texto); } catch (err) { console.error('Failed to copy: ', err); } }; async function pasteText(jsName) { navigator.clipboard.readText().then(texto => { let cmd = jsName + ".setValue('" + texto + "');"; eval(cmd); }); }; Quote Link to comment Share on other sites More sharing options...
picyka Posted March 22, 2023 Author Share Posted March 22, 2023 ServerModule->CustomMeta It's working 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.