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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Screen Scraping from Act 2000

Status
Not open for further replies.

jake007

Programmer
Jun 19, 2003
166
US
I have had a request to create a program which will auto correct client addresses as they are entered into an ACT 2000 database. The correction of the address is no problem, I have created a small app that uses Satori's mailroom toolkit to correct individual addresses. What I need to be able to do is activate a piece of code (running as a service maybe?) which will correct the address on the act data entry scrfeen. Does anyone have any ideas how I can read the screen of another application in this manner?

Jake
 
Probably not possible as the index is an encrypted key based on the address as is. IF I can catch the screen, change the address, then Act can save the record correctly.

Jake
 
Use SpyXX.exe that comes with Visual Studio to interrogate the ACT application. Then from your app you can control it via Win32 API/user32.dll. The user32.dll is very powerful. If you send commands to the ACT app though, make sure you use postmessage and not sendmessage. Postmessage sends the command and you still have control over the app. Sendmessage waits for a response and makes your app in a stall mode until it receives a response. With SpyXX you can see everything about another application; buttons, menus, text boxes, etc. Once you know the handle of the address text box, you can trigger events in your app to correct the address.
 
Sounds like something to go on with the user32.dll. I don't suppose you may have a link to some docs regarding this dll?

jake
 
No specific links. Do a search. Tons of stuff out there. I basically just searched for the functions I was mostly interested; findwindow, findwindowlike, postmessage, etc. Plus the constants. Be very keen when you interrogate the ACT application with SpyXX to ensure you have the exact hierarchy while coding your app.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top