Jump to content
Macro Express Forums

koden

Members
  • Posts

    248
  • Joined

  • Last visited

Posts posted by koden

  1. I use in my macro IF some places.

    maybe I don't understand it right...

     

    Example:

     

    I would like a repeat function to stop and start from beginning if a surdent window is running.

    If this window is not running, then the macro should go on to the repeat end.

     

    This is not working, because the macro tells me that I have a repeat end standing alone.

     

    if window title "xxxxxx" is running

    repeat stop

    end if

     

    How ist the right way to do this???

     

     

    The full story is that i'm creating new employes in a program.

    but sometimes they alredy exist.

    So before creating them I check if they already there.

     

    The only way I can do that is to open the profile with the data of the person.

    This profile window has a title.

    If they allready exist,then this window appears, and the macro schould go back to the beginning and copy the next new employe.

     

    If not existing there is no window and the macro can continue to create the person.

  2. hello

     

    I have 2 programs + notepad.

    In the program A i get mails with inf. I have to copy and paste to fields in

    program B.

     

    The inf. I have to copy looks like this:

     

    BALPSTN

    U24722

    32992 firstname lastname (sometimes a middle name)

    Service Center

    44202020 lokal 0

     

    I copy this (all in one copy) from the fprogram A to notepad and then I first copy

    line 1 to program B, back to notepad and copy line 2 to program B.

    this is a lot of jumping from window to window.

    But it works...

     

    My problem is the middle name.

    Sometimes there are a 3 field with middlename.

     

    Can macro express see if there in line 3 are 3 or 4 numbers/words???

     

    Hope yoy understand...

  3. My macro normally uses shortcuts in the window, where the macro runs.

     

    But to get to the first field in the window I have to start with a mouse click.

     

    How can I make sure that it clicks the same field every time???

     

    I here think on when the window is bigger, smaller or when the macro is used on another pc with another resolution on the screen.

     

    Is that possible?

  4. Thanks...

     

    Maybe you also know to do about this:

     

     

    When I use the wait for window title, then the macro waits for the window title.

     

    But sometimes the contents of the window is slower.

    So the macro starts before the contents of the window is fully shown.

     

    But I can't find other wait commands that waits to the window is finished with "updating".

  5. In my macro I use the "timing" function "wait for window title to appear"

     

    But sometimes I have a window called "request" where my macro opens another window called "request E504345345".

    the last 7 digi is a different number each time. E50 always is the same.

     

    But here I can't use the "wait window title to appear, because I can't use "request" as a waiting symbol and I can also not use request E504345345, because 4345345 is different number each time.

     

    At the moment i use wait for time to elapse, but that is not good enough.

     

    The first E50 is always the same.

     

    Is it possible to use ex. request E50* so it then will wait for a window title with request E50 ????

     

    Hope you understand my not so good english :-))

  6. I have a macro that opens an email from my lotus notes.

    Sometimes the mail program is slow.

    Normally I would put in a wait for window comand.

     

    But the mail window title is never the same.

     

    Is there a function that can wait for the mail??

     

    What my macro does is:

     

    activates the mail program notes

    numenter (open the mail that is marked)

    here i need a command that can wait for the mail to open.

  7. I have a macro that saves some word doc's from an email.

    Lets say it has saved 3 doc.

    Sometimes it's 2 or 5 doc's.

     

    Then the macro runs another program where to it attach one of the 3 word doc's.

    The macro then has to skip the save doc function and repeat with the other program and attach next doc.

     

    But where do I put the repeat prompt start, when it only has to save all word doc's in one time, but attach them one by one???

     

    I know that I just before the "another program" could put in the repeat function.

    But can I do it in the start of the macro instead??

  8. Thanks...

     

    So it must be like this

     

    repeat prompt start (where I put in how many times it has to repeat.

     

    Variable Modify Integer: %N2% = %N1% / 10

    If Variable %N2% > variable %N3%

    Text Box Close: Count is

    Text Box Display: Count is %N1%

    End If

    Variable Modify Integer: Copy %N2% to %N3%

     

    and after this the rest of my macro

     

    This will give me a box that every 10 repeat updates with how many times left or have been done ????

  9. I use the If Clipboard Text Equals.

     

    I can't get it working.

     

    The macro has to stop if the word "Igangværende" is in the clipboard.

     

    First i copy the text in a window and then i run the IF clipboard.

     

    If Clipboard Text Equals Igangværende

    Macro stop

    End if

     

    But the macro does not stop when i have copyed the word Igangværende...

     

    Is it because I have copyed more words than just Igangværende into the clipboard?? Or how does it work?

    I have set the upper and lower case mark.

  10. I have a macro that open some programs and paste text into some fields.

     

    The text I manually copy from a word doc, because I only want to copy SOME of the text in the word doc.

     

    Can I make some function, that opens the word doc and take some of the text out??

     

    I have attach a word doc so you can see it. All importend data are change too XXXXX :-))

     

    What I need is to copy is alle that is RED

     

    I have a program that remembers the last 10 ctrl+c if that helps.

     

    Is that possible in any way???

    case.doc

  11. Hello...

     

    1.

    I hav a macro that have a repeat function build in.

     

    I would like the macro to stop after the first run, if a specified window is running.

     

    I have attach the start of my macro to show what I have done, but it does not work.

     

    have I done it wrong??

     

    2. The window I would like to specified has the name "request xxxxxxx"

    xxxxxxx is a dif. number every time.

    I surpose that when I specifie the window, I can just write "request" in the box and click in the partial match box ???

    test.mxe

×
×
  • Create New...