Script to Simplify life

During my work day, I probably send a 20-30 email messages. Each time I typically look up someone's email address, copy it to the (keyboard) buffer (CTRL+C), click on a shortcut I have to open a new email, then paste the email address into the new message. I thought, what if my new email shortcut, would test the keyboard buffer and then automatically paste the address for me?

Save the following VBS to your local computer. Drag it into your quick launch bar, then change the icon to something useful (like Outlook's new message icon)! One click new emails that will be pre-populated with the last email address you copied.

 
'==========================================================================
'
VBScript Source File -- Created with SAPIEN Technologies PrimalScript 3.1
'
'
NAME: Send_Email.VBS - Read the keyboard buffer (aka clipboard)
'                                         and send an email if read email address.
'

' AUTHOR: eric Woodford
'
DATE  : 2/13/2008
'
'
COMMENT:
' clipboard idea: <a href="http://forums.vandyke.com/showthread.php?t=597
'
" title="http://forums.vandyke.com/showthread.php?t=597
'">http://forums.vandyke.com/showthread.php?t=597
'
</a>  mailto: <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2149800&SiteID=1
'==========================================================================

Set"
title="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2149800&SiteID=1
'==========================================================================

Set"
>http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2149800&SiteID=1
'...</a> objHTML = CreateObject("htmlfile")
ClipboardText = trim(objHTML.ParentWindow.ClipboardData.GetData("text"))
Set objHTML = Nothing
if instr(ClipboardText,"@") and instr(clipboardtext," ")=0 Then '
possibly a email address
        Set objShell = WScript.CreateObject("shell.application")
        str = "mailto:" & ClipboardText
        objShell.ShellExecute str, "", "", "open", 1
Else
        Set objShell = WScript.CreateObject("shell.application")
        str = "mailto:"
        objShell.ShellExecute str, "", "", "open", 1
End If
set objshell = nothing

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <blockquote> <center> <hr> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <drupal6>, <html>, <java>, <javascript>, <php>, <posh>.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.