Solved

Need to make F9 function key cause email to be sent

Posted on 2007-03-22
4
823 Views
Last Modified: 2008-01-09
I want to send a short email message when the F9 key is pressed. This must alsways work so someone with Windows driver experience and programming would be a good fit. Simple Press F9 message is sent.

Thanks in advance
0
Comment
Question by:stealthdeveloper
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:qz8dsw
ID: 18777548
Hi stealthdeveloper,

So your after a TSR/service that will monitor/hook the F9 keyboard event and send an e-mail when it happens.
What programming language?
What exactly is it for?
And who will support it when written?

Terry
0
 
LVL 15

Expert Comment

by:qz8dsw
ID: 18777729
Hi stealthdeveloper,

Oh, and it doesn't need to be a driver.
A driver is for communicating with hardware.
Also how will it send the mail?
SMTP/Exchange/via outlook (To save it in the sent items)
Are the settings for the mail server static or should they be gotten off the machine it's running on?

Theres alot of questions that need answering before such a thing can be built.
I like your key choice though. F9 in VB is used to set a break point so you can debug your code.
Could be interesting debugging it if it send an e-mail every time you set a breakpoint on and off.

Heres a VB6 sample about keyboard hooking.
http://vbnet.mvps.org/index.html?code/hooks/lowlevelkeyboardproc.htm

Heres one about sending e-mail via VB6
http://www.devarticles.com/c/a/Visual-Basic/Fun-with-Email-VB6-CDO-MAPI/

And two about how to create a service.
http://www.freevbcode.com/ShowCode.Asp?ID=4317
http://www.vbrad.com/article.aspx?id=92
0
 

Accepted Solution

by:
dkraatz earned 125 total points
ID: 18779408
Hi stealthdeveloper,

I'm not so sure the F9 key is the way to go with this one.  Especially if you are using Outlook 2003.  The F9 key is already setup in Outlook 2003 to do the send, and recieve function.  If you are programing this into a application I suggest looking at this article.

http://articles.techrepublic.com.com/5100-3513_11-5850937.html

I have used this before in some of my applications.  It works great if you hide a button on the form and set the shortcut key to F9.
0
 

Expert Comment

by:dkraatz
ID: 18779434
Oh sorry I almost forgot that if you do use this in Outlook 2003 it will cause the stupid virus warning to open causing a yes/no response need by the person using the program.  Also I was asuming that you are doing this with Visual Basic.  If you want the code I used I will post it on here for you.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question