funkytunaa
Technical User
I have a script that runs everytime an email comes in, it uses "sendkeys" to send the email subject line to a telnet program. It works when there is one email, but when I recieve more than one email the script on the second email will start running before the first process is finished.
So what I end up with is all the text from the second email jamming up the first script, I am after a way to either limit Outlook to downloading one email at a time or pausing to wait until the telnet process is finished.
ANY ideas would be hugely appreciated.
I have gone through using
wscript.sleep 10000
and it doesn't seem to do anything because I think it may be a different script instance so it won't allow the pause. Also I have tried using the stop other rules in outlook but it doesn't do squat......
I think I am going bald now.....Arrrggh!
So what I end up with is all the text from the second email jamming up the first script, I am after a way to either limit Outlook to downloading one email at a time or pausing to wait until the telnet process is finished.
ANY ideas would be hugely appreciated.
I have gone through using
wscript.sleep 10000
and it doesn't seem to do anything because I think it may be a different script instance so it won't allow the pause. Also I have tried using the stop other rules in outlook but it doesn't do squat......
I think I am going bald now.....Arrrggh!