We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

Send an email instead of turn on sound

controltheweb
on
Medium Priority
190 Views
Last Modified: 2010-05-01
See http://www.experts-exchange.com/Community_Support/New_to_EE/Q_21783899.html

Looking for resources to change this from generating a sound, to sending an email:
(Glad to increase/split points for all helpful comments!)

ameba's mod of EE QuickPost (http://www.eeqp.com/) defines "Neat users" and turn on sound for event: "New Question by Neat user" accomplished by modifying ...\Program Files\Quickpost\QHelper_VB6.zip:

Unzip to separate folder, ppen project QHelperTest.vbp and modify IReceiver_Notify():

Private Sub IReceiver_Notify(ByVal Title As String, ByVal QBody As String, ByVal Questioner As String, ByVal QuestionerID As Long, ByVal QID As Long, ByVal TopicArea As String, ByVal TopicAreaID As String, ByVal TopicAreaIDNum As Long)
    ' existing code
    txtTitle.Text = Title
    txtQBody.Text = Left(QBody, 32000)
   
    ' insert new code
    On Error Resume Next
    Dim favquestioners As String, URL As String
    favquestioners = ".controltheweb.angelIII.ameba.shekerra.flavo.AnnieMod."
   
    If InStr(favquestioners, "." & Questioner & ".") > 0 Then
        colMyQuestions.Add "", "k" & QID ' add to collection
        If Err Then
            Err.Clear ' already in collection
        Else
            ' add to list
            List1.AddItem QID & " " & Questioner

            ' subscribe and open in default browser
            URL = "http://www.experts-exchange.com/questionNotify.jsp?qid=" & QID & "&subscribe=1"
            Call ShellExecute(Me.hWnd, vbNullString, URL, vbNullString, "c:\", 1)
        End If
    End If
End Sub

' this is needed in Form declarations
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private colMyQuestions As New Collection

Glad to increase/split points for all helpful comments!
Comment
Watch Question

Consultant (Development Team Lead, Senior Support Engineer, and Technical Test Leader)
CERTIFIED EXPERT
Commented:
What e-mail client are you using?

I haven't tried this (as I don't have QuickPostM ir Visual Basic installed), but a quick suggestion (to cater for a majority of e-mail clients that use [CTRL]+[S] to send messages) could be...

Changing:
URL = "http://www.experts-exchange.com/questionNotify.jsp?qid=" & QID & "&subscribe=1"

To:
URL = "mailto:yourname@domain.com?subject=See%20QID%20" & QID & "&body=http://www.experts-exchange.com/questionNotify.jsp?qid=" & QID & "&subscribe=1"

Call ShellExecute(Me.hWnd, vbNullString, URL, vbNullString, "c:\", 1)
Application.Wait (Now + TimeValue("00:00:02"))
Application.SendKeys "%s"


BFN,

fp.
[ http://www.justgiving.com/100RoundsOfSparring ]

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
[ fanpages ]Consultant (Development Team Lead, Senior Support Engineer, and Technical Test Leader)
CERTIFIED EXPERT

Commented:
"I haven't tried this (as I don't have QuickPostM ir Visual Basic installed)"
=
"I haven't tried this (as I don't have QuickPost or Visual Basic installed)"

(Sorry, don't know what happened there!?!)
[ fanpages ]Consultant (Development Team Lead, Senior Support Engineer, and Technical Test Leader)
CERTIFIED EXPERT

Commented:
Do you need any further assistance, controltheweb?

If not, then please close the question.

If you do need additional information, please let us know.

Thank you for your feedback in any respect.

BFN,

fp.
[ http://www.justgiving.com/100RoundsOfSparring ]
[ fanpages ]Consultant (Development Team Lead, Senior Support Engineer, and Technical Test Leader)
CERTIFIED EXPERT

Commented:
Thanks for closing the question.

BFN,

fp.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.