Jump to content
Macro Express Forums


  • Posts

  • Joined

  • Last visited

koden's Achievements


Newbie (1/14)



  1. wait for web page need a URL. I can't find URL's to this kind of program running in internet explorer.... No properties to look in... can I see Url other places?
  2. :-) have not seen this command before...thanks...
  3. I use this command "wait for window title". I use it a lot in a program running in internet explorer. The problem is that sometimes the program has some respons time. The window opens but the content ind the window is slower and opens later. the command "wait for window title" see the window as opened and goes on to next step. But the window is'nt fully opened. Can I do anything about that? In the moment i just put "delay" in the macro, but the days where the internet explorer program runs fine, it gives to much delays....
  4. I have a macro that in a mainframe window does this: ctrl+a (all text marked) ctrl+c (all text copied...more than 2000 characters) open notepad ctrl+v All characters is now in notepad.... BUT When i use the modify string command to remove characters after characters 999, then it will not copy text to notepad. I use: ctrl+a (all text marked) ctrl+c (all text copied...more than 2000 characters) variable set string T51 from clipboard variable modify string copy part of T51 to T50 (Copy from position 1 to 999) variable modify string save T50 to clipboard open notepad ctrl+v Not working. I have tryed speed 3 times slower and with 1000 MS between each comand.. What am I doing wrong? I think it's something about what i copy from the mainframe. When i make ctrl+v and C to notepad it's in notepad as characters and I can edit the characters. maybe before it gets to notepad it's a picture or something that modify string can't handle... Can i do something else? at the moment i first copy to notepad and back to clipboard and then use modify... that works, but it's an extra program and time... line 8 to 17 in the attached macro file test.mxe
  5. OK. yesterday I got a counter in notes that count mails,and give me a number in a pop up box. I can copy that number to clipboard. Can I use this together with your loop?
  6. Okay...this code will run the macro until the clipboard don't get anything. But when there is mail again how will it then start again? Am I right that your and jasons code only are half of my wishes :-) ? can i do this instead: I have to use empty clipboard the right places...know that :-) At 7 am i open my mail folder. There is ex. 100 mails I run a macro that make ctrl+c of the mail header If clipboard contains text it will run my macro 2 that handle the mail text When macro 2 is finished macro 1 runs again. When 100 mails are finished macro 1 will have an empty clipboard (if I in notes make a ctrl+c of NO mail header nothing happens and give me empty clipboard) In your ex. the macro will stop. But how do it start again when there is new mail? Could I do this: repeat have macro 1 that copy to clipboard if there is data or not in clipboard run macro 2 macro 2 will check if there is data if there is data run macro 3 (this will handle the mail) else run the macro 1 again repeat end This macro will run from 7 am until I stop it. OR is there something I have'nt been ware of?
  7. I know all about what The If Clipboard command does :-) I use clipboard empty. It's what the integer do i don't understand. I do understand that the loop is running so far as the N1=0 Loop will stop when N1=1. But when will N1=1? When clipboard is empty??? My problem is that I don't understand how this is used in my macro. That I use notes does'nt matter. It could be any program. The case is about the clipboard containing something or not. If I have understand you right, then this loop will run all the time and check if something get to clipboard. If clipboard is full then my macro 2 will run.
  8. Hmm... Have tried your ex....i think :-) But maybe I don't understand it, because it's not working. The code just copy the mail header all the time. Just running in ths loop no mather if there is mail or not. I know I'm doing something wrong but what? What happens in 2 first lines in your code EX. ? As I see it's checking all 24 hours (all the time). Is it possible to set a 7am-17pm time on this macro, so it's not running in night? Do you meen this? : Variable Set Integer %N1% to 0 Repeat Until %N1% = 1 // clipboard empty // activate the folder in the mail program // copy mail header If Clipboard Text Equals "" Break End If Repeat End I will unterneed here try to explain exaxtly what i need. So far as my english can do it :-) I need a macro 1 that cheks if there is a mail in a folder. I do this by copying the mail header text and check if clipboard is empty or not If clipboard is full then run macro 2. If there is no mail the clipboard is empty and then macro 1 will stop. But it has to start aut. again from start, IF not the macro 2 is running. What I understand from your code is, that the macro just have to check, run the macro 1 and when finnished then check again a.s.o But how will it start again aut. when there is no mail and break has been activated? Sorry if I confusing you instead of asking, but I don't figure out to this :-))
  9. I have just found another way...... My macro starts with copying the email "header" (don't know what it's called. The text you can se before opening mail. date,sender a.s.o.) If clipboard contains one of 4 special words the macro for one of the 4 words is running... this macro i already use, just manually. So..... If clipboard is empty, there is no mail and i can use macro stop. If there is mail the macro go on with one of the 4 macros depending on whats in the mail. But after macro stop. How do i get it running again..... I still need some loop or what?
  10. Thanks.. If i use my own ctrl+e solution i can do it all in one macro. I don't have the key unread mail in :-( HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\UnreadMail maybe because it's my work laptop. NO...it's also not on my own laptop. XP on booth machines. A search also did'nt find unread in regedit. Are you sure?
  11. hello.... I have a macro that open mails from a folder in lotus notes, and copy and use the text. I manually (with a prompt) set the macro to run so many times as there is mails. but I would now like that it run aut. when there is new mails. I have found out that the best way to do this is to be standing in the folder and make a ctrl+e. This will open a mail if there is any. If there is'nt any mail it will do nothing. I can then check wich window is active. But this macro only haves to run when my first macro is not running. How do I get my "check mail" macro to run every minute but only when no other macro is running????
  12. I have forgotten to answer back on this. I never got it used. But now I will try again. It's new and alredy read mails. So nr. 2 does not work. Nr. 1 I will try. I'm trying to find out if there is a count that I can reach. There is a count when i select all mails. The number is in the buttom of the screen, but it's not possible to mark it. Only vissible....
  13. I think you have misunderstood. but what the... :-) my english is'nt the best, so no wonder why :-) The problem was that I have a list with server names. I copy one name and set it into notepad. But sometimes the clipboard did not copy the name and the old name was in the clipboard. Then there would be 2 names of the same in notepad. Så what i needed was just to check that the clipboard did'nt still have the old servername. :-)
  • Create New...