Link to home
Start Free TrialLog in
Avatar of stealthdeveloper
stealthdeveloper

asked on

Need to make F9 function key cause email to be sent

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
Avatar of qz8dsw
qz8dsw
Flag of New Zealand image

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
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
ASKER CERTIFIED SOLUTION
Avatar of dkraatz
dkraatz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dkraatz
dkraatz

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.