Jump to content
Macro Express Forums

ikodan

Members
  • Posts

    74
  • Joined

  • Last visited

Posts posted by ikodan

  1. Hello,

     

    I have a string, for exemple :

    %string% = "This is a sentence, I want to analyse the rythm."

     

    Is there a way to put each caracter in an array like : %s_letter[%n%]% ? 

    %s_letter[1]% = T

    %s_letter[2]% = h

    %s_letter[3]% = i

    %s_letter[4]% = s

     

    Because I want to make a macro that analyse in all ways a text, for "This is" :

    consonant vowel Th i s i s = 2 1 1 1 1

    letters in words : This is = 4 2
    uppercase : T hisis = 1 5

    letters between the ponctuation : "This is a sentence, I want to analyse the rythm." = 15 22

    etc...

     

    Thank you for help. 

  2. On 4/27/2021 at 6:29 PM, ikodan said:

    I need to compare 2 pages in order to monitor the changes. 

     

    I said that when you asked me what I wanted to do. The first question was about an image, because I planed to monitor the change in the page, with a "wait 5 sec" (recaptcha), and compare a picture of the page before and after. You asked me more precision when you tried to help me. 

     

    In this exemple, I have to detect when there is a new item added in the page, but I can't copy paste all the page and compare, because there is timers on each item, "last seen 5 minutes ago", and the macro will detect a change that I don't need.  

     

    Anyway thank you for your help... 

  3. Hello,

     

    Sorry, took me a while to answer.

     

    It's a very cool script !!

     

    Unfortunately in my case, it's text that updates, and after a loading time that seems to be in jquery.

     

    Here an example with the equivalent, some text which changes and I need to monitor a change, and the kind of jquery which adds a loading to the page: https://eu.tamrieltradecentre.com/pc/Trade/SearchResult?SearchType=Sell&ItemID=&ItemNamePattern=rusé&ItemCategory1ID=1&ItemCategory2ID=2&ItemCategory3ID=18&ItemTraitID=11&ItemQualityID=&IsChampionPoint=false&LevelMin=&LevelMax=&MasterWritVoucherMin=&MasterWritVoucherMax=&AmountMin=&AmountMax=&PriceMin=&PriceMax=&SortBy=LastSeen&Order=desc

     

    I also have an other exemple if needed, but that's exactly the kind of page I need to monitor. 

     

    But wait... Your script maybe works..? I'll try this :) that's a very cool one. Edit : not for the delay in jquery it seems. 

  4. 3 minutes ago, Cory said:

    I woudl use Text File Process to go though each line. On the 6th and 10th line and each interval there after I'd find the first occurrence of the space and take only the characters up to that. So if the space was at 4, take the substring 1 though 3. 

    This is assuming the line counts are consistent. 

     

    That's not 😁

  5. 10 minutes ago, terrypin said:

    To remove all ambiguity why don't you simply show two examples of the input and output?

     

     

    Ceinture de Bloublou
    Niveau  160
    @DonarX11
    Michto : Kipu
    Orkou IV
    400 
    X
    1 
    =
    400     Il y a 15 Heure
    Icône
    
    Ceinture de RATRRR
    Niveau  160
    @Zfeee
    eeffff: ttrrr
    Ertzzy
    525 
    X
    4
    =
    2100     Il y a 16 Heure
    Icône

     

    Become :

    400, 525

    Or

    400, 2100

     

    Thank you. 

  6. Hello,

     

    I'm not beginner with ME 4.9.1 but I never done this before.

     

    I want to treat a page where is 15 times this kind of data :

    Quote

    Ceinture de Bloublou
    Niveau  160
    @DonarX11
    Michto : Kipu
    Orkou IV
    400 
    X

    =
    400     Il y a 15 Heure
    Icône

     

    I want to trim this text in order to keep only one of the two numbers I underlined.

    Every text in each line can change, except "X" and "=", but I just want to keep one of the two "400" in this exemple. 

     

    I need this in order to refresh the entiere text, compare the one before, and the one after, and ring if there is a difference. But I'm able to do this part. 

     

    Thank you for help. 

×
×
  • Create New...