How to create a output wich acts like typing on my keyboard?
How to create a output wich acts like typing on my keyboard?
(OP)
Hi,
Can anyone help me with creating a output wich acts like typing on my keyboard?
I'm no advanced VB user, so I couldn't find out on my own.
Henry906
Can anyone help me with creating a output wich acts like typing on my keyboard?
I'm no advanced VB user, so I couldn't find out on my own.
Henry906
RE: How to create a output wich acts like typing on my keyboard?
Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting
Steam Engine enthusiasts: www.essexsteam.co.uk
RE: How to create a output wich acts like typing on my keyboard?
Here is a snippet from the msdn library (VB6):
CODE
Sends one or more keystrokes to the active window as if typed at the keyboard.
Syntax
SendKeys string[, wait]
RE: How to create a output wich acts like typing on my keyboard?
SendKeys is usually used within your VB app to generate keypresses in an external app. Have a look at the instructive SendKeys example in VBHelp which shows how to send simulated keypresses to Calc.exe
Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting
Steam Engine enthusiasts: www.essexsteam.co.uk
RE: How to create a output wich acts like typing on my keyboard?
Henry, a little more information will help us help you. What is it you are trying to accomplish? Are you trying to catch keystrokes or send keystrokes to your own program or an external program?
Also, I should clarify a little; I have fiddled with sendkeys example code but I have not had a need for it in one of my own programs.
RE: How to create a output wich acts like typing on my keyboard?
a user should type a text like "a sample text"
then press start and the program would send the text over and over , like ctrl + v, but for programs in which that is inpossible, so it would be for external programs, i think that SendKeys will help me a lot
Henry