Jump to content
Macro Express Forums

koden

Members
  • Posts

    248
  • Joined

  • Last visited

Posts posted by koden

  1. Hi forum

     

    Is there a command that can go back and start macro again IF something is true in a IF command.

     

    Like

     

    IF T7 = 2

    then open notepad and set the number 2

    and start macro over again

     

    andif T7 is anything else just resume macro as intended

     

    Hope this is to understand.

     

    maybe my way to do the check is wrong and I can off course explain it more detailed.

  2. I have used text to see what happens.

     

    So just before 

    "if variable T4 = T3"

     

    I have a text document where I paste T3 and T4

     

    The result was

     

    T3: /#h=_
    T4: /#h=1

     

    So it's working now...

     

    problem WAS when it returns to webpage the URL is still highlighted and macro is in wrong place.

    But that is solved with another TAB command.

     

    At same time I minimized some delays, so that macro is faster than before.

     

     

    So thanks for all your help... much appreciated 🙂

  3. so testet now

     

    timing was the issue..

     

    But I was so focused on when number was not accepted. So I forgot what to do when number is correct.

     

    If number is correct it will now just keep on from the blue arrow and thats wrong. If number is right the URL has changed to http://test.com/#=X

    And it should keep on from the red arrow

     

    So it's set up wrong. I nned to check URL at blue arrow and if URL is http://test.com/#=_

    Then macro stop

    If URL is http://test.com/#=X

    Then go on from RED arrow.

     

    But can't find out how to set that together in the macro 🙂

     

    image.png.1b892f37bd5ac354909dfb98a223a130.png

     

     

     

     

     

     

  4. I have search and search... but mot found the right solution or maybe I just did not understand the one I found 🙂

     

    1. Is it possible to look for integer in a string, when there is 30 characters and only one is integer?

     

    2. My URL is always 30 characters and the last character is either underscore or a number

     

    Underscore when my pasted number is wrong and a number if my pasted number is correct.

     

    My url can be more than 30 characters. It happens if number is 2 or sometimes 3 digits

  5. thanks... but was not the problem.

    Still not working 

     

    alt+d and control c works fine

     

    When I try run it with a number that will fail it does not work

     

    My check with T3 and T4 is prob. not working.

     

    T3 has this set from start:  #=_

     

    When number is not known alt+d > ctrl+c > variable set string T4 from clipboard will set T4 with:  #=_

     

    If variable T3 and T4 is equal, as it is in this example with wrong namber, macro should stop.

    It does not.

     

    maybe I can't compare text this way as I do?

     

    Maybe I should use another metode or variabel function?

     

    I remember there was a function that could check content in a variable.

    maybe check for integer?

     


     

     

    My URL is:

     

     

     

    http://test.com/#=_

     

    And when wrong number is used it's stil http://test.com/#=_

     

     

    When correct number is pasted my url changes to http://test.com/#=X

     

    X could be any number and notice that _ changes to X

     

     

    So... something like.. if URL contains a integer keep running.

    If URL does not contain a integer macro stop

     

    I can see you have been involved in several threads about checking variables... just need to find the right solution for me, so that it's not being to complicated.

     

     
  6. Thanks..

     

    If I understand you right, you want me to check on the number after #=

     

    The problem is that I don't know the number X after #=

    It can be any number.

    can I check on the place after #=   ?

     

    If location after #= is used or not?

     

    OR is it possible to do it as described underneed?

     

    paste number to field and if number not known filed will not change.

     

    Copy URL and do a check if URL have changed from #= to #=X

    If not changed from #= to #=X then macro stop.

     

     

  7. Yes that was my idea to do.

    But not sure what controls to do it with and had hoped there was a more simple solution like 

    "if nothing pasted macro stop"  🙂

     

    But that intelligent I don't think it is 🙂

     

    I will look in some of my old macros to find the right way to get the URL checked.

    Think I used this function years ago.

  8. I maybe have an idea myself...but not sure how to do it.

     

    the website name is always this on the site where my number is pasted into field..

     

    https://test.com/#=

     

    If number is not accepted and field therefore empty, website keeps on

     

    https://test.com/#=

     

    If numer pasted is accepted by website it changes to new window with name

     

    https://test.com/#=X

     

    where X is a number between 1 and infinite

     

    So I assume there must be a function that can read if website name is with or without number and stop macro if no number is located after #=

     

     

  9. My macro copies a 10 digit number from a list of many different numbers and insert number into a field on a web site.

     

    If number is known macro open a new window and thats fine.

     

    If number is not known the field will not take it and keeps empty.

     

    But macro keeps running and does some wrong things.

     

    How do I get the macro to stop if the field is empty after ctrl+v into field has left field empty?

  10. not sure I havve the same in macro express 3 NOT pro

     

    But maybe I should by newer version...

     

    BUT at the time my macro actually runs almost perfect

    Only very few times it fails in a TAB sequense, because of a lack or whatever.

    The good thing is that it stops, and I can just start it again.

     

    i think my issues have been solved with "wait" commands the correct places and cabling my laptop instead of wireless.

  11. Thanks... sometimes it's funny that I can be that blind when looking for a option 🙂

    I did not see multimedia  🙂

     

     

    Yes I have a logic some places that says if a window or if something else then stop macro.

     

    So there I can put it in.

     

    Sometimes my macro stops because a TAB stucks... maybe because of lack in connection to website or something else.

    The macro then itself stops, because there is something not there as expected.

     

    In that place I assume it's more difficult then?

     

     

     

  12. long time ago....

    I did not need this function at that time.

    But now I do

     

    But what i need is that macro has to stop if website is not changing from 

     

    test.online.com/#=

     

    to any number xx 1 to 99

     

    test.online.com/#=xx

     

    xx is a number from 1 to 99 (actually also 100 and more. But wont happen, so 99 is fine).

     

    Will it still be same code as above?

×
×
  • Create New...