Results 1 to 10 of 10

Thread: simple send keys question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Posts
    93

    simple send keys question

    Can you use sendkeys to send the tab, ctrl, alt, buttons? Or do you have to use a different command?

  2. #2
    Fanatic Member
    Join Date
    Jun 2001
    Location
    Oregon
    Posts
    643

    Re: simple send keys question

    yes

    SendKeys "{Tab}"
    SendKeys "^" 'This is Ctrl
    SendKeys "%" 'This is Alt
    SendKeys "^%({Del})" 'Sends Ctrl+Alt+Delete

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Posts
    93

    Re: simple send keys question

    Thanks.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Posts
    93

    Re: simple send keys question

    what would be enter?

  5. #5
    Fanatic Member
    Join Date
    Jun 2001
    Location
    Oregon
    Posts
    643

    Re: simple send keys question

    SendKeys "{Enter}" or SendKeys "~"


    Check this site out here: http://www.developerfusion.co.uk/show/57/

  6. #6
    Fanatic Member Mxjerrett's Avatar
    Join Date
    Apr 2006
    Location
    Oklahoma
    Posts
    939

    Re: simple send keys question

    When i use SendKeys "^%({Del})" it doesn't work.

    If a post has been helpful please rate it.
    If your question has been answered, pull down the tread tools and mark it as resolved.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Posts
    93

    Re: simple send keys question

    put in +
    I think thats works...

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Posts
    93

    Re: simple send keys question

    nevermind, that doesnt work either... It works for ("^" + "t")

  9. #9
    Fanatic Member
    Join Date
    Jun 2001
    Location
    Oregon
    Posts
    643

    Re: simple send keys question

    Ive never tried doing Ctrl+Alt+Delete, but if its not working then i think you gotta go onto more complicated measures.. I think sending any more then 2 keys at the same time requires some API

  10. #10
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: simple send keys question

    There are just certain key combinations (and certain keys) that can't be "sent".
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

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