Jump to content
Macro Express Forums

koden

Members
  • Posts

    248
  • Joined

  • Last visited

Everything posted by koden

  1. I have just set up the BREAK key to stop. That can't be done faster :-))
  2. Thanks is a poor word for all your help.... If you need any help with danish or other things in denmark, then let me know :-)))
  3. On monday i'm back on work, and will send you screen shot. What sometimes hapens is that when the macro click for opening the window, the server is slow or the network is slow, and it takes to long time to open the window. The macro then already is going on with next step. or.. Sometimes i have other programs that starts because I have forgotten to disable them while the macro is running. or.. The macro sometimes just don't make the mouse click as it supose to do (not so often, but it hapens...maybe it's something on my pc thats stops it clicking) So as you can see, the best would be if the macro could stop if ANYTHING goes wrong. ---------------------------------------------------------------------------------------------- I will send screen shots, but until that I will try to explain it again: 1. First the macro activate the black window. Opens the first mail,copy the first mail,delete the first mail ( I have never hat errors in the black window. The 3270 mainframe). We call this picture 1. 2. Then the macro activate the windows window called "service desk" We call this picture 2. 3. In the service desk window the macro clicks the button "new request". And "new request" opens up. In this picture the macro fill out some fields with text and mouse click. This we call window 3. In window 3 the macro ends with clicking a button called OK, and the picture 3 shut down. Back is the picture 2 and 1. They never shut down. Picture one just go in background, when 2 is active and 2 in background when 1 is active. And 1 and 2 in background when 3 is open. Maybe this error function/script is possible to put in?: If the last window (number 3) is NOT gone from the screen, then don't go to the "black" window (the 3270) and repeat. Is there a function that can be put in, and that stops the macro if the windows window(number 3) has NOT shut down ?? Do you understand or is it to bad english :-)) ?
  4. Hello Cory... Thanks for coming back... It's running ok now. I have put some pause time in. But sometimes it failed. But it's not very much. The black window is not the problem. It's the other one (number 3). But as i write there is not so much errors anymore. But it would be good to have a stop, when the macro have a problem, so that I don't have to look at the screen while running. TheMacro.mxe
  5. It runs fast so I can't use right click on the running man symbol.
  6. Hello randallc I have tryed a lot and suddenly it works :-) I only use the first line of the tree lines. Double click on it and use type out instead of variable and choose the right format. So the macro click the field and put the date line in and then click enter. It works... :-)) Thanks a lot I have attach my macro so you can see it... Mymacro.mxe
  7. I hate to ask again, but I don't understand.... When I do as Kevin wrote. Copy and paste this qoute directly into the macro in editor. [<DT:dddd, d MMMM yyyyT:01:3:{P00002}{P00000}{P00000}{P00000}> <TBOX4:T:1:CenterCenter000278000200:000:Two days agoTwo days ago, it was; %T1%>] Then i get 3 lines in the macro. A date/time: save "dd-MM-yyyy" into %T1% A text type II A text box display 2 days ago If i run this macro it comes out and tell me that 2 days ago was sunday :-)) Wauuuhhh :-))) I understand so much, that the first line saves the day today in T1 (i supose that T1 is something I can't see ??). The next 2 lines i do not understand. I think I also understand that i need something more :-))
  8. Hmm...can't get it working In my macro i choose text type Open the text type box and fill in this: <DT:dddd, d MMMM yyyyT:01:3:{P00002}{P00000}{P00000}{P00000}> <TBOX4:T:1:CenterCenter000278000200:000:Two days agoTwo days ago, it was; %T1%> I save the macro and run the macro. When it comes to the date field, it puts the string in the field. But i gets this error: Please enter the date as MM/DD/YYYY hh:mm a(am,pm) randallc: I'm not sure I understand your last answer??
  9. how do i put in screen dumps I have made a word doc. but it's to big to attach?? I have put it here: http://s40.yousendit.com/d.aspx?id=3JVXHZ8...JE2N2MBXOM78V8Z
  10. Okay.. Thanks guys...it's okay with a little fun :-) About 3270 I can say that it is used very lot in the financial sector in Denmark, because it's so stabil. We have almost never problems with or mainframe, what we def. not can say about the PC's and the programs on this. When my macro stops it's newer in the 3270 part :-) Okay...anyway... I have in the 3270 a mail system. I get every day 100 mails. This mails have to be registred in another system that's named USD. My macro goes to the 3270 opens the first mail,copy,delete and then it goes to the USD program where I have to register every mail. In the USD the macro opens a case, put inf. in diff. fields and paste the mail in to the last field and at the end clicking OK. back to the 3270 and repeat as many times i have set. The problem is in the USD, that sometimes it takes time to open a case (if the USD server is busy). but this my macro can't see. Sometimes when the case has opened, there can be waiting time in the case and so on. I think I have an idea to resolve it, but I don't now if it's possible. In the USD system the last thing the macro does is clickin OK before REPEAT END. Can I but a function in the macro that says: If clicking OK not happens, then stop the macro??? Maybe in the repeat END function ?
  11. I'm not english and i'm not sure about you are trying to help me or just making fun....
  12. I can find this in help: Macro Stop The Macro Stop command allows you to stop the execution of a macro. You may want to use this in conjunction with a conditional statement. If a desired condition is not met, you may wish to terminate the macro. But where do I put it? After repeat end? And will it only be activated, if the macro have an error while running??
  13. Okay thanks... My Macro is window based with mouse clicks. Nothing else fancy
  14. Hello guys and girls I use a macro in a IBM 3270 session. The macro opens a mail inbox. Opens the first mail and copy whats inside and delete. Go to another program and put it in there. Go back to the 3270 and do the same again. But sometimes it don't make a click in the other program. Prberly because the other program is slow sometimes, and it do not open up before the macro clicks. My macro use repeat, and sometimes it repeat 100 times. So when i get the error in the other program, and i'm not there, it sometimes deletes a lot in the 3270, without having pastet it in anywhere. It's gone. Here is my question Is it possible to insert a function in the macro, that stops the macro running, if the macro run into a problem??? Thanks...
  15. Thanks..very much.. I have copyed Quote number 2 and put it into my macro. When i run the macro it click in the date field and after this I have insert the qoute <DT:dddd, d MMMM yyyyT:01:3:{P00002}{P00000}{P00000}{P00000}> <TBOX4:T:1:CenterCenter000278000200:000:Two days agoTwo days ago, it was; %T1%> A boks comes up and tells me that 2 days ago was sunday. I click ok and nothing happens. But i need it to put the date from sunday in the field in this format: 11/20/2005 12:00 am Have i forgotten something???
  16. I say thank you... But i'm a newbie, so it won't help me much :-)) If you have the time could you than ex. me were to put it in my macro?
  17. I have a macro that insert date in a program window. This program has a function where shift+% is inserting the date today in this format: 11/14/2005 12:00 am But sometimes i have to insert a date that is 2 or more days before today. lets just say I would make a macro that insert a date 2 days before today. How do I do that without doing anything manually???
  18. Okay i have looked at the macro. Too dificult for me... Thanks
  19. when i use 'Calc ulator and Note pad' it gets to this: It opens notepad and put in this: First we get a couple of random numbers: N1 = 771011 N2 = 520177 and then an error The spcified control C1 could not be found ???
  20. Thaaaaaaank you. I will take a look at it :-)))
  21. I have a macro that runs i a window. But i can't work as it is running. ca i do the running hide/in background and when it finished the window pop up, so I can see the result??
×
×
  • Create New...