Text and EnterKey

M

Miro

VB.net 2005 Express

Say I have

Dim MyString as String = "ABCDEF"

and currently I have a timer that sends every 5 seconds:

SendKeys.Send( MyString )


Questions:
1. How do i add an "enterkey" to the end of the string.
2. If I am receiving the MyString through another variable, how do I make
sure that there is no funny characters in it like an enter key at the very
end of the string ( so 2 enters are not sent ) ?
3. Im assuming the "tab" key works the same so if I can find the enterkey
code somewhere - that would be super.

Thanks,

Miro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top