Jump to content
Macro Express Forums

dgehman

Members
  • Posts

    27
  • Joined

  • Last visited

Posts posted by dgehman

  1. Amazing posts - thanks again, acantor and Terrypin

     

    12 hours ago, acantor said:

    Fun project! What's the book about?

     

     

    Actually, it's not a book, but one topic from a Web-base help file as created in Help+Manual, one of the better old school help authoring tools (old school, meaning not browser-based & online, but installed as a program in your local computer).

     

    Long story about to follow... sorry...

     

    H+M has an input pane outside of the main window, the main one being where you enter the topic text & graphics. This secondary pane is labeled "keywords." When the help file is published as Web-based HTML output, keywords are merged into an accompanying index and search database that allows the viewer to search on terms in the help file. Putting the single-letter rubrics and the page numbers into the Keywords pane would make for really confusing results when a viewer searched on, say, "array" -- the page numbers would be a distraction, a puzzle.

     

    The particular topic in my original post is a long and highly complex reference topic for a software function catchall (with many functions detailed) that's part of the development language of my company's rule-based design/mechanical engineering software. 

     

    There are several similarly long topics that I need to index -- that is, extract the keywords. Doing this manually -- selecting each word and hitting CTRL+k for each) -- gets old and  can get confusing, So I bought a copy of PDF Index Generator... publish the long topic as a PDF... run it through PDF Index Generator... output it as a text file.

     

    The Macro Express function will be to strip the one-letter rubrics and the page numbers, so I can simply copy the text file and drop it into H+M's Keyword entry pane.

     

    Described this way, it begins to look even to me like madness... but it will still be better than manually scouring through some very long topics to mark keywords.

     

    Besides, I like to watch computers work.

     

    (It might be more sane just to record/write a simple Macro Express function to double-click the word where the cursor is placed, then keyboard (Text Type) CTRL+k. But that still won't stop my mind from wandering or losing track and creating duplicates.)

  2. 9 minutes ago, rberq said:

    Getting familiar with the ME commands is something of a project.  You almost have to go through them one by one and look at all the options of each command, and use the Help file in conjunction with that.  It's often not obvious how the low-level commands can fit together to do a general function like "Parse". 

    Exactly right. Poking through docs used to be fun for me... today, it's more like work. I haven't been active with Macro Express for literally years - I remember coming away with the sense that you could do anything with it.

     

    1 minute ago, rberq said:

    If non-header lines ALWAYS contain a comma, you could detect a header by

     

    cmdc.JPG

    Maybe you meant NEVER contains? Luckily, it does have that attribute - or non-attribute, I guess -- no comma, anyway.

  3. I need to clean up a text file that is an index (like a book index, an alphabetical list of words and their page numbers). I want to strip out the single alpha heading (a, b, c, d, etc) and the page numbers. The output can have one or more page numbers and ranges (e.g., ", 21", after "abs" and ", 10, 15, 17, 19-22" after the word "array" in the example below).

     

    Example:

    Quote

    A
    AAA, 2, 6
    abs, 21
    Accessors, 1, 5
    acos, 2, 7
    Algorithm, 6
    arcsegs, 15
    arg, 19
    args, 16
    arguments, 23
    Aribitrary, 6
    Array, 3
    array, 10, 15, 17, 19-22
    arrays, 10, 19-21
    asin, 2, 7
    assembly, 14
    atan, 2, 7-8

     

    B
    BBox, 12-13

     

    The alpha head is always one letter. The individual index lines are comma separated.

     

    The ideal result for that example would be:

    Quote

    AAA
    abs
    Accessors
    acos
    Algorithm
    arcsegs
    arg
    args
    arguments
    Aribitrary
    Array
    array
    arrays
    asin
    assembly
    atan


    BBox

     

    To remove the single-letter alpha head: Is it possible to search for a single letter [a-z] + CR, then delete that letter + CR?

     

    Is there a better way?

     

    To delete the page numbers... and here, I'm stuck -- need problem-solving approaches and/or any suggestions.

  4. 1 hour ago, terrypin said:

    I assume you've now successfully run the macro?

     

    (Thanks for the answers.)

     

    And, yes, it runs after (of course) changing the paths to the files involved. It's a great learning experience, and it's going to be even better, since I want to modify the area to be deleted (adding a few lines previous to those I underlined in the full HTML page example in this thread).

     

    I do wish that Text File Begin Process had an option for the currently open file, to make the routine generic. I expect that this can be done by expressing the path of the file -- the file that I want to be processed -- as a variable. Maybe.

     

    And it would be more fun if I could see the file (in Notepad++) at it is being modified. It took me a minute or two to figure out it's a black box operation and that the output file was done and ready to look at.

     

    BTW, your macro takes less than a second to create the new output file from the 255-line original file (this, on a 10-year-old Dell Precision T3500 with a single, quad-core Xeon CPU).

  5. 2 hours ago, terrypin said:

    I've also exported the file as an MEX. Use File > Import > Import Macros... and browse to the file to import it.

     

    Ah - I thought that the code snippets included in the answers above had been saved as MEX, and that the contents had been pasted from the MEX file. By just now opening an MEX in Notepad, I see that a MEX file is formatted far differently than the content I saw above in the quote panes.

     

    That leads to a couple more newbie questions:

     

    What kind of export created the code snippets above? Or are they simply the result of cutting from the direct editor and pasting into the forum quotation pane?

     

    Why are these code snippets expressed in two segments/example blocks containing the same actions? Is this a convention that evolved for forum postings?

     

    (By "segments" I mean that each quote block above contains the same information in two formats. These formats correspond to the two view types that can be toggled in the direct editor, type (1) where commands are in angle brackets ["script"]; type (2) where command lines are plain text ["ASCII".])

  6. Samrae, thanks. I've been through the scripting docs and skimmed the variables docs, but didn't happen on the information you've given me. (I'm sure it's there somewhere, now that I know what to look for). It didn't occur to me that vslues were pre-evaluated, thinking that evaluation happened at runtime. Interesting. Probably speeds up execution measurably.

     

    I hadn't gotten as far as addressing how the files would be brought onto the virtual table for surgery. I'll definitely look into the HTML command(s).

  7. OK. (Again, I'm now working in ME6 Pro)

    So much to learn, so little time -- 

     

    I've copied what I'll call the 2nd iteration of the script in Terrypin's post above - the section of the code quotation that begins, "<COMMENT Value="Set the EOL..." etc.

     

    I pasted it into ME6 Pro's direct editor.

    When I try to save the .mex file, I get a series of pop up errors:

    The variable "CR" is not current defined (but it IS in the script)

    Same for variables "LF" and "CRLF", "tAction", "tLine", "tOutput"

     

    As far as I can see, all of these variables are in fact declared. 

     

    Should I be copying and pasting what I'll call the first iteration, the portion beginning, "//Set the EOL character for later use." and extending through to "Variable Modify String: Save %Output% to... etc."?

  8. Rats.

    @acantorME5 doesn't  have Variable Set Boolean 

     

    Little details like this and Split String, Join String (and possibly much more) weren't included in the product comparison chart on https://www.macros.com/compareproducts.htm -- result: I bought the wrong version.

     

    I've emailed sales/customer support to put into motion my move to ME6 Pro.

     

    Frankly, I can't imagine doing any coding of anything without string handling and Boolean operations...

  9. 2 minutes ago, terrypin said:

    So it is just that one section to be deleted, uniquely identified by its first line containing the string
    <section class="tsd-panel tsd-index-panel">
    yes? YES

    If so one way would be to use Text File Begin Process. Test each line for that string. If it does not contain the string use Variable Modify String > Add Text to build an output variable. When it *is* encountered, skip the Add Text and instead set a flag. Test the flag for each subsequent line and if it is still set continue ignoring the Add Text command But also test for the string
    </section>
    and when found reset the flag.

    The remaining content will then be added to your output variable, which you will finally save to a file, replacing the original.

    And I"ll parse through with help manual in hand...

    Ah, I see acantor beat me to it, so try his complete macro first!

    I'm planning to learn from both

    
    
    Thanks also to you, terrypin. By the time I'm done, my grasp of ME5 should be a lot stronger!

     

  10. Sure, the whole file, because I don't know what you're looking for - unfortunately it's on the long side. I've underlined the section to delete:

    Quote

    <!doctype html>
    <html class="minimal no-js">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>DrawingSheet | Base Library docs</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="../assets/css/main.css">
    </head>
    <body>
    <header>
        <div class="tsd-page-toolbar">
            <div class="container">
                <div class="table-wrap">
                    <div class="table-cell">
                        <strong><a href="../designs-index.html" style="text-decoration: underline;">....</a></strong>
                        &nbsp;
                        <strong><a href="../js-index.html" style="text-decoration: underline;">....</a></strong>
                    </div>
                    <div class="table-cell">Copyright &copy; 2020</div>
                    <div class="table-cell" style="font-size: smaller;">&nbsp;&nbsp;(v.0.0)</div>
                </div>
            </div>
        </div>
        </header><div class="container container-main">
        <div class="content-wrap">
            <section class="tsd-panel tsd-comment">
                <div class="tsd-comment tsd-typography">
                    <div class="lead">
                        <a href="#drawingsheet" id="drawingsheet" style="color: inherit; text-decoration: none;">
                            <h1>DrawingSheet</h1>
                        </a>
                        <p><strong>Mixins</strong>: <a href="rectanglemixin.html">RectangleMixin</a>, <a href="rectanglerendermixin.html">RectangleRenderMixin</a>, <a href="baseassembly.html">BaseAssembly</a></p>
                    </div>
                    <p>A single sheet of virtual paper, representing an engineering drawing that can contain scaled views of scenes from modele space.  A drawing sheet uses it own &#39;paper units&#39; so that it maps to an actual paper size in PDF and other outputs.</p>
                    <p>A drawing sheet is always its own <a href="scene.html">Scene</a>, with the scene name the same as the <code>sheetName</code>.  Any geometry (not just 2d graphics) can be placed into a drawing sheet, but it will always be viewed as if in a Top view, with +X to the right, and +Y to the top.</p>
                    <p>DrawingSheets are the only object that can have <a href="viewport.html">Viewport</a> children.  DrawingSheets cannot have DrawingSheet children, and cannot appear in another scene.</p>
                </div>
            </section>
            <section class="tsd-panel-group tsd-index-group">
                <h2>Index</h2>
                <section class="tsd-panel tsd-index-panel">
                    <div class="tsd-index-content">
                        <section class="tsd-index-section ">
                            <h3>
                                Rules
                            </h3>
                            <ul class="tsd-index-list">
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#__mod3" class="tsd-kind-icon">__mod3</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#color" class="tsd-kind-icon">color</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#length" class="tsd-kind-icon">length</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#modelnode" class="tsd-kind-icon">model<wbr>Node</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#papersize" class="tsd-kind-icon">paper<wbr>Size</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#paperunits" class="tsd-kind-icon">paper<wbr>Units</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#rendernode" class="tsd-kind-icon">render<wbr>Node</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#scenename" class="tsd-kind-icon">scene<wbr>Name</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#sheetname" class="tsd-kind-icon">sheet<wbr>Name</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#showborder" class="tsd-kind-icon">show<wbr>Border</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#size" class="tsd-kind-icon">size</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#viewscale" class="tsd-kind-icon">view<wbr>Scale</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#width" class="tsd-kind-icon">width</a></li>
                            </ul>
                        </section>

                    </div>
                </section>
            </section>
            <section class="tsd-panel-group tsd-member-group ">
                <h2>Rules</h2>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="__mod3" class="tsd-anchor"></a>
                    <h3>__mod3</h3>
                    <div class="tsd-signature tsd-kind-icon">__mod3<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p>Internal Use Only.</p>
                        </div>
                        <p><em>Flags</em> : cached, external</p>
                        <p><em>Expression</em> : <code>R.THREE.makeDrawingSheet(this.renderName,this.length,this.width,this.paperUnits)</code></p>
                    </div>
                    <!--
    -->
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="color" class="tsd-anchor"></a>
                    <h3>color</h3>
                    <div class="tsd-signature tsd-kind-icon">color<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p>Override of the standard rule to make all content black instead of gray.</p>
                        </div>
                        <p><em>Flags</em> : cached</p>
                        <p><em>Expression</em> : <code>&quot;black&quot;</code></p>
                    </div>
                    <!--
    -->
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="length" class="tsd-anchor"></a>
                    <h3>length</h3>
                    <div class="tsd-signature tsd-kind-icon">length<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p>This can be set to create a custom paper size, but is normally automatically obtained from the <a href="drawingsheet.html#size">size</a> parameter.</p>
                        </div>
                        <p><em>Flags</em> : cached, parameter</p>
                        <p><em>Default expression</em> : <code>this.papersize[this.size].xSize</code></p>
                    </div>
                    <!--
    -->
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="modelnode" class="tsd-anchor"></a>
                    <h3>model<wbr>Node</h3>
                    <div class="tsd-signature tsd-kind-icon">model<wbr>Node<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p><em>Behavior to change in upcoming release</em></p>
                        </div>
                        <p><em>Flags</em> : cached</p>
                        <p><em>Expression</em> : <code>this.showBorder</code></p>
                    </div>
                    <!--
    -->
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="papersize" class="tsd-anchor"></a>
                    <h3>paper<wbr>Size</h3>
                    <div class="tsd-signature tsd-kind-icon">paper<wbr>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p>Sheet space units: ISO sizes assume mm, ANSI assume inch</p>
                        </div>
                        <p><em>Flags</em> : cached</p>
                        <p><em>Expression</em> : <code>{&#39;ANSI A Landscape&#39;: { xSize: 11, ySize: 8.5 }, &#39;ANSI A Portrait&#39;: { xSize: 8.5, ySize: 11 }, &#39;ANSI B&#39;: { xSize: 17, ySize: 11 }, &#39;ANSI C&#39;: { xSize: 22, ySize: 17 }, &#39;ANSI D&#39;: { xSize: 34, ySize: 22 }, &#39;ANSI E&#39;: { xSize: 44, ySize: 34 }, A4: { xSize: 210, ySize: 297 }, A3: { xSize: 297, ySize: 420 }, A2: { xSize: 420, ySize: 594 }, A1: { xSize: 594, ySize: 841 }, A0: { xSize: 841, ySize: 1189 } }</code></p>
                    </div>
                    <!--
    -->
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="paperunits" class="tsd-anchor"></a>
                    <h3>paper<wbr>Units</h3>
                    <div class="tsd-signature tsd-kind-icon">paper<wbr>Units<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p>This can be set to &#39;in&#39; or &#39;mm&#39;, but is normally automatically obtained from the <a href="drawingsheet.html#size">size</a> parameter.</p>
                        </div>
                        <p><em>Flags</em> : cached, parameter</p>
                        <p><em>Default expression</em> : <code>this.size.startsWith(&quot;ANSI&quot;) ? &quot;in&quot; : &quot;mm&quot;</code></p>
                    </div>
                    <!--
    -->
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="rendernode" class="tsd-anchor"></a>
                    <h3>render<wbr>Node</h3>
                    <div class="tsd-signature tsd-kind-icon">render<wbr>Node<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p><em>Behavior to change in upcoming release</em></p>
                        </div>
                        <p><em>Flags</em> : cached</p>
                        <p><em>Expression</em> : <code>this.showBorder</code></p>
                    </div>
                    <!--
    -->
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="scenename" class="tsd-anchor"></a>
                    <h3>scene<wbr>Name</h3>
                    <div class="tsd-signature tsd-kind-icon">scene<wbr>Name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p>Override of the standard rule so that it is always the <a href="drawingsheet.html#sheetname">sheetName</a>.</p>
                        </div>
                        <p><em>Flags</em> : cached</p>
                        <p><em>Expression</em> : <code>this.sheetName</code></p>
                    </div>
                    <!--
    -->
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="sheetname" class="tsd-anchor"></a>
                    <h3>sheet<wbr>Name</h3>
                    <div class="tsd-signature tsd-kind-icon">sheet<wbr>Name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p>The name of the sheet, and thus the scene.</p>
                        </div>
                        <p><em>Flags</em> : cached, parameter</p>
                        <p><em>Default expression</em> : <code>&quot;Sheet1&quot;</code></p>
                    </div>
                    <!--
    -->
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="showborder" class="tsd-anchor"></a>
                    <h3>show<wbr>Border</h3>
                    <div class="tsd-signature tsd-kind-icon">show<wbr>Border<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p>Whether to show a rectangular border representing the paper boundary.</p>
                        </div>
                        <p><em>Flags</em> : cached, parameter</p>
                        <p><em>Default expression</em> : <code>true</code></p>
                    </div>
                    <!--
    -->
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="size" class="tsd-anchor"></a>
                    <h3>size</h3>
                    <div class="tsd-signature tsd-kind-icon">size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p>The standard nominal paper size of this sheet. Must be one of the elements in the <a href="drawingsheet.html#papersize">paperSize</a> list.</p>
                        </div>
                        <p><em>Flags</em> : cached, parameter</p>
                        <p><em>Default expression</em> : <code>&quot;ANSI B&quot;</code></p>
                    </div>
                    <!--
    -->
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="viewscale" class="tsd-anchor"></a>
                    <h3>view<wbr>Scale</h3>
                    <div class="tsd-signature tsd-kind-icon">view<wbr>Scale<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p>The default scale for viewports on this sheet. This is the size on the sheet relative to model space.</p>
                        </div>
                        <p><em>Flags</em> : cached, parameter</p>
                        <p><em>Default expression</em> : <code>1.0</code></p>
                    </div>
                    <!--
    -->
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                    <a name="width" class="tsd-anchor"></a>
                    <h3>width</h3>
                    <div class="tsd-signature tsd-kind-icon">width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
                    <div class="tsd-comment tsd-typography">
                        <div class="lead">
                            <p>This can be set to create a custom paper size, but is normally automatically obtained from the <a href="drawingsheet.html#size">size</a> parameter.</p>
                        </div>
                        <p><em>Flags</em> : cached, parameter</p>
                        <p><em>Default expression</em> : <code>this.papersize[this.size].ySize</code></p>
                    </div>
                    <!--
    -->
                </section>
            </section>
        </div>
    </div>
    </body>
    </html>

     

  11. Typical example:

    Quote

    <section class="tsd-index-section ">
                            <h3>
                                Rules
                            </h3>
                            <ul class="tsd-index-list">
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#__mod3" class="tsd-kind-icon">__mod3</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#color" class="tsd-kind-icon">color</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#length" class="tsd-kind-icon">length</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#modelnode" class="tsd-kind-icon">model<wbr>Node</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#papersize" class="tsd-kind-icon">paper<wbr>Size</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#paperunits" class="tsd-kind-icon">paper<wbr>Units</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#rendernode" class="tsd-kind-icon">render<wbr>Node</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#scenename" class="tsd-kind-icon">scene<wbr>Name</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#sheetname" class="tsd-kind-icon">sheet<wbr>Name</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#showborder" class="tsd-kind-icon">show<wbr>Border</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#size" class="tsd-kind-icon">size</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#viewscale" class="tsd-kind-icon">view<wbr>Scale</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="drawingsheet.html#width" class="tsd-kind-icon">width</a></li>
                            </ul>
                        </section>

     

  12. ME5

    my level: beginner

     

    Objective: select and delete a single entire HTML section, running from <section> to </section>

    Complication: the number of HTML lines between these two key words varies from file to file, so I can't just SHIFT + down-arrow a fixed number of times to select the code prior to DELETE.

     

    Is there a SELECT or  SELECT UNTIL command (I don't see one)... in this case, I'd select until reaching the ">" in "</section>"

    It's always a relatively short number of keytrokes that make up the section content... I'm not seeing an IF command that looks for specific characters -- but I see IF CLIPBOARD -- should I just pump </section> into the clipboard?

     

    Absent a SELECT command, how do I select a variably-long section of character content?

  13. I've tried searching the forum for this, but no luck.

     

    Is there a way to activate a macro with ShortKeys?

     

    I've tried

    -clicking on the page (but not on a link or text box) and typing the shortkey

    -typing the shortkey in the address bar

     

    The macro is application specific to IE. My IE version is 6.0.29 SP2

     

    Dave

×
×
  • Create New...