Text and EnterKey

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Miro

    #1

    Text and EnterKey

    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



  • Miro

    #2
    Re: Text and EnterKey - Solved

    Found it - http://www.developerfusion.co.uk/show/57/

    Sorry for the post.



    "Miro" <mironagy@golde n.netwrote in message
    news:%23Itppzr0 HHA.3848@TK2MSF TNGP03.phx.gbl. ..
    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
    >
    >
    >

    Comment

    Working...