Results 1 to 7 of 7

Thread: Need helps in Sendkey

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2004
    Location
    Texas
    Posts
    144

    Need helps in Sendkey

    Hi,
    I have a field in an application that I can't tab or shift+tab to get there. How can I navigate to that field using Sendkey?

    Thanks,

    PhiL

  2. #2
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: Need helps in Sendkey

    SendKeys "{TAB}"
    SendKeys "{TAB}"

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2004
    Location
    Texas
    Posts
    144

    Re: Need helps in Sendkey

    "I have a field in an application that I can't tab or shift+tab to get there"

    Quote Originally Posted by Pasvorto
    SendKeys "{TAB}"
    SendKeys "{TAB}"

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Need helps in Sendkey

    Maybe you can use the FindWindow and FindWindowEx APIs to get the handle of the field you want to set the focus to and then use the SetFocus API to set it?


    Has someone helped you? Then you can Rate their helpful post.

  5. #5
    Hyperactive Member
    Join Date
    Nov 2003
    Location
    In Front of my computer...
    Posts
    367

    Re: Need helps in Sendkey

    Quote Originally Posted by Iat
    Hi,
    I have a field in an application that I can't tab or shift+tab to get there. How can I navigate to that field using Sendkey?

    Thanks,

    PhiL
    you can't...
    you gotta use APIs as manavo suggests...
    Born to help others
    (If I've been helpful then please rate my post. Thanks)

    call me EJ or be slapped!

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Feb 2004
    Location
    Texas
    Posts
    144

    Re: Need helps in Sendkey

    Quote Originally Posted by manavo11
    Maybe you can use the FindWindow and FindWindowEx APIs to get the handle of the field you want to set the focus to and then use the SetFocus API to set it?

    Thank you all for the tips. Now I just have to find out more on how to use the above API's to do the job.

  7. #7
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Need helps in Sendkey

    Quote Originally Posted by Iat
    Thank you all for the tips. Now I just have to find out more on how to use the above API's to do the job.
    You're welcome. If you have problems, post back


    Has someone helped you? Then you can Rate their helpful post.

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