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
Solved

Programatically Add a Windows Shortcut Key using .NET

Posted on 2009-05-09
2
416 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
ID: 24346104
HI

Basically, you should use WIN32 API  RegisterHotKey

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

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 250 total points
ID: 24347022
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

839 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