EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     copy file name to clipboard
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
derekcohen
Posted on: 10/17/2011 12:27 am
Not too shy to talk
Joined: 5/22/2010
From:
Posts: 38
Re: copy file name to clipboard
worked it out:

document.CopyFullName();
var fn=clipboardData.getData('Text');
fnArray=fn.split('\\');
clipboardData.setData("Text",fnArray[fnArray.length-1]);

Is there an API reference anywhere?

thanks

Derek
Flat Previous Topic | Next Topic


Subject Poster Date
   copy file name to clipboard derekcohen 10/17/2011 12:02 am
   » Re: copy file name to clipboard derekcohen 10/17/2011 12:27 am
       Re: copy file name to clipboard Stefan 10/17/2011 2:49 am

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文