How to programmatically simulate ENTER Key on different application using SENDKEYS...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rjprasadch
    New Member
    • Feb 2009
    • 1

    #1

    How to programmatically simulate ENTER Key on different application using SENDKEYS...

    We have one utility in Visual Basic and it compares two PDF Documents.
    When we run our application, initially compare documents dialog box is displayed and this dialog box is displayed by Acrobat.

    When we click on the OK Button on the compare dialog box, then differences between two PDFs are shown.

    My requriement is whenever the Compare dialog box is dispalyed, then programmaticall y OK Button on the dialog box should be clicked without any manual intervention.

    I heard that we can use SendKeys to send keystrokes to an application.
    But, the dialog box is displayed by Acrobat, so it possible to click on the OK button of different window/application using Visual Basic.

    Could you please let me know is it possible using VB or any alternatives for this. Because we need to compare many PDF documents so clicking OK button manually is tedious.

    Your help is highly appreciated.
Working...