Results 1 to 4 of 4

Thread: How do you send another program the "TAB" key?

  1. #1

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245

    Post

    I want to make it where I can define the number of "TABS" to send to a 3rd party program. This way the correct text box on the 3rd party program will have the focus and then I should be able to send text to the target textbox of the 3rd party program without ever having to know the specific textbox's hWnd. (Since I can not seem to get the hWnd for it.)

    Thank you very much in advance for your help,
    Daniel_Christie

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Post

    Try using the SendKeys statement.
    SendKeys "{TAB}", True

    Good luck!

    ------------------
    Joacim Andersson
    [email protected]
    [email protected]
    www.YellowBlazer.com



  3. #3

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245

    Post

    I will do that, thank you.
    But I would like to fully understand what the ",True" stands for?

  4. #4
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    The True means that you program will wait for the keypresses to be processed by the other program - if you leave it False and then immediately sent another keypress to the program there's no guarantee that the program would behave how you expected. Best to leave it at True.



    ------------------
    Mark "Buzby" Beeton
    VB Developer
    [email protected]



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