Forum Replies Created

Viewing 25 posts - 2,751 through 2,775 (of 3,701 total)
  • Author
    Posts
  • in reply to: Emeditor 8.02 outline question, thanks. #6906
    Yutaka Emura
    Keymaster

    emuser1 wrote:
    I really test the macro, same version emeditor, same script.
    Winxp sp2 Can Run. But On Windows Vista Home Premium SP1 Can’t Run (Error: object requireed: ‘document’ )
    Both JS/VB Same Error.

    Pls test and fix

    Thanks.

    This is probably the install issue. Which language version of EmEditor did you download (English, Traditional Chinese, Simplified Chinese)? Where did you download from? Are you using INI settings or the Registry?

    in reply to: Emeditor 8.02 outline question, thanks. #6901
    Yutaka Emura
    Keymaster

    emuser1 wrote:
    Yes, Let User Choice Is Better.

    Since Emeditor 8.01 , Open And Close Program Very Slow On Flash Driver. I Test Many Kinds And Times,

    Emeditor 8.00 Very Fast Compare To 8.01 And 8.02.
    I Don’t Why ? Many A Ini Functions Change Since 8.01 ?
    I Tested The ‘Slow Problem’ Is Read And Write Ini File.
    Hope Test, Check And Fix.

    Also, I Found Your Website, Most Macro Files Can’t Run On Emeditor 8.XX, Many Error Code. I Also, Try Used Macro Funtion “editor.ExecuteCommandByID(4413);”
    Fix The ‘Collapses Case’. But, I Can’t Do it(Editor Error Code 28). Can U Tell Me How To Write This Macro ?

    Thanks.

    I couldn’t reproduce both your issues.

    “editor.ExecuteCommandByID(4413);” works just fine. I didn’t see the error code 28 even when using INI files. You might need to reinstall EmEditor.

    in reply to: Search and Highlight function in open document #6900
    Yutaka Emura
    Keymaster

    Pancho wrote:

    You should be able to do this by using the Find method (of the Selection object) with eeFindReplaceOpenDoc parameter to search all open documents.

    I do not want search to all open documents, only active(current document)

    How to get all text document in Selection object ?

    document.selection.SelectAll();
    str = document.selection.text;

    right ? As without the allocation of the entire text (like Ctrl+A) ?

    If you just want to search for selected text (or a word if not selected), how about pressing CTRL + F3? To do this with a macro, you can use:


    document.selection.FindRepeat(eeFindRepeatNext | eeFindRepeatWord);
    in reply to: Search and Highlight function in open document #6897
    Yutaka Emura
    Keymaster

    Pancho wrote:
    Hello
    I need go and Highlight function by name.
    1. Select text : ‘HLfunc’
    2. run Macro
    3. go to line which contains ‘function HLfunc ‘

    Help or advice please

    I tried example:

    wnd = FindWindow( "EmEditorView", "" );
    str = wnd.Caption;
    name = document.selection.Text;
    pat = 'tions+'+name;
    rgx = new RegExp(pat,'i');
    results = str.search(rgx);
    alert( 'pat: '+pat+"nresults: "+ results);

    //function HLfunc

    You should be able to do this by using the Find method (of the Selection object) with eeFindReplaceOpenDoc parameter to search all open documents.

    Alternatively, you can use the Projects plug-in to enable symbol list, and press F12 to jump to the definition of a symbol at the cursor.

    in reply to: Emeditor 8.02 outline question, thanks. #6896
    Yutaka Emura
    Keymaster

    emuser1 wrote:
    Hi,
    I Created The Outline File With {} Format.
    When I Reopen The Outline File, Allway Is ‘Expand All’ Status.

    Can I Default By Allway ‘collapse all’ Status, when i reopen the outline format text file ?

    Such as this:

    +.{Testing 1 […]
    +.{Testing 2 […]
    +.{Testing 3 […]

    Thanks

    No. Is this something you want to have as a new feature in the future?

    in reply to: chose the right encoding when opening up a file #6895
    Yutaka Emura
    Keymaster

    Mgccl wrote:
    Can emeditor always use the encoding the file is most likely using when opening a file? When there is a 100\% confidence on the encoding of the file, why should the user change their encoding each time they open the file?

    This is a great product btw… I totally recommend people using it.

    Not when 100\% conficence, but when there is only one choice, this dialog box will not appear if you check “Show Only when Multiple Encodings Detected” check box in the File tab of the Customize dialog box. I hope this helps.

    in reply to: user input in a FindInFiles macro #6894
    Yutaka Emura
    Keymaster

    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.

    in reply to: Projects plugin – one more subargument to get file name #6887
    Yutaka Emura
    Keymaster

    spectre wrote:
    Thank you for the clarification.

    I probably did not explain my point right. Let’s consider a following example.

    Assume we have a solution, say, D:xworksamplesmy_solution.eesln
    $(Solution) gives
    D:xworksamplesmy_solution.eesln
    as it should.

    I tried $(Solution,f) and it gave
    D:xworksamplesmy_solution

    But what I would like to have is just
    my_solution

    That is, just file name, no path.

    I mostly need this to construct the paths like the following:
    D:xworksamplesdebugmy_solution.smth
    ( $(Solution,d)debug$(Solution,).smth )

    You are right. It was a bug in the Projects plug-in. I will fix this issue before the next release. Thank you.

    in reply to: Bug in column mode #6886
    Yutaka Emura
    Keymaster

    WatchUer wrote:
    I’ve set in the option to use space instead of tab when pressing TAB. But in column mode(Ctrl + Shift + F8), when select multiple lines and press TAB, it enters tab not space. I think it should follow the optino to enter space.

    I reproduced your issue, but this is rather a specification now. I will address this issue in future versions. Thank you!

    in reply to: Projects plugin – one more subargument to get file name #6883
    Yutaka Emura
    Keymaster

    spectre wrote:
    I would like to make a suggestion to enhance Projects plugin.

    Currently, a predefined argument of a tool (like $(Solution) or $(Project)) can also have one of 3 subarguments (‘f’, ‘d’, ‘x’). This allows to get the full path, the directory or the extension of the corresponding file, respectively.

    I would suggest to add one more subargument, say, ‘n’, to get only the name of that file (without extension). This can be very convenient. It is not quite rare that the application built in a project has the same name as the project file. To provide custom tools to execute or debug the application from EmEditor, one needs to extract the respective name.

    Or assume one has created a solution template for Qt applications. It seems reasonable to give the same name as for the solution to some of Qt specific files – Qt project (.pro) file and may be others.

    Of course, there are ways to get around this like passing the full path to a .cmd-script or some program to extract the file name there. But having to write just $(Solution,n) would probably be much more convenient.

    I am sorry, but there was a mistake in the Help file. ‘f’ desginates the file name (without extension). I will correct the information in the Help. Thank you!

    Yutaka Emura
    Keymaster

    You are right. I will fix that in future versions.
    Meanwhile, instead of changing the Registry directly, after you install EmEditor, please go to the Customize on the Tools menu, select Shortcuts tab, and then click “More Shortcuts”, and then check “Add a Shortcut to the Context Menu on Explorer”.

    in reply to: how to keep window open after user tool finishes #6872
    Yutaka Emura
    Keymaster

    mikez302 wrote:
    I am using the command prompt window. I don’t like the output bar because I can’t see any of the output until the program is finished running, which can be a problem for big operations.

    I am now curious: if it is not possible to keep the command prompt window open, is there some way to make the output window show the output while the program is running, instead of waiting until it finishes?

    If you use the Command Prompt window, you can run cmd.exe with /k option. See examples:

    http://www.emeditor.com/help/faq/tools/tools_external.htm
    (Compile by Visual C++)

    The Output Bar should open as soon as you run external commands. Did you try the Output Bar open before you run the tool (View menu > Output).

    in reply to: how to keep window open after user tool finishes #6870
    Yutaka Emura
    Keymaster

    mikez302 wrote:
    I have another question. If I have a user tool, is there any way to keep the window open after it finishes running so I can see the result?

    Thank you,
    Elias

    Are you using the Output Bar or Command Prompt window? If you use the Output Bar, the result remains until you close the Output Bar.

    in reply to: newbie question: how to open a new window? #6867
    Yutaka Emura
    Keymaster

    mikez302 wrote:
    I did that. How do I open the new window?

    You can open a new window by double-clicking the Tray Icon or selecting EmEditor shortcut on your Start Menu.

    in reply to: newbie question: how to open a new window? #6864
    Yutaka Emura
    Keymaster

    mikez302 wrote:
    When I pick the “New Group” command, my open document moves to the new window. Is there any way to open a new window without any documents in it? I would like to open the window first, then load the documents, similar to how I can in other editors.

    Yes. Select Customize on the Tools menu, select “Tab” tab, and select “New Window” in the “Open In” drop-down list.

    in reply to: newbie question: how to open a new window? #6862
    Yutaka Emura
    Keymaster

    mikez302 wrote:
    Thank you. I didn’t notice that I could drag the tab outside of the window. That is good enough for me, but I would still prefer to have some sort of “new window” menu command. Is there any way of adding it?

    It is called “New Group” in the tab menu.
    :-)

    in reply to: newbie question: how to open a new window? #6860
    Yutaka Emura
    Keymaster

    mikez302 wrote:
    I am trying EmEditor, and overall I like it, but I have a question. Suppose I would like to have some documents open in one window, and some others open in another. How can I open a new window?

    Thank you,
    Elias

    You can drag and drop one tab to outside of the window. Alternatively, you can uncheck “Enable Tabs” on the Window menu.

    in reply to: Drop Target Stops Moving #6857
    Yutaka Emura
    Keymaster

    danderson wrote:
    I just installed EmEditor on a Windows 7 beta (64 bit) machine. I noticed that the the drop target line that appears when dragging text stops moving shortly after I start to drag a selection of text. I would guess this issue is probably specific to Windows 7, but I thought I would post the issue in case it affects 64 bit Vista as well or if it can easily be fixed :)

    I couldn’t reproduce your issue even though I am using the 32-bit Windows 7 beta in a Virtual PC. The gray vertical rectangular caret still appears and moves when I am trying to drag and drop text.

    in reply to: Undo bug #6851
    Yutaka Emura
    Keymaster

    Obkot wrote:
    When editing large plain text file (~600 MB):
    1. Select ~50\% of text from the begining of file
    2. Press ‘Del’
    3. ‘Copying to undo buffer’ dialog appears
    4. When progress indicator reaches 100\% program crashes. ;(

    If undo process was manually aborted EmEditor works fine.

    Which version did you use? Did you try the latest RC of 8.02?

    in reply to: EmEditor Professional 8.02 RC 4 #6847
    Yutaka Emura
    Keymaster

    owilsky wrote:
    Hmmm…. did you change anything in the mainmenu code?
    I use ini files.
    And my user defined menus are broken now in RC4 (See attached image)

    They worked fine in RC3.
    When I do a Tools/Customize Toolbars, all entries look fine.
    When I add some new menu entries in RC4, they also look fine.

    Any ideas?

    Oliver

    I reproduced this issue if added menu items are macros. Are all your added menu items macros?

    in reply to: 3 Feature request #6846
    Yutaka Emura
    Keymaster

    angel123 wrote:
    Hello,
    I have some suggestion to the emeditor.
    First, i know emeditor have included many hotkeys for the function. But i find that it really conflict with other programs.
    If i find and disable that hotkey which is conflicted. I think it need many time to do it. So i suggest there is a checkbox to enable/disable all hotkey.

    Second because now wide lcd is low-price and the user will increase. I suggest emeditor can set 2 or more tab horizontal in ONE view

    Third it may be added the favorite function so we can bookmark and run the file fast

    thx

    You can enable or disable shortcut keys from Configuration Properties and Keyboard tab. You can also go to this dialog box from the Help menu > Keyboard Map. You cannot enable/disable all shortcuts at once, but you could do by writing a macro.

    You can also put any favorite files to any menu by writing a macro.

    I might think about redesigning the dialog boxes. Thanks!

    in reply to: something about serach #6845
    Yutaka Emura
    Keymaster

    EmUser wrote:
    There is test text bellow, just only some null row:

    when I search ^$,I can’t find nothing, when I use replace ^$ with d, Emeditor can work, it change null row with character d. Why when Find It display nothing.

    I see the cursor moving. Since nothing is selected, you won’t see anything, but if you activate the EmEditor main window each time after you find down or up, you will see the cursor moving down or up.

    in reply to: batch editing with command line: too fast? #6839
    Yutaka Emura
    Keymaster

    wizzlepig wrote:
    Hello,

    I am using emeditor via a batch file to edit various script-generated files, such as:

    “C:Program FilesEmEditoremeditor.exe” /fi “XYZ” “C:scriptsfile02.txt” /rw “ABC”
    “C:Program FilesEmEditoremeditor.exe” /fi “XYZ” “C:scriptsfile03.txt” /rw “DEF”
    “C:Program FilesEmEditoremeditor.exe” /fi “XYZ” “C:scriptsfile04.txt” /rw “GHI”

    When I save the commands above as a .bat file and run them, they often run too quickly, and emeditor fails to complete all find and replace actions within the files specified.

    Is there a better way to do this? I have been slowing down the flow with

    ping http://www.yahoo.com -n 2

    But that doesn’t seem like the best idea.

    Thank you in advance for any help.

    -Will

    I am not sure what the issue is. However, please consider using macros to do searches and replaces. Macros are much better and more reliable than using batch files.

    in reply to: Emurasoft is looking for Translators! #6838
    Yutaka Emura
    Keymaster

    We are also looking for a German translator, too. Please email me if you are interested. ([email protected]) Thank you!

    in reply to: Erase workspace #6836
    Yutaka Emura
    Keymaster

    owilsky wrote:
    Hi,

    is it possible to erase the workspace without getting the “Are you sure”-question?

    I tried
    editor.ExecuteCommandByID(4450);
    but there’s always the confirmation after it.

    Thanks,
    Oliver

    No. However, you can remove the registry value “Workspace” at HKEY_CURRENT_USERSoftwareEmSoftEmEditor v3Common.

Viewing 25 posts - 2,751 through 2,775 (of 3,701 total)