Solved

Programatically Add a Windows Shortcut Key using .NET

Posted on 2009-05-09
2
405 Views
Last Modified: 2013-11-08
Hello,

I'm interested in how to Programatically Add a Windows Shortcut Key with .NET.  The shortcuts I'm referring to are not the icon kind, but the Key (or Key Chord) kind.  If you view the properties of any executable (Calc.exe for example - See picture), the third text box down says Shortcut Key.  You can manually enter in a Key Chord, but how do I do this Programatically?

Thanks!
calcProperties.jpg
0
Comment
Question by:Cayman21
2 Comments
 
LVL 19

Accepted Solution

by:
elimesika earned 250 total points
Comment Utility
HI

Basically, you should use WIN32 API  RegisterHotKey

http://www.codeproject.com/KB/miscctrl/ashsimplehotkeys.aspx
0
 
LVL 78

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 250 total points
Comment Utility
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 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

11 Experts available now in Live!

Get 1:1 Help Now