CN111737024A - Data transmission method and system based on clipboard - Google Patents
Data transmission method and system based on clipboard Download PDFInfo
- Publication number
- CN111737024A CN111737024A CN202010416079.1A CN202010416079A CN111737024A CN 111737024 A CN111737024 A CN 111737024A CN 202010416079 A CN202010416079 A CN 202010416079A CN 111737024 A CN111737024 A CN 111737024A
- Authority
- CN
- China
- Prior art keywords
- clipboard
- system server
- process corresponding
- communication mode
- local target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a clipboard-based data transmission method and a clipboard-based data transmission system, which are applied to the technical field of communication, wherein the method realizes interaction between a local target application program (namely a browser or a wechat applet) and a clipboard through a clipboard communication mode of interprocess communication, thereby acquiring target resource content, avoiding the problem of large development amount caused by the need of developing different plug-ins aiming at different browsers for realizing that the browser or the wechat applet acquires the resource content from the local, and the problem of complicated programs caused by the need of restarting the browser for realizing the functions of the plug-ins, and further improving the user experience.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and a system for data transmission based on a clipboard.
Background
The bank provides traditional financial services such as account opening, account selling, inquiry, account checking, in-line transfer, inter-line transfer, credit, online securities, investment and financing and the like to the client through the internet by utilizing the network technology, so that the financial services such as current and regular deposit, check, credit card, personal investment and the like can be safely and conveniently managed without leaving the client.
In the prior art, when a user accesses an internet bank through the internet, financial service information such as a security keyboard, a Ukey signature, a security certificate and the like of a banking system is generally called through an extension program of a browser, so that the security of the financial service transacted by the user is ensured.
However, multiple versions of extension programs need to be developed for different browsers, and the extension programs need to be released and maintained in an application store, and the browsers need to be restarted after installation, which results in high development cost, high maintenance difficulty and poor user experience.
Disclosure of Invention
The application provides a data transmission method and system based on clipboard, the interaction of local target application program (browser or little letter applet) and clipboard has been realized through the clipboard communication mode of interprocess communication, thereby obtain target resource content, avoid obtaining the problem that the development volume that resource content need be brought to different browsers need be developed for realizing that browser or little letter applet obtain resource content from the local, and need restart the browser usually in order to realize the function of plug-in, the loaded down with trivial details problem of procedure, and then can improve user's experience, the technical scheme that this application adopted is as follows:
in a first aspect, a clipboard-based data transfer method is provided, which is applied to a local target application, the method including,
the method comprises the steps that a first process corresponding to a local target application program sends a service processing request to an application system server, the application system server is used for determining an inter-process communication mode as a shear plate communication mode and resource request content based on the service processing request, and feeding back the determined inter-process communication mode and the resource request content to the first process corresponding to the local target application program;
a first process corresponding to a local target application program acquires target resource content from a second process corresponding to a shear plate program based on a shear plate communication mode, and sends the acquired target resource content to an application system server, wherein the application system server is used for determining a service processing result based on the acquired target resource content;
and a first process corresponding to the local target application program receives a service processing result sent by the application system server.
Optionally, the local target application is a browser or a wechat applet.
Optionally, the application system server is an online banking system server.
Optionally, the business process request may be one or more of a certificate login, a form signature, and a certificate binding.
In a second aspect, a clipboard-based data transmission system is provided, which includes a first process corresponding to a local target application program, an application system server, and a second process corresponding to a clipboard program; the method comprises the following steps:
the first process corresponding to the local target application program is used for sending a service processing request to an application system server;
the application system server is used for determining an inter-process communication mode as a clipboard communication mode and resource request content based on the service processing request, and feeding back the determined inter-process communication mode and the resource request content to a first process corresponding to the local target application program;
the first process corresponding to the local target application program is used for acquiring target resource content from a second process corresponding to a clipboard program based on a clipboard communication mode and sending the acquired target resource content to the application system server, and the application system server is used for determining a service processing result based on the acquired target resource content;
and the first process corresponding to the local target application program is used for receiving the service processing result sent by the application system server.
Optionally, the local target application is a browser or a wechat applet.
Optionally, the application system server is an online banking system server.
Optionally, the business process request may be one or more of a certificate login, a form signature, and a certificate binding.
The application provides a data transmission method and a system based on a clipboard, and the application sends a service processing request to an application system server through a first process corresponding to a local target application program, wherein the application system server is used for determining an interprocess communication mode as the clipboard communication mode and resource request content based on the service processing request, and feeding back the determined interprocess communication mode and the resource request content to the first process corresponding to the local target application program; a first process corresponding to the local target application program acquires target resource content from a second process corresponding to a clipboard program based on a clipboard communication mode, and sends the acquired target resource content to the application system server, wherein the application system server is used for determining a service processing result based on the acquired target resource content; and the first process corresponding to the local target application program receives the service processing result sent by the application system server. The interaction between a local target application program (namely a browser or a wechat applet) and a clipboard is realized through a clipboard communication mode of interprocess communication, so that target resource content is obtained, the problem that development amount is large due to the fact that different plug-ins need to be developed for different browsers to achieve the fact that the browser or the wechat applet locally obtains the resource content is solved, the problem that the program is complex due to the fact that the browser generally needs to be restarted to achieve the function of the plug-in is solved, and user experience can be improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart illustrating a data transmission method based on a clipboard according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
The micro-service is not only the micro-service itself but also a system provides a set of basic framework, the framework can enable the micro-service to be independently deployed, operated and upgraded, and the micro-service can be structurally loosely coupled and functionally represented as a unified whole. The 'unified whole' can be represented by a unified style interface, unified authority management, a unified security policy, a unified online process, a unified log and auditing method, a unified scheduling mode, a unified access entry and the like.
Example one
An embodiment of the present application provides a clipboard-based data transmission method, as shown in fig. 1, the method may include the following steps:
step S101, a first process corresponding to the local target application program sends a service processing request to an application system server, wherein the application system server is used for determining an inter-process communication mode as a clipboard communication mode and resource request content based on the service processing request, and feeding back the determined inter-process communication mode and resource request content to the first process corresponding to the local target application program;
step S102, a first process corresponding to the local target application program acquires target resource content from a second process corresponding to a shear plate program based on a shear plate communication mode, and sends the acquired target resource content to the application system server, wherein the application system server is used for determining a service processing result based on the acquired target resource content;
step S103, the first process corresponding to the local target application program receives the service processing result sent by the application system server.
Inter-process Communication (IPC) refers to data sharing and data exchange between different processes.
Specifically, a first process corresponding to the local target application program and a second process corresponding to the clipboard can interact based on an interprocess communication technology, so that data transmission is realized.
The clipboard (clipboard) is essentially a group of functions and messages used for transmitting data in WINDOWS API, and provides an intermediary for data sharing between WINDOWS applications, and the established cut (copy) -paste mechanism of WINDOWS provides a shortcut for sharing data with different formats between different applications. When a user performs a cut or copy operation in an application, the application places the selected data on the clipboard in one or more formats. Any other application can then pick up data from the clipboard, selecting a format suitable for itself from the given formats.
The clipboard is a very loose exchange medium that can support any data format, each identified by an unsigned integer, whose value is a constant defined by the Win32 API for the standard (predefined) clipboard format; the non-standard Format can be registered as a new Clipboard Format using the Register Clipboard Format function. The data exchanged using the clipboard need only be consistent in data format or can all be converted to a certain format. However, the clipboard can only be used in Windows-based programs, and cannot be used on a network.
The ClipBoard (ClipBoard) is an area in the memory, is a very useful tool built in Windows, and a color bridge is erected through the small ClipBoard, so that information can be transferred and shared among various applications. However, the disadvantage is that the clipboard only holds one copy of data, and each time new data is entered, the old is overwritten.
Communication flow:
and (3) sending data:
(1) opening clipboard
(2) Emptying and occupying clipboard
(3) Putting data into the clipboard:
firstly, obtaining a heap memory Globlalloc
② locking the GlobaloLock of the heap memory and obtaining the first address of the heap memory
Third, put data SetClipboardData into clipboard
Releasing heap memory Globalenlock
(4) Closing clipboard
Receiving data:
(1) opening clipboard
(2) Checking data format in clipboard
(3) Obtaining data from the clipboard:
receiving data GetClipboardData
② obtaining address and locking memory by GlobaloLock
③ using GlobaalUnlock to unlock the memory
(4) Closing clipboard
In particular, the local target application may be a browser or a wechat applet; the application system server can be an online banking system server; the business process request may be one or more of a certificate login, a form signature, and a certificate binding.
According to a specific application scenario of the application, a user can perform inter-process communication with a second process corresponding to a clipboard through a first process corresponding to a browser or a WeChat applet, so that target resource content is obtained, and the obtained target resource content is fed back to an online banking system server (application system server) to perform service handling.
The embodiment of the application provides a data transmission method based on a clipboard, wherein a first process corresponding to a local target application program sends a service processing request to an application system server, and the application system server is used for determining an interprocess communication mode as a clipboard communication mode and resource request content based on the service processing request and feeding back the determined interprocess communication mode and the resource request content to the first process corresponding to the local target application program; a first process corresponding to the local target application program acquires target resource content from a second process corresponding to a clipboard program based on a clipboard communication mode, and sends the acquired target resource content to the application system server, wherein the application system server is used for determining a service processing result based on the acquired target resource content; and the first process corresponding to the local target application program receives the service processing result sent by the application system server. The interaction between a local target application program (namely a browser or a wechat applet) and a clipboard is realized through a clipboard communication mode of interprocess communication, so that target resource content is obtained, the problem that development amount is large due to the fact that different plug-ins need to be developed for different browsers to achieve the fact that the browser or the wechat applet locally obtains the resource content is solved, the problem that the program is complex due to the fact that the browser generally needs to be restarted to achieve the function of the plug-in is solved, and user experience can be improved.
Example two
The embodiment of the application provides a clipboard-based data transmission system, which comprises a first process corresponding to a local target application program, an application system server and a second process corresponding to a clipboard program; the method comprises the following steps:
the first process corresponding to the local target application program is used for sending a service processing request to an application system server;
the application system server is used for determining an inter-process communication mode as a clipboard communication mode and resource request content based on the service processing request, and feeding back the determined inter-process communication mode and the resource request content to a first process corresponding to the local target application program;
the first process corresponding to the local target application program is used for acquiring target resource content from a second process corresponding to a clipboard program based on a clipboard communication mode and sending the acquired target resource content to the application system server, and the application system server is used for determining a service processing result based on the acquired target resource content;
and the first process corresponding to the local target application program is used for receiving the service processing result sent by the application system server.
Wherein the local target application program is a browser or a wechat applet.
Wherein, the application system server is an online banking system server.
Wherein the business processing request can be one or more of certificate login, form signature and certificate binding.
Inter-process Communication (IPC) refers to data sharing and data exchange between different processes.
Specifically, a first process corresponding to the local target application program and a second process corresponding to the clipboard can interact based on an interprocess communication technology, so that data transmission is realized.
The clipboard (clipboard) is essentially a group of functions and messages used for transmitting data in WINDOWS API, and provides an intermediary for data sharing between WINDOWS applications, and the established cut (copy) -paste mechanism of WINDOWS provides a shortcut for sharing data with different formats between different applications. When a user performs a cut or copy operation in an application, the application places the selected data on the clipboard in one or more formats. Any other application can then pick up data from the clipboard, selecting a format suitable for itself from the given formats.
The clipboard is a very loose exchange medium that can support any data format, each identified by an unsigned integer, whose value is a constant defined by the Win32 API for the standard (predefined) clipboard format; the non-standard Format can be registered as a new Clipboard Format using the Register Clipboard Format function. The data exchanged using the clipboard need only be consistent in data format or can all be converted to a certain format. However, the clipboard can only be used in Windows-based programs, and cannot be used on a network.
The ClipBoard (ClipBoard) is an area in the memory, is a very useful tool built in Windows, and a color bridge is erected through the small ClipBoard, so that information can be transferred and shared among various applications. However, the disadvantage is that the clipboard only holds one copy of data, and each time new data is entered, the old is overwritten.
Communication flow:
and (3) sending data:
(1) opening clipboard
(2) Emptying and occupying clipboard
(3) Putting data into the clipboard:
firstly, obtaining a heap memory Globlalloc
② locking the GlobaloLock of the heap memory and obtaining the first address of the heap memory
Third, put data SetClipboardData into clipboard
Releasing heap memory Globalenlock
(4) Closing clipboard
Receiving data:
(1) opening clipboard
(2) Checking data format in clipboard
(3) Obtaining data from the clipboard:
receiving data GetClipboardData
② obtaining address and locking memory by GlobaloLock
③ using GlobaalUnlock to unlock the memory
(4) Closing clipboard
In a specific application scenario of the embodiment of the application, a user may perform inter-process communication with a first process corresponding to a browser or a wechat applet and a second process corresponding to a clipboard, so as to obtain target resource content, and feed the obtained target resource content back to an online banking system server (an application system server) for service handling.
The embodiment of the application provides a data transmission system based on a clipboard, wherein a first process corresponding to a local target application program sends a service processing request to an application system server, and the application system server is used for determining an interprocess communication mode as a clipboard communication mode and resource request content based on the service processing request and feeding back the determined interprocess communication mode and the resource request content to the first process corresponding to the local target application program; a first process corresponding to the local target application program acquires target resource content from a second process corresponding to a clipboard program based on a clipboard communication mode, and sends the acquired target resource content to the application system server, wherein the application system server is used for determining a service processing result based on the acquired target resource content; and the first process corresponding to the local target application program receives the service processing result sent by the application system server. The interaction between a local target application program (namely a browser or a wechat applet) and a clipboard is realized through a clipboard communication mode of interprocess communication, so that target resource content is obtained, the problem that development amount is large due to the fact that different plug-ins need to be developed for different browsers to achieve the fact that the browser or the wechat applet locally obtains the resource content is solved, the problem that the program is complex due to the fact that the browser generally needs to be restarted to achieve the function of the plug-in is solved, and user experience can be improved. It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.
Claims (8)
1. A clipboard-based data transmission method is applied to a local target application program and comprises the following steps:
the first process corresponding to the local target application program sends a service processing request to an application system server, and the application system server is used for determining that an inter-process communication mode is a clipboard communication mode and resource request content based on the service processing request and feeding back the determined inter-process communication mode and the resource request content to the first process corresponding to the local target application program;
a first process corresponding to the local target application program acquires target resource content from a second process corresponding to a clipboard program based on a clipboard communication mode, and sends the acquired target resource content to the application system server, wherein the application system server is used for determining a service processing result based on the acquired target resource content;
and the first process corresponding to the local target application program receives the service processing result sent by the application system server.
2. The method of claim 1, wherein the local target application is a browser or a wechat applet.
3. The method of claim 1 or 2, wherein the application system server is an online banking system server.
4. The method of claim 3, wherein the business process request can be one or more of a certificate login, a form signature, and a certificate binding.
5. A clipboard-based data transmission system is characterized by comprising a first process corresponding to a local target application program, an application system server and a second process corresponding to a clipboard program; the method comprises the following steps:
the first process corresponding to the local target application program is used for sending a service processing request to an application system server;
the application system server is used for determining an inter-process communication mode as a clipboard communication mode and resource request content based on the service processing request, and feeding back the determined inter-process communication mode and the resource request content to a first process corresponding to the local target application program;
the first process corresponding to the local target application program is used for acquiring target resource content from a second process corresponding to a clipboard program based on a clipboard communication mode and sending the acquired target resource content to the application system server, and the application system server is used for determining a service processing result based on the acquired target resource content;
and the first process corresponding to the local target application program is used for receiving the service processing result sent by the application system server.
6. The system of claim 5, wherein the local target application is a browser or a wechat applet.
7. The system of claim 5 or 6, wherein the application system server is an online banking system server.
8. The system of claim 7, wherein the business process request can be one or more of a certificate login, a form signature, and a certificate binding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010416079.1A CN111737024A (en) | 2020-05-16 | 2020-05-16 | Data transmission method and system based on clipboard |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010416079.1A CN111737024A (en) | 2020-05-16 | 2020-05-16 | Data transmission method and system based on clipboard |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111737024A true CN111737024A (en) | 2020-10-02 |
Family
ID=72647330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010416079.1A Pending CN111737024A (en) | 2020-05-16 | 2020-05-16 | Data transmission method and system based on clipboard |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111737024A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113656193A (en) * | 2021-08-11 | 2021-11-16 | 挂号网(杭州)科技有限公司 | Application communication method, system, electronic equipment and storage medium |
-
2020
- 2020-05-16 CN CN202010416079.1A patent/CN111737024A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113656193A (en) * | 2021-08-11 | 2021-11-16 | 挂号网(杭州)科技有限公司 | Application communication method, system, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10299113B1 (en) | Switching mobile service provider using blockchain | |
AU2014268241C1 (en) | Systems and methods for event driven object management and distribution among multiple client applications | |
WO2018188437A1 (en) | Multi-tenant data isolation method, device and system | |
US9081948B2 (en) | Configurable smartcard | |
US6665867B1 (en) | Self-propagating software objects and applications | |
US8122490B2 (en) | Transfer server of a secure system for unattended remote file and message transfer | |
US20050086298A1 (en) | Secure web server system for unattended remote file and message transfer | |
US7565422B2 (en) | Transfer client of a secure system for unattended remote file and message transfer | |
KR101815235B1 (en) | System, method and computer program for data scrapping | |
CN106101179B (en) | Resource processing method, device and system | |
CN1474986A (en) | System and method for providing supervision of plurality of financial services terminals | |
JP6707586B2 (en) | Data scraping system, method, and computer program using script engine | |
CN102707985A (en) | Access control method and system for virtual machine system | |
KR20190124630A (en) | System, method and computer program for data scrapping using script engine | |
US20050066012A1 (en) | Transfer client of a secure system for unattended remote file and message transfer | |
CA2522754A1 (en) | Secure messaging center | |
US7584277B2 (en) | Transfer server of a secure system for unattended remote file and message transfer | |
CN112669157A (en) | Transaction method, device and system based on block chain and readable storage medium | |
CN111737024A (en) | Data transmission method and system based on clipboard | |
US20080243585A1 (en) | Implementing meeting moderator failover and failback | |
CN111638977A (en) | Data transmission method and system based on mail slot | |
JP2003509746A (en) | System and method for providing certificate verification and other services | |
CN111638976A (en) | Data transmission method and system based on shared memory | |
KR102634677B1 (en) | Method for exchanging asset between compatible blockchain networks | |
JP2007299328A (en) | Calculation processing method and calculation processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |