Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook Script running from a Rule

Status
Not open for further replies.

funkytunaa

Technical User
Oct 9, 2005
116
AU
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!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top