home *** CD-ROM | disk | FTP | other *** search
- ==============================================================
-
- Copyright 1994 Northeast Data Corp. All Rights Reserved
-
- ==============================================================
-
-
- Scraper Custom Control V1.1
-
-
- The Scraper control allows you to extract data from another
- application. This is useful for integrating applications that cannot
- be integrated via DDE, OLE, or other means. The control operates by
- allowing the user to select a target window in a different application.
- By commanding the control, your application can extract data from the
- other application and use this data as it sees fit.
-
- For example, to integrate imaging into a database application, you could
- write an image display application that uses the Scraper control. The
- Scraper control would allow the user to select a window in the database
- application that contains the file name of a .TIF file. When the user
- presses the VIEW button in your application, you command the Scraper
- control to extract the file name from the database application window.
- Then you display the selected file in your application.
-
- The Scraper control conforms to the standard for custom controls used
- with the Microsoft SDC Dialog Editor. The control is also available as
- a VBX control for use with Microsoft Visual Basic and Visual C++.
-
- The only difference between the demo version of the control and
- the commercial version is that the demo version displays a
- dialog box that allows the user to register the control with
- Northeast Data. There are no other functional differences.
-
-
- ===================
- The demo version
- ===================
- (Does not apply if you have purchased a licensed version)
-
- The demo version of the control will allow you to perform all functions
- implemented by the commercial version. The only difference is that a
- registration dialog box is displayed when the control is first loaded.
-
- By registering the control with Northeast Data Corp., you get:
-
- - The commercial version of the control
- - A telephone and FAX number for support
- - A Compuserve ID for support
- - Free maintenance release updates
- - A discount on major releases
- - More information about using NetBIOS
-
-
- ===================
- System Requirements
- ===================
- Microsoft Windows version 3.0, 3.1 or higher.
-
-
- ===================
- Installation
- ===================
-
- Copy the CSCRAPER.DLL file to your Windows or Windows\System directory.
-
- Start Windows and run the TEST.EXE program supplied with the Scraper
- control.
-
- For developing your own application, you can use the SDK Dialog Editor
- to place Scraper controls into a dialog box. You can also create a
- Scraper window by using the Windows CreateWindow API function just as
- you would with other standard controls.
-
-
- ===================
- Control Messages
- ===================
-
- These messages and values for wParam and lParam are defined in the scraper.h
- file:
-
- SCM_SETACTION
-
- Specified what kind of action will be taken by the Scraper control
- when the "scrape" command is performed (see below). The action is
- specified in wParam and can be:
-
-
- 0 - Get window text. Retrieves the caption from the target window.
-
- 1 - Get button state. Returns "1" if a button is checked or "0" if
- it is not checked. This applies to radio buttons and check boxes.
-
- 2 - Get selected listox item. Returns the text for the current selected
- item in a listbox.
-
- 3 - Get edit text. Returns the text entered into an edit box. This action
- also returns the text that is currently selected in a combo box.
-
- The action you specify is stored permanently in the scraper.ini file.
-
-
- SCM_SETCOMMAND
-
- Specifies a command for the Scraper control to perform. wParam
- contains the specific command and can be:
-
- 1 - Configure
-
- Displays a dialog box that allows the user to choose a window
- to scrape. The only windows the user will be allowed to choose
- are those owned by other applications.
-
- 2 - Scrape
-
- Extracts the data from the target application window. The data
- is stored in the Scraper control. If this function is successful,
- you can send the SCM_GETDATA message to get the scraped data.
-
- Errors returned from this message are:
-
- ERR_TASKNOTFOUND - The application that is being scraped is
- not running, or the application executable
- file has been moved to a different directory
- from where it was when the Scraper control
- was configured.
-
- ERR_WINDOWNOTFOUND - The specified window cannot be found. This
- may occur if the target application has
- moved the window to a different location
- from its original position, or if the
- window that was configured is not
- currently visible in the target application.
-
-
- SCM_SETSCRAPEID
-
- Sets the ID of the information for the target window to the
- string you specify in lParam (NULL-terminated). You can use
- this name to refer to the target window that you want to scrape.
- By using several IDs, you can scrape any number of windows in
- the target application. You can also achieve this by using
- multiple Scraper controls, which avoids update of the scraper.ini
- file every time you change the scrape ID.
-
- SCM_GETSCRAPEID
-
- Gets the name of the information for the target window that Scraper
- is currently configured to scrape.
-
- SCM_GETDATA
-
- Gets the data that was most recently scraped. You specify the address
- of a buffer in lParam and its length in wParam. Scraper returns the
- actual length of the data in the function result to your
- SendMessage call.
-
- Errors that can occur from this message are:
-
- ERR_NODATA - The target window has not been scraped; there is
- no data to return.
-
-
- =============================
- General Notes
- =============================
- The "Target" application and "Target" window are those that are chosen by
- the user from the configuration dialog box. All information about the
- chosen window is stored in the scraper.ini file. The sections in this file
- are identified using the ScraperID property value.
-
- The Scraper control stores all the information about the selected target
- window. When your application commands the Scraper to scrape the target
- window, the Scraper control tries to find the window that was specified
- during configuration (selection of the target window). Because there is
- no positive way to identify the target window (MS Windows does not keep
- specific window identifiers between application invocations), Scraper does
- the best it can to locate the desired window. Usually, it can locate the
- window based on its relationship to other task windows. If it cannot locate
- the window, it will return an error code to the application. The application
- will then have to prompt the user to re-select the desired window.
-
- Data can only be scraped from a target application's windows. If the
- target application displays data without using standard Windows controls,
- there is no way Scraper can extract that data. For example, the
- Microsoft Word and Excel applications do not display data in standard
- Windows controls (edit controls, etc.). Although you can extract data
- from dialog boxes and other windows within these applications, you cannot
- extract data that is simply written to the screen.
-
- The configuration dialog box displays information about the target window
- that is probably not useful to many users. This information is presented
- for those who may be able to use it.
-
-
- ================================================================
-
- Northeast Data Corp.
- 2117 Buffalo Rd., Suite 290
- Rochester, NY 14624
- 716-247-5934 (phone & FAX)
-
- ================================================================
-
- April 3, 1994
-
-