Solved

Opening App with Keyboard Only

Posted on 1998-06-30
3
144 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now