From: Glen Holcomb Date: 2009-09-21T22:44:30+09:00 Subject: Re: script hangs while waiting for user input --00032555a15a0dbbba04741692be Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On Mon, Sep 21, 2009 at 3:09 AM, Jule Nissen wrote: > Hi! > > I want to send e-mail automatically from windows with help of "win32ole" > and outlook. I wrote two short scripts: > > 1. one that sends the mail and > > 2. one that sends the keystrokes to the outlook security alert. (the > security alert pops up, because it could be a virus which sends the > e-mail.) > > Is there a possibility to combine these to scripts in one? I tried a lot > of different things, but the script hangs while outlook is waiting for > the user input. That's why I have to set up two cron-jobs. One script > would make the whole thing less error prone (no timing issues with the > cron-jobs). > > Thanks for your help! > > /landge > -- > Posted via http://www.ruby-forum.com/. > > An alternative to turning off the feature might be threads. It might be tricky though depending on if/how things block in this situation. Although if you are using Ruby 1.9 that shouldn't be an issue. --=20 "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can=92t hear a word you=92re saying." -Greg Graffin (Bad Religion) --00032555a15a0dbbba04741692be--