Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading/Controlling another program..

Status
Not open for further replies.

laeelin

Programmer
Jan 7, 2005
8
US
There is a program I use that has a REALLY annoying problem.

When I open up a detailed report the page CANNOT be copied using CTRL-C.

All the information is right there on the screen, but for some reason you can’t copy any of it.

Copying the information into Excel is a real pain.

I want to either:

1) Write a program that can read what’s on the other window, and copy that information into an CSV file or Even better would be for the program to be able to click on the buttons in the first program and to open and close the reports window (so it can run all 5 reports with one click)

It's really very basic. Click on the button that says "Report A" read the screen, save as a CSV file, Click "Close". Click "Report B", read, save, close, "Report C", ect.

or

2) Find a program that I can modify to do what I need.

I have not programmed in anything other than PHP in a long long time. I have C++ and Visual Basic, so they are my first choice for languages, but I have never actually used VB and am very out of practice in C++

Anyone have any suggestions? (I'm guessing VB would be easier to do this is, so i'm posting the question here)
 
After some more reasearch, i have an easier question...

Can VB do the following things:

1) Look for another program running.
2) Take a screenshot of that programs window.
3) Look at a section of that window and compaire the section to another image (for example, look where the "Report A" button is, and compair it to a screenshot of "Report A")
4) Move the mouse to a specific location on a specific window, and click.
5)Read the text in the window (or part of the window, or as last resort, compair screenshots again [a pain to make 99 screenshots to compair to])
 
(dont see an edit button)

ps: I'm not asking how to do all of this

pps: This is with VB6
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top