Author |
Message |
Scot #1 / 10
|
 About shortcut key:
Hi: I want to execute my program when the user press the shortcut key(such as <ctrl>+t) in the windows system.Could you help me?
|
Sun, 20 Feb 2005 20:33:55 GMT |
|
 |
Igor Tandetni #2 / 10
|
 About shortcut key:
RegisterHotKey -- With best wishes, Igor Tandetnik "For every complex problem, there is a solution that is simple, neat, and wrong." H.L. Mencken
Quote: > Hi: > I want to execute my program when the user press the shortcut key(such as > <ctrl>+t) in the windows system.Could you help me?
|
Sun, 20 Feb 2005 23:07:36 GMT |
|
 |
Scot #3 / 10
|
 About shortcut key:
Quote: > RegisterHotKey > -- > With best wishes, > Igor Tandetnik > "For every complex problem, there is a solution that is simple, neat, > and wrong." H.L. Mencken
>> Hi: >> I want to execute my program when the user press the shortcut > key(such as >> <ctrl>+t) in the windows system.Could you help me?
Hi,Igor Tandetnik I calls the RegisterHotKey function.But this doesn't fill my need.
|
Tue, 22 Feb 2005 21:41:46 GMT |
|
 |
Igor Tandetni #4 / 10
|
 About shortcut key:
You can place a shortcut to your program on the desktop, and specify a shortcut key for it in shortcut properties. I believe it also works for a shortcut in Start | Programs. -- With best wishes, Igor Tandetnik "For every complex problem, there is a solution that is simple, neat, and wrong." H.L. Mencken Quote: > Hi,Igor Tandetnik > I calls the RegisterHotKey function.But this doesn't fill my need.
|
Tue, 22 Feb 2005 21:53:25 GMT |
|
 |
Scot #5 / 10
|
 About shortcut key:
Quote: > You can place a shortcut to your program on the desktop, and specify a > shortcut key for it in shortcut properties. I believe it also works for > a shortcut in Start | Programs. > -- > With best wishes, > Igor Tandetnik > "For every complex problem, there is a solution that is simple, neat, > and wrong." H.L. Mencken >> Hi,Igor Tandetnik >> I calls the RegisterHotKey function.But this doesn't fill my need.
Hi,Igor Tandetnik Thank you.Now,What you said is just my need.But I need program to realize it.Could you offer any messages?
|
Tue, 22 Feb 2005 23:00:56 GMT |
|
 |
Igor Tandetni #6 / 10
|
 About shortcut key:
I don't understand your question. -- With best wishes, Igor Tandetnik "For every complex problem, there is a solution that is simple, neat, and wrong." H.L. Mencken
Quote: > Hi,Igor Tandetnik > Thank you.Now,What you said is just my need.But I need program to realize > it.Could you offer any messages?
|
Tue, 22 Feb 2005 23:44:56 GMT |
|
 |
Scot #7 / 10
|
 About shortcut key:
Quote: > I don't understand your question. > -- > With best wishes, > Igor Tandetnik > "For every complex problem, there is a solution that is simple, neat, > and wrong." H.L. Mencken
>> Hi,Igor Tandetnik >> Thank you.Now,What you said is just my need.But I need program to > realize >> it.Could you offer any messages?
Hi: I want to program to add a shortcut to the program on the desktop.When the user press such as <ctrl>+p , then the program startup.
|
Wed, 23 Feb 2005 20:45:37 GMT |
|
 |
Jeff Partc #8 / 10
|
 About shortcut key:
Quote:
> I want to program to add a shortcut to the program on the desktop.When the > user press such as <ctrl>+p , then the program startup.
See if you can use the IShellLink interface to achieve this. -- Jeff Partch [MVP]
|
Wed, 23 Feb 2005 23:59:17 GMT |
|
 |
Scot #9 / 10
|
 About shortcut key:
Quote:
>> I want to program to add a shortcut to the program on the >> desktop.When the >> user press such as <ctrl>+p , then the program startup. > See if you can use the IShellLink interface to achieve this. > -- > Jeff Partch [MVP]
Hi, Could you say particularly about IShellLink?Such as how to new shortcut file to desktop? Thank you .
|
Fri, 25 Feb 2005 16:02:13 GMT |
|
 |
Jeff Partc #10 / 10
|
 About shortcut key:
Quote:
> Hi, > Could you say particularly about IShellLink?Such as how to new shortcut > file to desktop?
Use CoCreateInstance to obtain an IShellLink. Use the IShellLink::SetHotKey, IShellLink::SetPath and IShellLink::SetDescription methods, QueryInterface it for its IPersistFile interface and then call the IPersistFile::Save method. Use SHGetSpecialFolderPath with CSIDL_DESKTOPDIRECTORY to get the path to the desktop. -- Jeff Partch [MVP]
|
Fri, 25 Feb 2005 17:06:25 GMT |
|
|