Results 1 to 12 of 12

Thread: [RESOLVED] SendKeys - Enter

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Resolved [RESOLVED] SendKeys - Enter

    How do you send the key enter?

    I thought you did like this:

    VB Code:
    1. SendKeys {ENTER}
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Re: SendKeys - Enter

    or actually.. ..I need to know how to put an enter into a textbox

    VB Code:
    1. Text1 = Text1 + ????

    What should I write instead of ???? you think?

    Please help!
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

  3. #3
    Fanatic Member lerroux's Avatar
    Join Date
    Nov 2005
    Location
    Welcome to the darkside... we have cookies
    Posts
    646

    Re: SendKeys - Enter

    i think it's like: sendkeys{keyascii=13}
    WARNING: Excessive coding is dangerous to your health... if symptoms persist insult your doctor...

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Re: SendKeys - Enter

    i get an error saying: "Invalid character" and points on the first {
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

  5. #5
    Fanatic Member lerroux's Avatar
    Join Date
    Nov 2005
    Location
    Welcome to the darkside... we have cookies
    Posts
    646

    Re: SendKeys - Enter

    VB Code:
    1. sendkeys 13
    ? try either this or
    VB Code:
    1. sendkeys (keyascii=13)
    WARNING: Excessive coding is dangerous to your health... if symptoms persist insult your doctor...

  6. #6
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Thumbs up Re: SendKeys - Enter

    'For New line in the text box assign its multiline property ture

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Re: SendKeys - Enter

    anyway...can anyone help me with putting an enter into my textbox
    Text1 = Text1 + ????
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

  8. #8
    Fanatic Member lerroux's Avatar
    Join Date
    Nov 2005
    Location
    Welcome to the darkside... we have cookies
    Posts
    646

    Re: SendKeys - Enter

    i dont really understand wat u mean... how to put an enter?
    WARNING: Excessive coding is dangerous to your health... if symptoms persist insult your doctor...

  9. #9
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: SendKeys - Enter

    VB Code:
    1. Private Sub Text1_LostFocus()
    2. Text1.Text = Text1.Text + Chr(13)
    3. SendKeys "~"
    4. Text1.Text = Text1.Text + "It is next line"
    5. End Sub

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Re: SendKeys - Enter

    thanks shakti5385, that should work!
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

  11. #11
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: [RESOLVED] SendKeys - Enter

    typically you use the Carriage Return line feed combination:
    VB Code:
    1. Text.Text = "Line 1" & vbCrLf & "Line 2"
    make sure multiline property is set to true.

  12. #12

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Re: [RESOLVED] SendKeys - Enter

    I need help with one more thing...but I'll carry on in a new thread called "Open file in textbox"
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width