How to simulate keyboard combinations like shift + g ... 
Author Message
 How to simulate keyboard combinations like shift + g ...

How to simulate keyboard combinations like shift + g

so if you click on a command button it's the same effect like shift + g

Regards,

Philippe



Tue, 13 Jul 2004 05:31:57 GMT  
 How to simulate keyboard combinations like shift + g ...
Hi Philippe,

Use the keybd_event API:

Public Declare Sub keybd_event Lib "user32" Alias "keybd_event" (ByVal bVk
As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As
Long)   (check MSDN for API help)

      OR

The VB SendKeys method  (check VB help)

What you need is probably ;

      SendKeys "+G"   ' + = shift

Regards,
Frode


Quote:
> How to simulate keyboard combinations like shift + g

> so if you click on a command button it's the same effect like shift + g

> Regards,

> Philippe



Tue, 13 Jul 2004 17:53:16 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to simulate keyboard combinations like shift + g ...

2. How to simulate keyboard combinations like shift + g so if you click on a command button it's the same effect like shift + g

3. Simulating the left alt+shift and the right alt+shift in vb

4. ALT SHIFT KEY COMBINATION

5. Keyboard handler with multiple key combinations

6. DirectInput keyboard combinations

7. Simulate keyboard entry

8. Simulating mouse movements and Clicks on the Keyboard

9. Simulate Keyboard Input

10. Simulate mouse and keyboard

11. Simulating Keyboard Input

12. shift-f2 / ctl-shift-f2

 

 
Powered by phpBB® Forum Software