Get info from another program


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Get info from another program

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    Get info from another program

    [Originally posted by Ray Dean]

    I am new to VB but I have written severqal programs that monitor different machines and save the information to Excell.* These programs run 24/7 and contain information that I need in another master program.* I would like to get the contents of a text box from one program and use it in another with the least amount of problems.* I could link to the Excel file but that info is not up to date.
    Thank you for any help
    Ray

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Get info from another program

    [Originally posted by PM]

    You could try a combination of a few items:

    1.* Find and activate the window from which you need to pull data (use vb's AppActivate, or a good piece from freevbcode.com call AppActivateByStringPart).

    2.* Use vb's SendKeys statement to mimick keystrokes and navigate your way to the item you need.* You can then grab (e.g., with Selection.Copy) and parse/paste where you need

    This is a bit klugy, but can be effective, particularly in cases where you can't get other programs to spit out the data you need in a useful format.

    Hope this helps.

  3. #3
    Join Date
    Aug 2004
    Location
    Europe , Netherlands , Rotterdam
    Posts
    69
    well another solution is making your programs activex executables and exchange the information through there public classes


    i think this would be the most professional solution ,,,,


    if you need a quick example let me know ...


    Happy coding :-)

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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