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!

scraping VFP forms to run automated

Status
Not open for further replies.

rkewin

MIS
Jan 24, 2003
1
US
Hello! We have a number of forms we use for daily processing. We are trying to 'automate' them. Is there a way to 'save' or 'scrape' a VFP form when it is running on the screen, save it's human clicks and keyboard strokes, then somehow run the form in an automated way where it takes the saved clicks and strokes and 'runs' them and runs the form.
Thanks!
 
This is where OOP comes in! As you can manipulate objects in code you can achieve your automation (eg ThisForm.Button.Click()).

How you record the human input is another issue!

Neil "I like work. It fascinates me. I can sit and look at it for hours..."
 
VFP 7.0 comes with a sample test harness program. It uses the standard Active Accessibility interface to allow you to automate VFP testing.

Rick
 
You can also use a Windows "macro" program called WinBatch from Wilson Window Ware (Winbatch.com). It uses a simple syntax to activate windows and pass keystrokes to any windows application.

The only problems I've had are getting the timing right (you have to program in delays if there are any situations where the computer is busy and cannot respond immediately)and programming for exceptions.

I've used it in a few situations, particularly to automate the exchange of information between VFP and non-VFP applicaitons that cannot be automated otherwse.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top