The content of the invention
It is above-mentioned to solve the problems, such as it is an object of the invention to provide computer software port slitless connection method.
Computer software port slitless connection method is provided in an embodiment of the present invention, including:
Screen-display coordinate system is set up by preset rules;
Determine the elements of a fix of the data output window of data output software in the screen-display coordinate system;
Determine the elements of a fix of the Data-entry windows of data input software in the screen display coordinate;
Distinguish the data content in the data output window;
The relation between the elements of a fix according to the data output window and the Data-entry windows, the number that will be distinguished
According to content transmission to the predeterminated position in the Data-entry windows.
The computer software port slitless connection method of the above embodiment of the present invention, pre-builds screen-display coordinate system,
Determine that the elements of a fix and data input of the data output window of data output software are soft in the screen-display coordinate system set up
The elements of a fix of the Data-entry windows of part, the data content in recognition data output window, by data output window and number
According to the relation between the elements of a fix of input window, the default position in the data content transmission to Data-entry windows that will be distinguished
Put, so realize the transmission of data between computer software, in the method for the embodiment of the present invention, not to computer software end
Programming language between mouthful is matched but directly the data content to data output window output is distinguished, and overcomes correlation
In the case of programming language in technology between the computer software port of mutual data transmission is unmatched, computer is easily caused soft
The technical problem of data cannot be transmitted between part.
Specific embodiment
The present invention is described in further detail below by specific embodiment and with reference to accompanying drawing.
The embodiment of the present invention provides a kind of computer software port slitless connection method, as shown in figure 1, main processing steps
Including:
Step S11:Screen-display coordinate system is set up by preset rules;
Step S12:Determine that positioning of the data output window of data output software in the screen-display coordinate system is sat
Mark;
Step S13:Determine the elements of a fix of the Data-entry windows of data input software in the screen display coordinate;
Step S14:Distinguish the data content in the data output window;
Step S15:The relation between the elements of a fix according to the data output window and the Data-entry windows, will
The data content transmission of recognition is to the predeterminated position in the Data-entry windows.
The computer software port slitless connection method of the embodiment of the present invention, pre-builds screen-display coordinate system, is building
The elements of a fix and data input software of the data output window of data output software are determined in vertical screen-display coordinate system
The elements of a fix of Data-entry windows, the data content in recognition data output window is defeated with data by data output window
Enter the relation between the elements of a fix of window, the predeterminated position in the data content transmission to Data-entry windows that will be distinguished, such as
This realizes the transmission of data between computer software, in the method for the embodiment of the present invention, not between computer software port
Programming language matched but directly to data output window output data content distinguish, overcome correlation technique
In the case of programming language between the computer software port of middle mutual data transmission is unmatched, between easily causing computer software
The technical problem of data cannot be transmitted.
It is described to set up screen-display coordinate system by preset rules, including:Screen is set up according to computer display resolution ratio
Displaing coordinate system.
It is described that screen-display coordinate system is set up according to computer display resolution ratio, including:Determine that the screen display is sat
Mark the origin of coordinates of system;Lateral coordinates maximum and longitudinal coordinate maximum are determined according to computer display resolution ratio;According to
The origin of coordinates, the lateral coordinates maximum and the longitudinal coordinate maximum set up screen-display coordinate system.
Data content in the recognition data output window, including:Screenshotss are carried out to data output window, is passed through
OCR identification technologies distinguish the data content in the data output window.
The data content includes:One kind or many in English alphabet, Arabic numerals, Chinese character, additional character and image
Kind.
Being illustrated in the embodiment of the present invention carries out the process of data transfer between computer software port, example using the method
Such as:
The data of the data output window output of computer software are two-dimensional structure data, the positioning of two-dimensional structure data by
Plane coordinates system is constituted.
Computer screen resolution ratio differs the plane coordinates system that coordinate pixel is constituted by various.
The transmission of data is computer software FPDP and data terminal between the computer software port of the embodiment of the present invention
Mouth carries out the connection of logic, can carry out that various programming languages are identical, programming language is differed, various encipherment protection port datas
Software between data transfer.
Set up screen-display coordinate system:Setting computer display screen is rectangle, and there is the rectangle upper left drift angle, lower-left to push up
Angle, upper right drift angle and bottom right drift angle, set the pixel coordinate corresponding with upper left drift angle as coordinate system to be set up origin (0,
0), cross origin (0,0) and set up transverse coordinate axis and longitudinal coordinate axle, wherein transverse coordinate axis are along from upper left drift angle to upper right drift angle
Direction extends, and longitudinal coordinate axle extends along from upper left drift angle to lower-left drift angle direction, and the scale value of transverse coordinate axis and longitudinal direction are sat
The scale value of parameter is corresponding with computer display resolution ratio, for example, monitor resolution is 1024 × 768, then laterally sits
Between 0~1024, the scale value of longitudinal coordinate axle is between 0~768 for the scale value of parameter.
After setting up screen-display coordinate system, the position of position and data input data software according to data output software,
Determine relative coordinate and the Data-entry windows relative screen displaing coordinate system of data output window relative screen displaing coordinate system
Relative coordinate;
Sectional drawing is carried out to data output window, the treatment of related pixel is carried out to sectional drawing, be ultimately converted to output window defeated
Go out the analog signal of data, then the input window that analog signal is filled up to reception software is positioned by screen coordinate, so as to reach
Into the slitless connection of analog signal between software and software.
The computer software port slitless connection method of the embodiment of the present invention makes out various letters, numeral, word, special
The analog signal data that symbol, image etc. are converted into docking software port carries out port and is connected with the logic of port.
Obviously, those skilled in the art should be understood that above-mentioned of the invention each module or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and constituted
Network on, alternatively, the program code that they can be can perform with computing device be realized, it is thus possible to they are stored
Performed by computing device in the storage device, or they be fabricated to each integrated circuit modules respectively, or by they
In multiple modules or step single integrated circuit module is fabricated to realize.So, the present invention is not restricted to any specific
Hardware and software is combined.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.