Results 1 to 4 of 4

Thread: SendKeys Spacebar?

  1. #1

    Thread Starter
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    How can I send the space bar command using SendKeys? I tried vbSpace, but that doesn't work. Does anyone know how or where there is a list of "vbKeys" is at?

    Thanks
    <removed by admin>

  2. #2
    Guest
    How about just:

    Code:
    SendKeys " ", True
    A list of the keys can be found in MSDN.

    Sunny

  3. #3

    Thread Starter
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    That doesn't work. I don't need to send the actual space in text, I need to press the space bar like when you have a button in focus. I used vbTab to get there, but the vbEnter doesn't work. Thanks for trying though.
    <removed by admin>

  4. #4

    Thread Starter
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Thanks Matthew! I used the sendkeys "{Enter}" and it worked! Now my program can send text to Instant Messager! You are my favorite guru on this site. Where did your reply go? I read it then posted my reply and yours was gone mysteriously. hmmm

    [Edited by MidgetsBro on 11-14-2000 at 11:58 PM]
    <removed by admin>

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