CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2001
    Posts
    430

    how to write code to press the 'Enter' key (not manually press)? -thanks

    how to write code to press the 'Enter' key (not manually press)? -thanks


  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: how to write code to press the 'Enter' key (not manually press)? -thanks

    SendKeys "{ENTER}"


    HTH

    cksiow
    http://vblib.virtualave.net - share our codes

  3. #3
    Join Date
    Oct 1999
    Posts
    191

    Re: how to write code to press the 'Enter' key (not manually press)? -thanks

    thanks a lot!!!

    How to write code to press 'Ctrl' and 'C' key at the same time and also the arrow down key? thanks again.


  4. #4
    Join Date
    Apr 2000
    Posts
    737

    Re: how to write code to press the 'Enter' key (not manually press)? -thanks

    not sure, maybe sendkeys "^(C{DOWN})"


    HTH

    cksiow
    http://vblib.virtualave.net - share our codes

  5. #5
    Join Date
    May 2001
    Location
    Canada
    Posts
    182

    Re: how to write code to press the 'Enter' key (not manually press)? -thanks

    SendKeys "%C" 'Sends ALT+C
    SendKeys "^C" 'Sends CTRL+C
    SendKeys "+C" 'Sends SHIFT+C

    Regards,

    Michi
    MCSE, MCDBA

  6. #6
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: how to write code to press the 'Enter' key (not manually press)? -thanks

    The MSDN HElp facility describes how to use Sendkeys for all the keyboard keys inclusinf Ctrl and Alt, Enter and combinations of keys.

    John G

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

Featured