EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     Create a new file set the configuration and paste from clipboard
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
shx
Posted on: 1/27/2013 5:30 am
Just can't stay away
Joined: 2/18/2009
From:
Posts: 77
Create a new file set the configuration and paste from clipboard
thestr = clipboardData.getData("Text");
Editor.newfile();
Testdoc = Editor.activedocument;
Testdoc.ConfigName = "Pub";
Testdoc.write(thestr);
Testdoc.selection.SetActivePoint( eePosLogical, 1, 1 );

Quit();


i want to create anew file and set it to a configurauin and then paste into it from clipboard.

It works up to the point where I paste from clipboard.

I manually need to do ctl+v

Thanks


----------------
Steven

shx
Posted on: 1/27/2013 5:38 am
Just can't stay away
Joined: 2/18/2009
From:
Posts: 77
Re: Create a new file set the configuration and paste from clipboard
Never mind, I find that it works sometimes and need to gather more information


----------------
Steven

Threaded | Newest First Previous Topic | Next Topic | Top


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