About shortcut key: 
Author Message
 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  
 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  
 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  
 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  
 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  
 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  
 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  
 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  
 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  
 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  
 
 [ 10 post ] 

 Relevant Pages 

1. how can i change the shortcut key on pocketpc to make the shortcut key to run my program?

2. Ridiculous Shortcut Key problem

3. shortcut key problem

4. Translate ShortCut Keys

5. About the shortcut key of IDE

6. shortcut key

7. Newbie : Calling Applications from Desktop by shortcut keys

8. Looking for elusive IDE shortcut key

9. shortcut key in application written by .net studio

10. About Shortcut key:

11. shortcut key

12. Help: Dynamically disabling shortcut keys

 

 
Powered by phpBB® Forum Software