Can a VB.NET app control another app?

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Can a VB.NET app control another app?

  1. #1
    Join Date
    Dec 2006

    Can a VB.NET app control another app?

    I found an Freeware OCR Java application that I want to launch (found this link ), but once it's launched I need to tell it to "click" a Load Image button. That button then opens a standard Windows browse for file window, and I need to input the right path, select file and click open. Then I need to "click" Decode Image, and exit. Can VB do this? Can anyone point me in the right direction? Am I going to have to create a WMI script and launch that?

    Please help,


  2. #2
    Join Date
    Jan 2007
    You can do this with a series of SendKeys commands. This won't be a 100% reliable - if the user clicks on another application or the OCR program throws any errors, you probably won't be able to recover. Have you looked at any OCR components for .NET?

  3. #3
    Join Date
    Dec 2006
    I haven't looked at any of the OCR components of VB.NET, but the program I found is designed to decode a PDF417 2D Barcode (specifically Driver's Licenses) and out put the data into plain text/Hex. Is their an easy way to do that in VB.NET? Also, I tried the SendKeys command, but it's not working because keyboard input to the java program has no effect. It actually requires a mouse click. Any thoughts?

  4. #4
    Join Date
    Jan 2007
    Ahh - you'll need something like this:

    It's an API call, but is easy enough to use. Here's some additional info on how to use that call with .NET:

  5. #5
    Join Date
    Dec 2006
    I'll play around with those, thanks a lot!

Similar Threads

  1. Replies: 2
    Last Post: 08-27-2003, 11:11 AM
  2. IE treeview Control using
    By Franco22 in forum ASP.NET
    Replies: 1
    Last Post: 04-08-2003, 05:47 PM
  3. Switch control to another app
    By cchs in forum VB Classic
    Replies: 0
    Last Post: 04-24-2000, 03:30 PM
  4. Control disappears when app is busy.
    By Steve in forum VB Classic
    Replies: 11
    Last Post: 04-04-2000, 08:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center