|
|
Folks:
I am looking for a script that would ALARM (make a distinct audio noise like the ringing of a telephone) either when new emails arrive from a certain source or maybe when new emails are found in a specific filtered folder. As a backup, it would be good if the script can also send out popup screens in addition to the audio. I am using Microsoft Outlook Express as my email platform.
I am not sure if this type of script is fully or partially available or if it will have to be developed from scatch.
Thanks in advance, Jo
|
|
<JoJo> wrote in message news:%23sI47gltHHA.2188[ at ]TK2MSFTNGP03.phx.gbl...
[Quoted Text] > Folks: > > > I am looking for a script that would ALARM (make a distinct audio noise > like > the ringing of a telephone) either when new emails arrive from a certain > source or maybe when new emails are found in a specific filtered folder. > As > a backup, it would be good if the script can also send out popup screens > in > addition to the audio. I am using Microsoft Outlook Express as my email > platform. > > I am not sure if this type of script is fully or partially available or if > it will have to be developed from scatch. > > > Thanks in advance, > Jo
IMHO, Outlook Express does not expose a scriptable interface. You might be better off upgrading to Outlook, which has facilities such as you describe available just by enabling them.
/Al
|
|
Playing sounds and showing popups using Powershell is not that difficult:
http://www.microsoft.com/technet/scriptcenter/csc/tips/ps/wmp.mspx http://mow001.blogspot.com/2005/10/msh-directory-watcher-with-popup.html
However, scripting Outlook Express is not that simple because AFAIK only Outlook exposes itself via COM objects.
-- greetings dreeschkind
"JoJo" wrote:
[Quoted Text] > Folks: > > > I am looking for a script that would ALARM (make a distinct audio noise like > the ringing of a telephone) either when new emails arrive from a certain > source or maybe when new emails are found in a specific filtered folder. As > a backup, it would be good if the script can also send out popup screens in > addition to the audio. I am using Microsoft Outlook Express as my email > platform. > > I am not sure if this type of script is fully or partially available or if > it will have to be developed from scatch. > > > Thanks in advance, > Jo > > > >
|
|
Il giorno Sun, 24 Jun 2007 10:10:00 -0700, =?Utf-8?B?ZHJlZXNjaGtpbmQ=?= <dreeschkind[ at ]discussions.microsoft.com> ha scritto:
[Quoted Text] >However, scripting Outlook Express is not that simple because AFAIK only >Outlook exposes itself via COM objects.
It's true. OE doesn't have a com object.
This can be used to automatically send a message with OE
"Zhang Weiwu (family name first)"
Dim sTo, sSubj, sMsg, sleepdelay set oShell = CreateObject("WScript.Shell") Set fs = CreateObject("Scripting.FileSystemObject") Set txt = fs.OpenTextFile("message.txt") '' message.txt in the same vbs folder sTo = "someone[ at ]somwehere.org" sSubj =now() sMsg =txt.ReadAll() sSubj= escape(sSubj) 'sMsg= escape(vbNull & sMsg) oShell.Run "mailto:" & sTo & "?subject=" & sSubj & "&body=" & sMsg wscript.sleep 2000 'oShell.SendKeys "^~" ''' remove ' above for immediate sending
-- Giovanni Cenati (Aosta, Italy) Write to user "Reventlov" and domain at katamail com http://digilander.libero.it/Cenati (Esempi e programmi in VbScript) --
|
|
"Reventlov" <noone[ at ]no.void> wrote in message news:467ee4c3.2518531[ at ]powernews.libero.it...
[Quoted Text] > Il giorno Sun, 24 Jun 2007 10:10:00 -0700, =?Utf-8?B?ZHJlZXNjaGtpbmQ=?= > <dreeschkind[ at ]discussions.microsoft.com> ha scritto: >>However, scripting Outlook Express is not that simple because AFAIK only >>Outlook exposes itself via COM objects. > It's true. OE doesn't have a com object. > > This can be used to automatically send a message with OE
Sure, but the OP asked for a script that would not send him a message, but popup a dialog or sound an alarm when it detected that new messages were waiting. Do you have a script that can do that?
/Al
> "Zhang Weiwu (family name first)" > > Dim sTo, sSubj, sMsg, sleepdelay > set oShell = CreateObject("WScript.Shell") > Set fs = CreateObject("Scripting.FileSystemObject") > Set txt = fs.OpenTextFile("message.txt") > '' message.txt in the same vbs folder > sTo = "someone[ at ]somwehere.org" > sSubj =now() > sMsg =txt.ReadAll() > sSubj= escape(sSubj) > 'sMsg= escape(vbNull & sMsg) > oShell.Run "mailto:" & sTo & "?subject=" & sSubj & "&body=" & sMsg > wscript.sleep 2000 > 'oShell.SendKeys "^~" > ''' remove ' above for immediate sending > > > -- > Giovanni Cenati (Aosta, Italy) > Write to user "Reventlov" and domain at katamail com > http://digilander.libero.it/Cenati (Esempi e programmi in VbScript) > --
|
|
powershell? but he posted to a VBSCRIPT group. whats wrong with people?!?
"dreeschkind" <dreeschkind[ at ]discussions.microsoft.com> wrote in message news:BE47B90D-AC76-4921-BDA5-96250312E1DA[ at ]microsoft.com...
[Quoted Text] > Playing sounds and showing popups using Powershell is not that difficult: > > http://www.microsoft.com/technet/scriptcenter/csc/tips/ps/wmp.mspx> http://mow001.blogspot.com/2005/10/msh-directory-watcher-with-popup.html> > However, scripting Outlook Express is not that simple because AFAIK only > Outlook exposes itself via COM objects. > > -- > greetings > dreeschkind > > "JoJo" wrote: > >> Folks: >> >> >> I am looking for a script that would ALARM (make a distinct audio noise >> like >> the ringing of a telephone) either when new emails arrive from a certain >> source or maybe when new emails are found in a specific filtered folder. >> As >> a backup, it would be good if the script can also send out popup screens >> in >> addition to the audio. I am using Microsoft Outlook Express as my email >> platform. >> >> I am not sure if this type of script is fully or partially available or >> if >> it will have to be developed from scatch. >> >> >> Thanks in advance, >> Jo >> >> >> >>
|
|
S Moran wrote:
[Quoted Text] > powershell? but he posted to a VBSCRIPT group. whats wrong with > people?!?
Nothing wrong with the OP given that he crossposted to several relatively appropritae scripting related groups, including m.p.windows.powershell ;-)...
-- Michael Harris MVP- Admin Frameworks
|
|
You can connect directly to the IMAP/POP server from PowerShell rather than trying to connect to OE. NetCmdlets include get-pop and get-imap cmdlets that can return collections of messages on mail servers. You can use that to determine whether or not you have emails waiting that match whatever filter you're looking for. Someone has already replied here about creating sounds and showing popups.
Here is where you can find NetCmdlets: http://www.nsoftware.com/powershell/.
Lance http://geekswithblogs.net/lance
|
|
Al Dunbar:
I am tempted to go with your suggestion of upgrading to Outlook. * Would that require that I also install Exchange Server or just Office 2003 ? I have Office 2003. I believe that should contain something better than my present Outlook Express 2000.
Thanks, John.
"Al Dunbar" <AlanDrub[ at ]hotmail.com.nospaam> wrote in message news:uOVFCErtHHA.4424[ at ]TK2MSFTNGP04.phx.gbl...
[Quoted Text] > > <JoJo> wrote in message news:%23sI47gltHHA.2188[ at ]TK2MSFTNGP03.phx.gbl... > > Folks: > > > > > > I am looking for a script that would ALARM (make a distinct audio noise > > like > > the ringing of a telephone) either when new emails arrive from a certain > > source or maybe when new emails are found in a specific filtered folder. > > As > > a backup, it would be good if the script can also send out popup screens > > in > > addition to the audio. I am using Microsoft Outlook Express as my email > > platform. > > > > I am not sure if this type of script is fully or partially available or
if > > it will have to be developed from scatch. > > > > > > Thanks in advance, > > Jo > > IMHO, Outlook Express does not expose a scriptable interface. You might be > better off upgrading to Outlook, which has facilities such as you describe > available just by enabling them. > > /Al > >
|
|
JoJo wrote:
[Quoted Text] > Al Dunbar: > > > I am tempted to go with your suggestion of upgrading to Outlook. > * Would that require that I also install Exchange Server or just Office > 2003 ? > I have Office 2003. I believe that should contain something better than my > present Outlook Express 2000.
From what I can tell, all versions of Office 2003 include Outlook, so you should have access to it or might need to install it.
You should be able to configure Outlook to get your "internet mail" like Express does (Exchange not required).
From there, you will have access via COM to your Outlook messages. Then you'll need to decide which programming/scripting language you want to use (and also pick which newsgroup you want to keep the discussion going in, instead of all of these you have now).
Marco
|
|
Il giorno Sun, 24 Jun 2007 16:05:12 -0600, "Al Dunbar" <AlanDrub[ at ]hotmail.com.nospaam> ha scritto:
[Quoted Text] >Sure, but the OP asked for a script that would not send him a message, but >popup a dialog or sound an alarm when it detected that new messages were >waiting.
Sorry, I answered quickly while I was connected and I didn't read the question well.
>Do you have a script that can do that?
Maybe checking the size of the dbx files. If it grows, an e-mail arrived. Don't know if it works or if the file is updated only when OE is closed.
-- Giovanni Cenati (Aosta, Italy) Write to user "Reventlov" and domain at katamail com http://digilander.libero.it/Cenati (Esempi e programmi in VbScript) --
|
|
"Marco Shaw" <marco.shaw[ at ]_NO_SPAM_gmail.com> wrote in message news:eYGVi$%23tHHA.5036[ at ]TK2MSFTNGP03.phx.gbl...
[Quoted Text] > JoJo wrote: >> Al Dunbar: >> >> >> I am tempted to go with your suggestion of upgrading to Outlook. >> * Would that require that I also install Exchange Server or just >> Office >> 2003 ? >> I have Office 2003. I believe that should contain something better than >> my >> present Outlook Express 2000. > > From what I can tell, all versions of Office 2003 include Outlook, so you > should have access to it or might need to install it. > > You should be able to configure Outlook to get your "internet mail" like > Express does (Exchange not required). > > From there, you will have access via COM to your Outlook messages. Then > you'll need to decide which programming/scripting language you want to use > (and also pick which newsgroup you want to keep the discussion going in, > instead of all of these you have now).
But... Outlook can be configured (without having to script it) to popup a window when email arrives, make a sound, or put an envelope icon in the system tray. Why make it harder than it needs to be?
/Al
|
|
"Reventlov" <noone[ at ]no.void> wrote in message news:4681844a.893325[ at ]powernews.libero.it...
[Quoted Text] > Il giorno Sun, 24 Jun 2007 16:05:12 -0600, "Al Dunbar" > <AlanDrub[ at ]hotmail.com.nospaam> ha > scritto: >>Sure, but the OP asked for a script that would not send him a message, but >>popup a dialog or sound an alarm when it detected that new messages were >>waiting. > > Sorry, I answered quickly while I was connected and I didn't read the > question well. > > >>Do you have a script that can do that? > > Maybe checking the size of the dbx files. If it grows, an e-mail arrived. > Don't know if it > works or if the file is updated only when OE is closed.
I don't know either, however, there are more things capable of increasing the size of the dbx file than incoming messages.
/Al
|
|
|
[Quoted Text] > But... Outlook can be configured (without having to script it) to popup a > window when email arrives, make a sound, or put an envelope icon in the > system tray. Why make it harder than it needs to be?
Right you are...
Marco
|
|
|