Solved

Need to make F9 function key cause email to be sent

Posted on 2007-03-22
4
825 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
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). …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

738 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