Jump to content
Macro Express Forums

garlicnonions

Members
  • Posts

    34
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by garlicnonions

  1. I went back to some code and tried to modify the macro run command in script window but nothing happened..no dialog ...just hangs. pressing escape allowed me to interact with ME3 again but even trying to insert macro run command into a new macro does nothing. The other macro controls all seem to do as expected. I wonder if this is something to do with windows 10?

  2. "In your example the first time through the Text File Begin Process loop %T1% will contain "My Requisition Statuses"  (no CRLF)."

     

    ...I would have thought the CRLF would be included at the end of the line of text saved to %T1%, just as it shows in the screenshot...why is it not?

     

    I tried to do as you suggested, but no success. I am not sure i did it correctly though. What i tried was this:

    image.png.db926c51ab074ffe30e1f33e521d57bd.png

     

    where the contents of the "variable set integer" command are :

    image.png.ed2f000f1032f8203bd2e938a8342bed.png

     

    ....

     

     

    As for what Im trying to do:

    I am copying a webpage, locating the  section containing a list of items, then generating a csv file from that list.  The text copied from the webpage looks as follows, with the three repeating sections representing 3 separate items, each has 8 lines of text.  Each item will be one row in a csv file.  The reason I am trying to locate the CRLF is to find the blank section below the 3rd item which identifies the end of my area of interest. So I was thinking if i could locate repeating CRLF characters that followed the last item consecutively repeating ...as in the blank area I would define the end of my area of interest.  I have a work around of counting blank lines , as in "" assigned to a text variable. I would still like to be able to locate CRLF as I think it would simplify my code and would be useful in future projects.

    image.png.ce29ab7552eb27ffdc3ef728d6f61267.png

  3. So tried a real simple test to see if "get position of text" would find CR. I specifically saved a notepad file as ANSI and verified it was ansi with notepad ++. Still unable to find CR. The variable assigned the position returns 0 for all CR characters in the text.  Just to be sure I tried 113 instead of 13 to see if this would locate the letter q in my text and it did.  

    image.png.015460b5ca5558d02bd9c3b8dd1c8815.png

    • Thank you for your reply. I think the problem might be that this wont work with control characters in ascii such as CR and LF? I tried using just the ASCII 13 character and it doesn't find a single instance of it in a text file full of them.  Also I am working in ME3, don't know if that could also be the issue.

    Thank you. John

  4. I am trying to locate the cr and lf (carriage return and line feed) characters using "get position of text" option in set integer variables. The only way I can think of doing it is to assign the ascii character 10 and 13 to a text variable and then entering that into the function above as the text to search for.  I only get 0 as the position which I believe means its not found.  Is there a way to do this?

     

    Thanks, John

  5. Stan Jones from Insight Software Solutions, Inc. got back to me....

    Hi John,

     Essentially the <WIN> key is to be used with a letter after, such as the letter "r" to open the Run dialog. If you want to open the Start menu, then use the Win Down and Win Up keys - <WIND><WINU>.

     

×
×
  • Create New...