Solved

Opening App with Keyboard Only

Posted on 1998-06-30
3
147 Views
Last Modified: 2010-05-03
Hello,

I am writing an small utility for those writing email. My goal is for the user to be able to use this app without taking their hands off the keyboard.

I want to the user to be able to start this program with keystrokes.

So, my question is...is there a way to assign to windows a 'hot-key(s)' that would activate my program. Also, is there a way to edit this 'hot-key' from within my program.

Thanks for any suggestions.

Gary Mace
0
Comment
Question by:garymace
3 Comments
 
LVL 18

Expert Comment

by:deighton
ID: 1464607
1) create an EXE file

2) Right click on windows 95 and create a shortcut icon to the exe

3) Once you have an icon (or if you already made one) right click on the icon, selct properties, then shortcut.  Then select a SHOTCUT KEY e.g. ctrl-alt-G for example
0
 

Author Comment

by:garymace
ID: 1464608
3) Once you have an icon (or if you already made one) right click on the icon, selct properties, then shortcut.  Then select a SHOTCUT KEY e.g. ctrl-alt-G for example
-----------------------------------------

Thanks, but is there a way for a user to assign or edit this Short-Cut key from within the program itself?

Gary

0
 
LVL 6

Accepted Solution

by:
alamo earned 50 total points
ID: 1464609
The program can create and change a .lnk (and therefore reassign the hotkey) by using the IShellLink object.

The Microsoft Knowledgebase article Q179904 at http://support.microsoft.com/support/kb/articles/Q179/9/04.asp shows how to create a shortcut, and then how to change it (in your case you'd use IShellLink::SetHotkey to set the hotkey). The example isn't precisely what you are trying to do, but it shows you the general process for working with shortcuts.  

Good luck!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
add text to end of existing text in file 16 70
VBA open file from excel cell 4 42
Child Form in front 4 46
VBA: copy range dynamically based on config sheet v2 3 31
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

786 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