Sending key command to a global hot key 
Author Message
 Sending key command to a global hot key

        I have a problem and was wondering if someone would be willing
to help.  

I have a project that I THOUGHT would be simple enough to do.  I am
trying to activate the global hot key defined by a third party windows
programs.  Basically, I want to simulate the pressing and holding of a
particular key with a command button.  Then simulate releasing that
same key with a 2nd command button.  My project has a combo box and I
am using .additem to define the keys available for this project to
activate the global hot key.  I have tried sendkeys method and
sendinput method but where i am having problems is that I want to
simulate pressing and holding down the key like you would if you
manually pressed it and held it.  

If someone has some example code suggestions to simulate pressing and
holding a key and then releasing it, I would appricate it.  I was
thinking of a keydown and key up but that doesnt seem to quite fit the
bill either.  

The the global hot key defined by the third party program can be
activated even if the program doesnt have focus.  The hot keys
definable in this program are  Ctrl, Space, and F1 through F12
I can get the key codes.  I just need some suggestions on how to
activate and hold the global hot key from a command button and then
release it with another command button.  

Thanks in advance for any and all help.


Sat, 09 Oct 2004 00:06:10 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Global Hot Keys

2. Q: Trapping global hot-keys

3. Global Hot Keys?

4. Assigning arrow keys as hot keys

5. Standard for function-keys and hot-keys?

6. Adding hot keys to Command controls

7. Command button Hot Keys

8. KEY (Assignment) and KEY (Event Trapping) Commands

9. Sending Alt + key and Control + key to window via Postmessage

10. Help with sending function keys and cursor keys to DOS app

11. how to Send the CTRL+SHIFT keys (no other key)

12. Grabbing keys, sending keys


Powered by phpBB® Forum Software