EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     user input in a FindInFiles macro
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
Yutaka
Posted on: 2/8/2009 4:02 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2397
Re: user input in a FindInFiles macro
Quote:

wreck wrote:
I am trying to create a macro using FIndInFiles, but can't see how to specify the search string without editing the macro.

Searching a set of folders with Shift JIS files on English XP means setting the encoding each time, which I would like to avoid.

Record Macro doesn't seem to work, as when a new window opens there is no SaveAs option, it seems.

The Help says MsgBox is not allowed, and there is nothing about InputBox or an equivalent.

FindInFiles doesn't seem to work with 'document.selection.'

Is it possible to select text in an EMEditor window, assign that to a variable, then use that variable as the search string in FindInFiles method, all in one macro?

Or is there some other solution?

Thanks!


MsgBox is not available, but there are equivalent methods like alert() and comfirm(). prompt() is similiar to InputBox(). FindInFiles can use parameters and document.selection.Text can be used as a parameter.


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Flat Previous Topic | Next Topic


Subject Poster Date
   user input in a FindInFiles macro wreck 2/6/2009 2:25 pm
   » Re: user input in a FindInFiles macro Yutaka 2/8/2009 4:02 pm
       VBS VBScript Visual Basic Script InputBox is missing Stefan 2/18/2012 9:16 am
         Re: VBS VBScript Visual Basic Script InputBox is missing Yutaka 2/20/2012 10:13 am

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