Jump to content
Macro Express Forums

Avarion

Members
  • Posts

    28
  • Joined

  • Last visited

Posts posted by Avarion

  1. Hi,

     

    i want to make a makro wich gets text from clipboard, reformates its content and append it to a file. I am not familiar with textprocessing in Macro Express.

     

    The clipboard text is in such a format:

     

    Personname

    (Department)

     

    Income: XXXX Entrydate: XX.XX.XXXX

    Sex: XXX Age: XX

     

    Some text-Some text-Some text-Some text-Some text-Some text-Some text-Some text-Some text-Some text-Some text-

    Some text-Some text-Some text-Some text-Some text-Some text-Some text-Some text-Some text-Some text-Some text-

     

    The file should appear like this:

     

    PersonName#Department#XXXX#XX.XX.XXXX#XXX#XX#Some text-Some text-Some text-Some text-Some text-Some text-Some text-Some text-Some text-Some text-Some text...

     

    The formatinglogic isnt so hard but i dont find the right commands in ME to manipulate strings.

     

    Any ideas?

  2. Hi, again. I have a problem with loops.

     

    The point is: The macro contains a series of variables like N20-N30. Now I have a loop and inside the macro shall take the loopcounter N1 and add 20. Then take the number to get the matching variable and put the content in variable N40.

     

    Sample:

     

    N1=0

    N20=4

    N21=6

    N22=342

    N23=12

     

    1. loop N1=1, N40=5 (N1+N20)

    2. loop N1=2, N40=8 (N1+N21)

    3. loop N1=3, N40=345 (N1+N22)

    4. loop N1=4, N40=16 (N1+N23)

     

    I am not able to mix the variable name and variable content. I dont find any infos in the ME-help. Idea anyone ?

  3. I've read it and I am sure I understand not more than 2/3 of it. The removing of "Range: ", "Duration: " and so on is easy, i can handle it by myself. The one problem I can not solve is a missing ; at end of every spelldescription.

    I've found you comment about this point in the source but I don't know exactly how to add the semicolon.

  4. Hauptbuch.txt looks pretty interesting.

    The words that are surrounded by ( ) ...some have another word after and some don't.  It looks like if you remove all of the spell text information that explains the spell, you're left with the data that you need to manipulate.  And it seems that a search for the left paren indicates a new line?

     

    The problem is that I need the spellinformation in the last field.

    The database field are:

    Spellname, Book (in this Book are all HB for "Hauptbuch"), Spelllevel, Reversible true/false, Wildmagic true/false (is not in the Spelldescription only in the spellist. Have to make it with my own hands), School (Necromancy, Alteration, Evocation and so on), Range, Components, Materialcomponents (only if there is a M in Components. Described in the Spelldescription. I'll make it myself), Spellduration, Castingtime, Area of Effect, Savingthrow, Spelldescription

     

    As a matter of clearness i moved the materialcomponents from Spelldescription in a seperate field. Perhaps I should mark the components before running the macro. Would be easier to seperate the fields.

  5. Ok, here are two Files. The file called "Hauptbuch.txt" is the original data. The file "HB 2.txt" is handmade as I need it for the database.

     

    Hmm. It seems I am not able to add RAR-Files, so it is a bigger ZIP-file. Sorry.

     

    Edit: there are some changes in the HB 2 compared with my description, like I put the spellcomponents, normally a part of the spelldescription, in a seperate field and I added a field with the value 1 in it as a description from what book I took the data. Dont get confused.

    AD_D.zip

×
×
  • Create New...