Jump to content
Macro Express Forums

koden

Members
  • Posts

    248
  • Joined

  • Last visited

Everything posted by koden

  1. In my macro I have some inf. copied to T3. This inf. can be 6 diff. text/numbers. It's always the same 6 text/numbers (5 diff. numbers and 2 diff. text) I have a macro for each text. So in my main macro I would like to make an IF command that does this: IF T3 contains text1 or part of Then run macro1 ??????? IF T3 contains text2 or part of Then run macro2 ?????? IF T3 contains text3 or part of Then run macro3 a.s.o. But what am I going to use between each IF?? else,or or something else???
  2. I use T variables, when i have something to copy and paste again in same macro. But if I want to have a permanent text to use in dif. macros, what can I then use??? I have looked in help, but i'm not sure what to use.
  3. OOhhhh...Thanks.. I will try this. But is the macro able to see if "code" and "job" already exist in T10, when there in T10 are 30 emails content??? Is it not more safe to copy "job" and "code" and only this 2 from each mail and put them to T10? Instead of this content from each mail: Job : WPDPVGT1 - Owner : 8775 Impl. Insurance - code : X505 - Stepname : ???????? - Procname : ???????? - Jobnumber : JOB03442 - Application : APDPDVAGTA - Workstation : CPU1 - Operation text : Send connect til DPLVAGT - Start Time : 06.00.00 - Stop Time : 06.00.00 - Date : 02-01-2004
  4. Maybe... It looks better. But i'm not sure that I understand it fully...Imean to do in practice.. I forgot to tell that it's only mails where job AND code are the same as in an earlier mail, that should be deleted. NOT mails with the same job but diff. code or mails with same code but diff. job
  5. Hmm...the tab problem has made a new dimension... This time the problem is, that in "my program" where I use my macro, something strange happens. This program called "USD" opens sometimes up, and a button is marked and I can tab from there. Other times it opens, and the button is not marked, and I can't tab. I know it's proberly the program that has an error. But my question is: Is there a general rule how programs start up? Where does the cursor start and what is the default normally? Or is it individual from program to program?
  6. My macro copies this (see below) data from a mail into another program. No problem about that. But sometimes the mail comes twice the same day. No problem if it comes the day after. Only a problem the same day. If the mail comes again it just have to be deleted. To find out if it comes a second time, i have to check if the field "job" and the field "code" are the same. How do I do that??? My idea is that my macro at first opens the mail and a empty notepad. Copy "job" and "code" content into a variable. Then the macro has to check if the content of the variable already exist in the notepad. If it does, then delete the mail and empty the variabel. If not, then fill out the notepad with the content of the variable. Or do you guys have a better idea??? The subject field in the mail always is named the same. So I can't use the subject field to determine the mail. Job : WPDPVGT1 - Owner : 8775 Impl. Insurance - code : X505 - Stepname : ???????? - Procname : ???????? - Jobnumber : JOB03442 - Application : APDPDVAGTA - Workstation : CPU1 - Operation text : Send connect til DPLVAGT - Start Time : 06.00.00 - Stop Time : 06.00.00 - Date : 02-01-2004
  7. Thanks I will use text type: <CLEARVAR1:T:1:5>
  8. If I will empty my T1 variable then i do this Variable Set String %T1% "" But if i will empty T1 - T5, can I then do that in one line with some kind of seperation or do I have to make 5 lines??
  9. sorry...lemming. It was a timing problem. Normally I use repeat start when I have to TAB more than 1 TAB. But on my new computer in the same program, it's to fast. Thanks again lemming... :-))
  10. It could be..yes..but I have tried that.
  11. Hmmm... When i use macro it stops after 1 tab If I do TAB manuel it's working. Funny...funny...
  12. At work i have got a new pc. In the program where i use my macro i have this problem on the new pc: When I in my program make "macro" TAB then it stops in a certain field. I have tryed to make a TAB ekstra, but it still stops in the same field. I know that you don't know my program. But i think it's not the program. I think it maybe has to do with the java version I have on my NEW pc. Have any one else problem with macro and java????
  13. Thanks again... I have found out what was wrong. If you look at my macro, you will see a end if AFTER the repeat end. I have put end if BEFORE repeat end, and it's working. By the way... normally I get mail when someone post an answer. But not this time ???
  14. I have made this IF start repeat If Not Window Title "notepad" running Break Else // The macro comes here with all it's paste into notepad End If End repeat // the macro here shut down the notepad. But I get the error that there is no matching end if ??? Another thing. Break just stop the macro. Instead of break I would like the macro to break at this point and go back and start at the beginning of the macro. I have attached my macro. My_macro.mxe
  15. It's working. i use different T variables as first writed. but hope you understand anyway. BUT.... username user number first name middle name (when no middle name this is last name) Last name (when no middle name this is blank). phone number I copy phone number to T1 and so on until username into T6. But my problem is that when there is no middle name, T2 is just a blank. But when i paste T2 it is making a line shift??? So if there is a middle name it looks like this, if i copy and paste in notepad: First my macro copy this into T1-T6 username user number first name middle name Last name phone number Paste from T1 to T6 gives this: phone number Last name middle name first name user number username Thats okay and works. But when there is no middle name notepad looks like this before copy into T1-T6. username user number first name Last name phone number And this is what comes out of pasting T1-T6: phone number Last name first name user number username As you can see there is 2 blanks after phonenumber. It's proberly because the ctrl+c copy a blank and see it as a line shift. But what can i do about that? My test macro is attached Cursor start position is under phone number left. testmacro.mxe
  16. I will try explain in another way. I use notepad as the window just to make it easy. My problem is: I put some data into a field and make a search. When the search find something, then it opens this window (notepad :-) If the search is empty, there is no notepad window opening. If notepad does NOT open, then the macro has to stop/break here. But if I have ask for 2 or more repeats, then it has to go back to the repeat start and go on with the macro again. So I surpose I have to use something like this: IF NOT window title "notepad" is running Break OR "if there is a next repeat, then go back and run this repeat". End If But how do I make a command that does what stands in " " ???? Just for info: The macro first copy data from program A to notepad with a repeat start prompt. There is no problem in this. This repeat can run from 1 to many times. After this is finished another repeat start prompt copy from notepad to program B the same times as the first start prompt repeat. And it's in this second start prompt the problem is...
  17. break is not good, because it just stops the macro. I think I need this: Repeat Start (Repeat 999 times) If NOT Window Title "Notepad" is running "then stop this repeat 1 and go on with repeat 2 (next repeat.) If there was only 1 repeat, then end macro" "If notepad is running, then go on with the macro" End If Sound Wave File: 7.wav Delay 1 Seconds Repeat End Do you understand my text?? I'm just not sure how to put this in a IF command???
  18. Thanks a lot.. will try this.
  19. maybe the solution is to check how many blanks/spaces there is between each word/number ????? Can makro express do that??
  20. YES....working fine..THANKS!!! But of course I have got another problem :-) I have copyed a line into notepad with this information: 11111 firstname middlename sirname The numbers is the employe number. The person sometimes don't have a middle name: 11111 firstname sirname I have to copy this 3 or 4 inf. into the T variables. But i get a problem when there is no middlename. I will explain with an example: I copy the first 11111 into T1 Then I copy the first name into T2 Then i copy the middle name into T3 and last the sirname into T4 But when the person has no middlename, then the sirname will be copyed to T3 Thats bad because when I paste the T variables in my other program, then the wrong inf. get to the wrong fields... Do You see/understand what i meen??? Any idea to how I fix this? My own suggestion is: If the macro in some way can see/test if there in the line is 3 or 4 numbers/word, then it could be fixed. Is that possible?? Or any bether ideas??
  21. Hello guys... This time you are right... I schould of course have looked in the help function. Sorry... I normally always look in the help before posting. The help function is sometimes very good, and sometimes not. My english understanding is not always that good, and sometimes i need "special explanation" :-)) Ex. In this case I could not find anything in help.
  22. Thanks a lot.. will try it monday :-)) I love this program :-))
  23. Okay... I have looked in help. But i'm not sure what i need to use control or variable??? I would like to copy 5 words from one program and put them into another program one by one. But how do i put the 5 copys into 5 variables/controls and then paste them out again one by one??? I think I need something like this: tab to the field i will copy ctrl+c put in variable T1 tab to next field ctrl+c put in variable T2 do this 5 times i get T1 to T5 activate program B and ctrl+v T1 to T5 in the right places... But how do I do this ????
  24. What does break do? Stop the macro or just break the if command?
  25. Thanks.. I have seen this with variables, and I understand what you mean. But i'm not sure how to do it practialy....
×
×
  • Create New...