Simulate mouse and keyboard 
Author Message
 Simulate mouse and keyboard

Is it possible to simulate mouse and keyboard actions (like mouse-click,
keypress etc.) within VB? Can such programm runs in background? For
example - if you want to make a presentation of using your application one
may want to press just one start button which starts kind of player of
actions, which you recorded before. So the VB code should be in the
background and the chosen application (ie Access, Excel...) should be in the
foreground.

Thanx in forward!

Thomas



Wed, 07 May 2003 08:49:51 GMT  
 Simulate mouse and keyboard
Take a look at the mouse_event, keyb_event and SendInput API functions
http://kpdteam.tripod.com/api/mouse_event.htm
http://kpdteam.tripod.com/api/keyb_event.htm
http://kpdteam.tripod.com/api/SendInput.htm

Regards,
Pieter Philippaerts
http://www.allapi.net/



Quote:
> Is it possible to simulate mouse and keyboard actions (like mouse-click,
> keypress etc.) within VB? Can such programm runs in background? For
> example - if you want to make a presentation of using your application one
> may want to press just one start button which starts kind of player of
> actions, which you recorded before. So the VB code should be in the
> background and the chosen application (ie Access, Excel...) should be in
the
> foreground.

> Thanx in forward!

> Thomas



Wed, 07 May 2003 10:09:08 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Simulating mouse movements and Clicks on the Keyboard

2. Mouse Change/Mouse-Keyboard Lock

3. Simulate keyboard entry

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

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

6. Simulate Keyboard Input

7. Simulating Keyboard Input

8. How can I simulate mouse clicks

9. Programmatically Simulate a Mouse Click

10. Simulate a mouse click

11. Simulate the mouse click

12. simulate mouse click w/o moving cursor

 

 
Powered by phpBB® Forum Software