Forum Replies Created

Viewing 25 posts - 326 through 350 (of 353 total)
  • Author
    Posts
  • in reply to: get help on function using standart chm files #9510
    Stefan
    Participant

    WOW Yutaka, thanks, works great.

    I will test some more, but basically that’s how i had imagine it.

    My experiences:

    First i got an error


    ---------------------------
    eehelptool.exe - Komponente nicht gefunden
    ---------------------------
    This application has failed to start because MSVCR100.dll was not found. Re-installing the application may fix this problem.
    Die Anwendung konnte nicht gestartet werden, weil MSVCR100.dll nicht gefunden wurde. Neuinstallation der Anwendung könnte das Problem beheben.
    ---------------------------
    OK
    ---------------------------

    That’s because i didn’t have the “Visual C++ 2010 Redistributable Package” installed.
    I had only 2005 and 2008 installed.
    Now i got interim the MSVCR100.dll and put them in the
    same folder as the eehelptool.exe and it works fine.

    I have set up this tool as:

    Titel: short description, e.g. VBScript help file
    Command: path to eehelptool.exe, even relative to EmEditor folder, e.g. myDocuseehelptool.exe
    Arguments: path to help file, even relative to EmEditor folder, e.g. myDocusSCRIPT56.CHM $(WordText)
    Initial Dir:
    Icon Path: path to icon resource, e.g. \%SystemRoot\%hh.exe for the default help file icon

    Note the ” $(WordText)” after the CHM which will search the CHM for just that selected keyword.
    In fact, the keyword even have NOT to be selected, just the cursor right before the first char or after the last char is enough for “$(WordText)” to work. Great.

    Of course this “search for the keyword” feature will work only for CHM files which are compiled with an proper index. If not, or if you just want to open the CHM without jumping to the “selected” word, you don’t need to include this ” $(WordText)” part to your Arguments: definition.

    – – –

    I have found one improvement wish:
    the keyword is found and selected in the index tab,
    but i miss:
    * pressing enter (so to say) to open the page in the preview pane for ease use
    * having the focus in that preview pane to allow immediately scrolling

    Maybe that can be included too?

    – – –

    Question:

    will this tool be part of the core package or even be included in the EmEditor.exe?

    Maybe from interest for you:

    other editors allow to have one syntax related help file (like SCRIPT56.CHM for *.VBS) per syntax language configuration, and all are accessible via the same shortcut (like Alt+F1).
    Which CHM is opened depends on the currently active syntax configuration.
    If i am on an VBS doc, the vbs.CHM is launched.
    If i am on an HTML doc, my html.CHM is opened.

    So we didn’t need to have 5 tools / toolbar icons / shortcuts
    just to open the syntax related help files. One would be enough.

    Just some ideas. Thanks for EmEditor. Great Tool. Well done.


    Ah, thank CrashNBurn too. I have tried that before posting my question but found it not works
    well with relative paths and all over all that is not that easy for the average user (beginners)

    in reply to: Snippets insertion point #9507
    Stefan
    Participant

    As an hint for others reading the above request, here is the solution.

    To work with selected text have ${SelText} in your snippet.

    Example 1:
    For HTML; format bold
    ${SelText}

    Example 2:
    For AutoHotkey; surround with \%-signs
    \%${SelText}\%

    – – – – – –

    To have your cursor at the right place after the snippet is inserted
    simple add an placeholder like $7

    Example 1:
    For VBScript
    Dim $4 As String

    Results in:
    Dim | As String

    Example 2:
    For Dairy
    ${Date} ${Time} Log: “$1”

    Results in:
    19.07.2011 17:37 Log: “|

    Example 3:
    For XYplorer script

    $$$1=1; 
    while($$$1 < 10){

    msg $$$1,1;
    //your code here> $2

    $$$1++;
    }

    Usage:
    * first, at the first $1, type the name of the loop var, e.g. ‘LoOp’
    (This var name is copied to all places where the placeholder ‘$1’ is found else)
    * second press TAB to jump behind ‘//your code here’

    Note:
    the var name for XYplorer script have to be prefixed by an ‘$’
    and since this $ has an special meaning for EmEditor snippet
    we have to escape them by doubling this sign to ‘$$’

    Results in:


    $LoOp=1;
    while($LoOp < 10){

    msg $LoOp,1;
    //your code here> |

    $LoOp++;
    }
    in reply to: get help on function using standart chm files #9502
    Stefan
    Participant

    No answer here the last three years?

    Hello there,

    I’m locking for the same:
    how can i open an help file for an language
    to lookup an keyword?

    I search a function
    to put the cursor at an word and then press an shortcut
    to open an defined help file (CHM),
    just for the current used language,
    which jumps to that word.

    How can i do this with EmEditor?

    I searched the properties for the language configuration
    and the tools configuration but found nothing.

    For example:
    for *VBS files
    i want to set the “.docsSCRIPT56.CHM” as language help file.
    And then i want to put the cursor on the word “msgbox”, press an shortcut
    and want EmEditor to open “.docsSCRIPT56.CHM::MsgBox.htm”
    for me.

    Stefan
    Participant

    I don’t know if i do it the elegant way, but at least it works:

    Example text:








    Result:
    1:

    4:

    6:

    9:

    RegEx used to match wanted line:

    Script:


    strSelectedText = document.selection.Text
    If strSelectedText = "" Then
    alert "Nothing selected. Script quits."
    Quit
    Else
    'alert strSelectedText
    End If


    'regex search pattern:
    strREPattern = "<a href=.https.+/(en|us)/.+>"


    'how many lines?
    yPosStartSelection = document.selection.GetAnchorPointY( eePosLogical )
    yPosEndSelection = document.selection.GetBottomPointY( eePosLogical )
    LinesSelected = yPosEndSelection-yPosStartSelection


    'For Each Line In LineS Do:
    LinesArray = split(strSelectedText, vbCRLF)
    funcRegExReturn =""
    For LineNr = 0 to LinesSelected -1
    currLine = LinesArray(LineNr)
    'alert LineNr & ": " & currline & ": " & strREPattern
    funcRegEx strREPattern, currLine
    'alert funcRegExReturn
    If funcRegExReturn = TRUE Then
    OutArray = OutArray & Linenr+1 & ": " & currLine
    If LineNr < LinesSelected -1 Then OutArray = OutArray & vbCRLF
    End If
    Next

    'TEST:
    'alert OutArray



    'Write OutArray to new document:
    'if not editor.EnableTab then
    ' editor.EnableTab = True
    'end if
    editor.NewFile
    document.write OutArray



    Function funcRegEx(needle, haystack)
    funcRegExReturn = false
    Set regEx = New RegExp
    regEx.Pattern = needle
    regEx.IgnoreCase = True
    regEx.Global = True
    if regEx.Test(haystack) Then funcRegExReturn = TRUE
    End Function

    HTH? :-D


    @Emura

    But i don’t understand why the function didn’t return something with the function name?

    I think this should work:


    call funcRegEx x y

    If funcRegEx Then alert "OK"

    Function funcRegEx(needle, haystack)
    Set regEx = New RegExp
    regEx.Pattern = needle
    regEx.IgnoreCase = True
    regEx.Global = True
    if regEx.Test(haystack) Then funcRegEx = TRUE
    End Function

    but i have to use something like:


    Dim funcRegExReturn

    call funcRegEx x y
    If funcRegExReturn Then alert "OK"

    Function funcRegEx(needle, haystack)
    Set regEx = New RegExp
    regEx.Pattern = needle
    regEx.IgnoreCase = True
    regEx.Global = True
    if regEx.Test(haystack) Then funcRegExReturn = TRUE
    End Function

    10.1.0, 32-bit portable on XP 32 SP3

    in reply to: Buy EmEditor from Emurasoft directly paying with Euros? #9077
    Stefan
    Participant

    Thanks for the responses.
    Here are some facts, just for your information, in case you don’t know:

    Yes, i have removed all additional positions.
    And the price of 31,81 Euro excl. VAT is still 44,36 Dollar.
    http://de.finance.yahoo.com/waehrungen/waehrungsrechner/#from=EUR;to=USD;amt=31.81

    The rest till EUR 37.85 are german VAT.
    So i have to pay EUR 37.85 which are $53,
    http://de.finance.yahoo.com/waehrungen/waehrungsrechner/#from=EUR;to=USD;amt=37.85

    That’s why i asked if there are other possibilities to buy (pay for) EmEditor :-)
    Is there an store in USA from where i can buy?
    Or can i make perhaps an donation to get an license,
    or can i send the money to your private PayPal account?

    Thanks…

    in reply to: Search and Replace multiple lines #6689
    Stefan
    Participant

    “Tools > Customize…” >> Search -Tab

    >>> [x] RegEx match newline
    >>> Additional Line [50], f.ex.

    in reply to: Vertical selection problem #6491
    Stefan
    Participant

    silverma wrote:

    I feel very frustrated now and please help!

    Help!

    Abe

    Hi Abe.
    What’s on?… did it works now?

    in reply to: Vertical selection problem #6478
    Stefan
    Participant

    O.K. Abe, here we go…

    would you please test this feature with the EmEditor version who provide this feature?
    see http://www.emeditor.com/modules/feature1/

    EmEditor Professional 8 New Features
    Vertical Selection Editing
    The new vertical selection editing feature allows you to replace similar lines quickly without using regular expressions.

    Go to Download page http://www.emeditor.com/modules/download2/
    and download the last beta of the upcoming EmEditor version 8.

    Next Beta Version (Version 8.00 beta 12)
    Download 32-bit

    Then please test again and tell us how it works.

    HTH?
    bye
    stefan

    in reply to: Vertical selection problem #6475
    Stefan
    Participant

    Abe, would you please tell me the version of your EmEditor?
    See “Help > About EmEditor”

    in reply to: Vertical selection problem #6472
    Stefan
    Participant

    silverma wrote:
    I could successfully vertical select my text object by pressing ALT while I drag the mouse across my selection.
    Once I ready to type something else to replace the original text, it only replaced the text on first row of my selection, not the rest of my selection.

    Hi Abe,
    this works for me.
    (I don’t remember if i have modified something in Settings…, i think not)

    If one would exchange the old text
    1.) press and hold Alt-key
    2.) select an area with left mouse button
    3.) release the left mouse button
    4.) release the Alt-key
    Now start typing (or press TAB or Space) and the old text is gone

    If one would keep the old text
    1.) press and hold Alt-key
    2.) make an zero-width selection down with left mouse button
    (press left mouse button and scroll down, not left, not right)
    3.) release the left mouse button
    4.) release the Alt-key
    Now start typing (or press TAB or Space) and new space or text is inserted.

    Note: the Alt-key could be released just after start moving the mouse


    I know that you already know this ;-)
    Works here on XP SP2 and …. oh, this is still beta4 on THIS pc…

    in reply to: News: The final Version 8 Release will be Delayed #6465
    Stefan
    Participant

    I don’t know the english words…
    but i think we all are with the Emura family in this times.

    My heartfelt sympathy!

    in reply to: EmEditor Professional 8.00 beta 10 #6443
    Stefan
    Participant

    Yes, disabling “Additional lines to search RegEx : 10”
    helps here.

    This means that ?-sign didn’t switch non-greedy.
    EmEditor still search for the longest match and
    search for my 10+ lines.

    ——

    Before disabling this “Additional lines” i try:
    Search ^(.+?Fixed:.+?)$
    Replace: #1#

    I added two ?-signs.

    Pressing [Replace all]
    give me a messgbox: “Out of memory. No UNDO available”
    Pressing [No] here lets EmEditor stop working.

    ———–

    Suggestions:
    1.) EmEditor should recognize the ?-sign to work non-greedy.
    2.) i want to point to my request to add this “Dot find new line”-option to the find&replace-dialog
    for easy access

    in reply to: EmEditor Professional 8.00 beta 10 #6442
    Stefan
    Participant

    Load TC History.txt from http://www.ghisler.com/history.txt
    (Copy the content to get 16.000 lines)

    RegEx Search for: ^(.+Fixed:.+)$
    Replace with: #1#
    [Replace all]

    I get bad result. The #-sign is inserted here and there but not where i want it to be (at start and at end of an line containing the word Fixed:

    Note: the right lines are highlighted correctly but the replacing is not correct.

    – – –

    RegEx Search for: ^(.+Fixed:.+)$
    Replace with: nothing
    [Replace all]

    seams to delete all line containing the word “Fixed:”
    but i can’t see it because…the view is not refreshed.

    I use [End]-key to jump to the end of file.
    Then i scroll up with Page-up.
    The line numbers are changed
    but the displayed text is still the same because the view is not refreshed.
    If i scroll more…the text are crumbled to mini chars, then to small line strokes… not read-able any more.

    If i went from this forum back to EmEditor there is no more text but this forum contend…. i.e. EmEditor view is no more refreshed.

    And i get EmEditor to stop working a few times.
    I don’t see EmEditor is stable right now.
    It’s hard to document and describe this all,
    but if you need more info just ask, then i do the work.

    beta10
    Additional Lines to search RegEx was set to ’10’ ….if this says something?
    XP SP2
    1.4Ghz DELL D600 / 2GB RAM

    ——-

    BTW
    yesterday evening
    i had problems with Snipplets-Plugin
    while drag&dropping text to the side window.
    EmEditor stop working all the time.
    That was beta8 and beta9 … today with beta10 this problem was gone.

    best regards
    Stefan

    in reply to: EmEditor Professional 8.00 beta 8 #6436
    Stefan
    Participant

    Yutaka wrote:

    zhouzh2 wrote:
    “Grab Text” feature video.
    nothing happened when I press “crtl+alt+x”,
    Using EmEditor Professional 8.00 beta 9

    You must have the Tray Icon running for this feature to work.

    > You must have the Tray Icon running
    Puh, good to know this.

    To enable tray icon,
    go to “Tools > Customize”
    on “Shortcut”-tab
    and check “[ x] Display a tray icon”

    . Right click on the Tray Icon, and select “Customize Tray Icon”, where you can change the shortcut key to Grab Text with EmEditor.

    There is no such settings in tray icon.
    Only in “Tools > Customize” if you press [Customize Tray Icon]-button

    But it didn’t works for me while editing this text here in the forum?.
    Neither Ctrl+Alt+x, nor Ctrl+Alt+ü (ue) or Ctrl+Alt+O
    Using EmEditor Pro 8.00 beta 9 on WinXPsp2 German layout

    I will test more :-D

    CU
    Stefan

    in reply to: EmEditor Professional 8.00 beta 7 #6410
    Stefan
    Participant

    Hi Yutaka, nice to see you ;-)

    in reply to: EmEditor Professional 8.00 beta 7 #6389
    Stefan
    Participant

    That Download side
    http://www.emeditor.com/modules/download2/ (Next Beta Version)

    still links to beta 6

    instead to beta 7
    http://www.emeditor.com/pub/emed800b7epx.msi

    in reply to: Projects.dll crash #6374
    Stefan
    Participant

    Just tested:
    With beta3 i have again some bad issues.

    But projects in beta5 works stable (as far as i use it)
    I was not able to crash this plugin. :hammer:

    in reply to: How to use "Object"? #6366
    Stefan
    Participant

    OK, with your all help i was able to code this in VBS.
    Now i can automate the steps to split lines with an macro.

    Unfortunately the save-settings-process take seconds to do.
    So splitting even 10 lines only takes 2 seconds.
    (I also notice the settings-dialog from menu takes up to 5 sec. on different PC to appear)
    (tested with EmEditor Professional 8.00 beta 4)

    Here is my working but basic macro to split lines with pure editor commands:

    Attention:
    There is no error handling right now.
    Use on Test files only!

    Split-Wrap-Reformat.vbee


    #title = Reformat
    #tooltip = Split selected lines to reformat paragraph
    '// very basic VBS-macro, works on selected lines only

    ' reference to object (is this an right description???)
    SET myOBJECT = DOCUMENT.Config

    'get current wrap mode and store it into a var
    StartWrapMode = myOBJECT.General.WrapMode

    'Hint: General.WrapMode are 0=eeWrapNone, 1=eeWrapByChar, 2=eeWrapByWindow, 3=eeWrapByPage
    'Hint: For eeWrapByChar first set "Configuration Properties - General tab >Normal Line Margin"

    'set desired wrap mode
    myOBJECT.General.WrapMode = 1
    myOBJECT.Save

    'execute
    document.selection.Format eeFormatSplitLines

    'set back start wrap mode
    myOBJECT.General.WrapMode = StartWrapMode
    myOBJECT.Save
    in reply to: How to use "Object"? #6357
    Stefan
    Participant

    Thanks Yutaka, that works


    cfg = document.Config;
    alert (cfg.General.WrapMode);

    I see an messagebox with an number of the current wrap setting.
    If i switch the wrap mode and execute the macro again i see the corresponding number to that mode.

    – – –

    With


    cfg = document.Config;
    cfg.General.WrapMode = 1; //eeWrapByWindow;
    cfg.Save();

    i am able to switch the mode (and how the text is wrapped) by macro.

    – – –

    Now i try to (understand this and) code this in VBS.

    THX :-D

    in reply to: Add a few more items to make EmEditor pure genius #6356
    Stefan
    Participant

    dreftymac
    1) More GUI control types:
    There needs to be a way to use the “general purpose” input gui that is included with the Snippets plugin.

    Also, there needs to be a “history-based” GUI control that remembers what you have typed,

    Yes :-D that would be nifty.

    – – –

    that is included with the Snippets plugin

    What are you talking about? :-o
    With snippets I have an side window fro d&d only???

    Where / what is the Snippets Grid control ???

    Where is that GUI, can i see that too :-D

    in reply to: How to use "Object"? #6348
    Stefan
    Participant

    THX dreftymac,

    EmEditor Home – EmEditor Help – EmEditor Macro Reference > Configs Collection
    Configs collection provides a collection of Config objects.

    This part works
    (I don’t know where this ‘General’ comes from now …?)


    For Each cfg In editor.Configs
    alert cfg.Name
    alert cfg.General.WrapMode
    Next

    I see MsgBoxes like Bat, C’ and C++,…. and ones and zeros, depending to the current state of the settings

    – – –

    But the example in the help

    nMode = OBJECT.WrapMode

    i didn’t bring to work.

    I try a lot of possibilities like
    SET cfg = CreateObject(“editor.Configs”)
    alert cfg.General.WrapMode _ :-( :-D

    – – –

    I want to do this with the command:



    nMode = OBJECT.WrapMode 'store current
    Object.WrapMode = eeWrapByChar 'set other mode
    document.selection.Format eeFormatSplitLines ' execute editor command
    Object.WrapMode = nMode 'restore mode

    Any one can enlighten us :-D

    in reply to: Minimize to Tray removes #6344
    Stefan
    Participant

    I search for this “Minimize to Tray”-feature too :-D

    For people having EmEditor open during the day
    this would be a nice feature, without using third party tools ;-)

    I would like to have the option
    to minimize EmEditor include open, un-saved documents
    to the tray (like minimize to task bar)
    without to have to save documents first.

    – –

    BTW, i found this existing Tray-Icon feature very nifty too:

    EmEditor Help – Command Reference – File category
    > Display Tray Icon command

    All Commands: File > New > Display Tray Icon

    :thumpsup:

    Maybe you can combine this two features?

    in reply to: Replace issue (Replace / Replace All) #6339
    Stefan
    Participant

    I fixed your first issue. Thank you for reporting.

    Test with v8 beta4, fixed confirmed ;-) :pint:
    Thank you Yutaka.

    Note to others:
    those visual, real line breaks in replace string are stored as n

    The second issue must be added as an option.
    It is too late for Version 8, but I might think as a new feature in future versions.

    Thanks you.

    in reply to: Help file improvements #6311
    Stefan
    Participant

    EmEditor Help – EmEditor Macro Reference – Directives

    I miss the info that this Directives must be
    on top of the script at the first lines, above the main code.
    (Maybe this is familiar for coders, but not for all people)

    And we need no enclosing the text in quotes ” ”
    because the are then part of the title or tool tip too.

    ——————- ——————–
    I have testet this issue with this little macro:

    #title = Enclose selection with \%…\%
    #tooltip = Tooltip: Select some text and execute this macro to put an \%-sign in front and at the end of the selected text
    ‘// enclose an selection with sign
    mySign = “\%”
    selText = document.selection.Text
    selText = mySign + selText + mySign
    ‘alert selText
    document.selection.Text = selText
    ——————– ——————–

    in reply to: automatic paragraph formatting? #6303
    Stefan
    Participant

    > There is no automatic way to do this,
    > but you can do that manually after writing a paragraph.
    > After selecting text, you can click right mouse button,
    > select Convert Selection, and then Split Lines.

    It took me some time to find out how this works to split lines.

    Before you can split lines you have to enable one of the wrap modes.

    1.) Wrap lines with one of the three modes till your lines are wrapped the way you like it.
    (this wraps all lines in the whole text)
    Use “Wrap by Characters Strg+2” to split after x chars (use “Tools > Properties > General > Normal Lines Margin” to set char count)
    2.) Now select the lines you want to split for ever
    3.) “click right mouse button, select Convert Selection, and then Split Lines.”
    Now this lines are spitted to single lines, all others are wrapped only.
    Then use an other wrap mode to see the remnant text in an proper way again.

    If ‘No Wrap’ mode is enabled, then “Split Lines” is greyed out.
    This is not an familiar way… but i will check it out :-D

    Better would be if split would work with ‘No Wrap Strg+1’ too.
    Maybe show an dialog to enter the amount of chars to split after.
    Yes, imho it’s better to have “split lines” independent from “Wrap”
    That way we could wrap lines “By WIndow” Strg+3 but still split some lines at “char 72”

    That way we could reformat paragraphs more easy.
    :-) What do you think Yutaka?

Viewing 25 posts - 326 through 350 (of 353 total)