Cross-platform interaction method and system of desktop software in software platform
By building the host service process on the server, embedding the desktop software interface and sending screenshots to the client to display and operate, the problem of cross-platform display and operation is solved, and user experience and security are improved.
Patent Information
- Application Number
- CN202510846108.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2025-05-15
- Filing Date
- 2025-06-23
- Publication Date
- 2025-08-15
AI Technical Summary
The existing technology cannot effectively solve the problem of displaying and operating arbitrary running windows across platforms, resulting in poor user experience, permission conflicts and reduced security.
By building an independent host service process on the server, providing HTTP hypertext transmission protocol service, embed the running interface of the desktop software into the sub-window of the software platform, and setting a screenshot buffer for the sub-window, sending screenshots to the client to display and operate.
It realizes unified management and operation across platforms, improves user access convenience and consistency, and avoids permission conflicts and security risks.
Smart Images

Figure HDA0005464386470000011 
Figure HDA0005464386470000021 
Figure HDA0005464386470000022
Abstract
Description
[0001] This application is based upon and claims the benefit of priority from Chinese Patent Application No. 202510105447.3, filed on January 23, 2025, and Chinese Patent Application No. 2025106282989, filed on May 15, 2025. The entire contents of the above applications are incorporated herein by reference. Technical Field
[0002] The present invention belongs to software deployment technology, and in particular relates to a cross-platform interaction method and system for desktop software in a software platform. Background Art
[0003] Modern software platforms typically include multiple functional windows and user interfaces with varying permissions. When executing co-simulation tasks, the software platform needs to embed the co-simulation software interface into a subwindow within the software platform to enable unified management of the software lifecycle. Furthermore, multiple users need to access the software platform's windows on different platforms to perform various operations, such as viewing test reports on a mobile phone, modifying simulation model parameters on a laptop, or changing calibration parameters on an onboard computer. This requires the software platform to be able to simultaneously map and operate multiple windows across different platforms.
[0004] The current mainstream solution is to use universal remote control software, allowing users to remotely log in to the computer hosting the software platform to view and operate it. However, this solution has the following drawbacks:
[0005] 1. Login requires that the software platform interface be displayed and placed in the foreground: This requirement causes the software platform interface to monopolize the display, obscuring other running software on the desktop and affecting the user experience.
[0006] 2. Interference when multiple users log in at the same time: When multiple users log in at the same time, the computer's mouse and keyboard operations interfere with each other, which can easily lead to data input errors, thereby affecting work efficiency and accuracy.
[0007] 3. Remote control requires the computer to be unlocked: The use of remote software usually requires the computer to be unlocked, which increases the risk of data leakage and reduces the security of the platform.
[0008] 4. Unable to divide permissions: There are multiple windows with different permissions within the software platform, and existing technologies cannot effectively divide different permissions for each user, resulting in permission conflicts and security risks when users operate.
[0009] Therefore, the existing technology has a technical problem that the software platform embedded with the joint simulation software interface cannot solve the problem of displaying and operating any running window across platforms.
[0010] It should be noted that the above information disclosed in this background technology section is only used to understand the background technology of the present application concept, and therefore, it is not considered that the above description constitutes information of the prior art. Summary of the Invention
[0011] The purpose of the present invention is to provide a cross-platform interaction method and system for desktop software in a software platform.
[0012] In order to solve the above technical problems, the present invention provides a cross-platform interaction method of desktop software in a software platform, comprising:
[0013] The software platform is used as a server, and an independent host service process is built on the server, wherein the host service process provides HTTP hypertext transfer protocol services;
[0014] The host service process displays the running interface of the desktop software in the sub-window position area of the interface frame set by the host service process;
[0015] The host service process further sets a screenshot buffer for the sub-window to save the screenshot of the sub-window, and sends the screenshot of the sub-window to the client to be displayed and published on the client through a web page;
[0016] When a screenshot of a web page display is triggered, the host service process obtains the triggering behavior through the client to perform an operation on the running interface corresponding to the screenshot.
[0017] In another aspect, the present invention further provides a cross-platform interactive system, comprising: a first computer device and a second computer device;
[0018] The first computer device is configured to include:
[0019] A host service process is configured to provide HTTP hypertext transfer protocol services and display the running interface of the desktop software in a sub-window position area of the interface frame set by the host service process;
[0020] The host service process is further configured to set a screenshot buffer for the sub-window to save the screenshot of the sub-window, and send the screenshot of the sub-window to the client to be displayed and published on the client through a web page;
[0021] When a screenshot of a web page display is triggered, the host service process obtains the triggering behavior through the client to perform an operation on the running interface corresponding to the screenshot; and
[0022] The second computer device is configured to include:
[0023] The client is configured to receive a screenshot of the sub-window sent from the host service process, display and publish it through a web page, and send a triggering action of the screenshot displayed on the web page to the host service process.
[0024] In a third aspect, the present invention further provides a readable storage medium storing computer-readable instructions, which, when executed by at least one processor, enables the cross-platform interaction method as described above to be executed.
[0025] In a fourth aspect, the present invention further provides an electronic device comprising: at least one memory and at least one processor, wherein the memory stores executable instructions, and when the executable instructions are executed by the processor, the processor executes the cross-platform interaction method as described above.
[0026] In a fifth aspect, the present invention further provides a computer program product, comprising a program or instructions, wherein when the program or instructions are executed on a computer, the cross-platform interaction method as described above is executed.
[0027] The beneficial effect of the present invention is that the cross-platform interaction method of the desktop software in the software platform of the present invention embeds the running interface of the desktop software into the software platform through the host service process of the server, and maps the software platform embedded with the running interface of the desktop software to different user platforms, while realizing cross-platform interaction and operation. Using this method, users can access the software platform embedded with the running interface of the desktop software through any terminal, such as a mobile phone, tablet, work computer, etc., to realize unified management of various desktop software and software platforms. For the terminal as the client, as long as there is a browser, it can participate in the control of the running window of the corresponding function of each desktop software, which effectively improves the convenience and consistency of access to the functions of each desktop software.
[0028] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description and the drawings.
[0029] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0031] Figure 1 A diagram showing the steps of a cross-platform interaction method of desktop software in a software platform according to some embodiments;
[0032] Figure 2 A schematic diagram of a web page generated locally on a server by a host service process in a case involved in some embodiments is shown;
[0033] Figure 3 A schematic diagram showing a case in which a sub-window Upgrader displays the running interface of the desktop software "TSMasterUpgrader.exe" nested within the sub-window Upgrader is shown;
[0034] Figure 4 A schematic diagram of a web page opened by a client through a browser in a case involved in some embodiments is shown;
[0035] Figure 5 A schematic diagram shows the result of pressing the "Manually Check for Updates" button in the running interface of the desktop software when the user presses the "Manually Check for Updates" button in the web version in a case involved in some embodiments;
[0036] Figure 6 Schematic diagrams of the sub-window J1939-71 and the sub-window TSMaster UserManual in cases involved in some embodiments are shown;
[0037] Figure 7 A schematic diagram showing a case in which a web page including a list of sub-windows is displayed and published on a client in some embodiments;
[0038] Figure 8 A schematic diagram showing a case in which a client displays and publishes a sub-window J1939-71 and a sub-window TSMaster User Manual screenshot via a web page in some embodiments;
[0039] Figure 9 A schematic diagram of a screenshot showing the memory space DisplayBuffer stored in an application in a case involved in some embodiments is shown;
[0040] Figure 10 Schematic diagram of screenshots stored in the temporary memory space TempBuffer in cases involved in some embodiments;
[0041] Figure 11 A schematic diagram of a screenshot showing a case in which a client displays and publishes an updated sub-window via a corresponding web page in some embodiments;
[0042] Figure 12A schematic diagram illustrating a user's request to scroll down with a mouse in a PDF file in a case according to some embodiments is shown;
[0043] Figure 13 A schematic diagram of a remote configuration interface of a host service process in cases involved in some embodiments is shown;
[0044] Figure 14 A schematic diagram showing a case in which a host service process creates a session module corresponding to a web page according to an access request, guides a user to a login page, and requires the user to enter a user name and password to log in, according to some embodiments;
[0045] Figure 15 A schematic diagram showing a case in which the admin user can access all windows except "TSMaster WebServer" according to some embodiments;
[0046] Figure 16 A schematic diagram showing a case in which a user can access the "Global Control" and "J1939-71" windows according to some embodiments;
[0047] Figure 17 A block diagram showing a cross-platform interactive system principle of desktop software in a software platform according to some embodiments is shown;
[0048] Figure 18 shows a principle block diagram of an electronic device involved in some embodiments;
[0049] Figure 19 A functional block diagram of an electronic device involved in some embodiments is shown. DETAILED DESCRIPTION
[0050] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0051] Therefore, at least one embodiment provides a cross-platform interaction method for desktop software in a software platform, including:
[0052] The software platform is used as a server, and an independent host service process is built on the server, wherein the host service process provides HTTP hypertext transfer protocol services;
[0053] The host service process displays the running interface of the desktop software in the sub-window position area of the interface frame set by the host service process;
[0054] The host service process further sets a screenshot buffer for the sub-window to save the screenshot of the sub-window, and sends the screenshot of the sub-window to the client to be displayed and published on the client through a web page;
[0055] When a screenshot of a web page display is triggered, the host service process obtains the triggering behavior through the client to perform an operation on the running interface corresponding to the screenshot.
[0056] The cross-platform interaction method of this desktop software in the software platform embeds the running interface of the desktop software into the software platform through the host service process of the server, and maps the software platform embedded with the running interface of the desktop software to different user platforms, while realizing cross-platform interaction and operation, and being able to divide different window functions according to user permissions. Using this method, users can access the software platform embedded with the running interface of the desktop software through any terminal, such as mobile phones, tablets, work computers, etc., to realize unified management of various desktop software and software platforms. For the terminal as the client, as long as there is a browser, it can participate in the control of the running window of the corresponding function of each desktop software, which effectively improves the convenience and consistency of access to the functions of each desktop software.
[0057] Various non-limiting implementations of the embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0058] like Figure 1 As shown, some embodiments provide a cross-platform interaction method for desktop software in a software platform, including:
[0059] Step S101: Using the software platform as a server, an independent host service process is constructed on the server, and the host service process provides HTTP hypertext transfer protocol services;
[0060] Step S102: the host service process displays the running interface of the desktop software in a sub-window position area of the interface frame set by the host service process;
[0061] Step S103: the host service process further sets a screenshot buffer for the sub-window to save the screenshot of the sub-window, and sends the screenshot of the sub-window to the client to be displayed and published on the client through a web page;
[0062] Step S104: When the screenshot of the web page display is triggered, the host service process obtains the triggering behavior through the client to perform the operation of the running interface corresponding to the screenshot.
[0063] Specifically, an independent host service process means that the host service process can run independently, such as an executable file with the exe suffix in Windows, which can be executed by double-clicking without being loaded and executed through another program.
[0064] Specifically, the publishing refers to the host service process starting the HTTP hypertext transfer protocol service and starting to listen to the HTTP port.
[0065] Specifically, the server end in this embodiment is, for example but not limited to, a computer device end that carries a self-developed software platform with similar functions to Mathworks' Matlab software platform, or a self-developed automotive tool chain with similar functions to Vector's CANoe software.
[0066] Specifically, desktop software refers to application software installed and running on the desktop of a personal computer (such as a desktop or laptop). The desktop software in this embodiment refers to software used to execute specific commands or implement specific functions, such as vehicle dynamics simulation software, office software (Word, Excel) for document editing and data processing, image processing software (Photoshop) for image design and editing, etc.
[0067] Specifically, the interactivity between different desktop software programs is generally weak, requiring users to manually switch and transfer data between them. A software platform, on the other hand, is a more comprehensive and open system. It provides an infrastructure and environment that allows developers to develop a wide variety of applications or services, offering strong scalability and compatibility. For example, the Windows operating system is a software platform that supports a wide range of software, including office software, games, and design software. It also provides unified interfaces and services to facilitate interaction between software and hardware, and between software itself.
[0068] The cross-platform interaction in this embodiment refers to the interaction between desktop software and the software platform.
[0069] The following examples explain in detail the cross-platform interaction method of desktop software in the software platform:
[0070] In this case, the TSMaster software platform is used as the server. An independent host service process TSMaster64.exe is built on the server. The host service process provides HTTP hypertext transfer protocol service through port 9018. Users can open the browser on any device that can browse the web and enter "http: / / localhost:9018 / " in the address bar to open the server. Figure 2 The web page shown.
[0071] The host service process displays the running interface of the desktop software in the sub-window position area of the interface frame set by the host service process, such as Figure 3 As shown, the running interface of the desktop software "TSMasterUpgrader.exe" is nested in the sub-window Upgrader.
[0072] The host service process sets a screenshot buffer for the sub-window Upgrader to save the screenshot of the sub-window and sends the screenshot of the sub-window to the client to be displayed and published on the client through a web page. When the user opens the web page through a browser, he will see the screenshot window published by the web page, such as Figure 4 shown.
[0073] When the user clicks the mouse or presses a key on the web page window, a screenshot of the web page display will be triggered. The host service process obtains the triggering behavior through the client to perform the operation of the running interface corresponding to the screenshot. For example, when the user clicks the "Manually Check for Updates" button on the web page, the host service process obtains the button press event and automatically performs a click operation on the corresponding button in the running interface of the desktop software "TSMasterUpgrader.exe", such as Figure 5 As shown, when the "Manually Check for Updates" button on the web version is pressed by the user, the "Manually Check for Updates" button in the running interface of the desktop software is also pressed.
[0074] In some embodiments, when there are N sub-windows, they correspond to multiple running interfaces of the desktop software respectively; the host service process obtains relevant information of each sub-window, and generates a web page containing a list of each sub-window based on the relevant information, so as to display and publish the web page containing the list of each sub-window on the client; the selected sub-window is fed back to the host service process, and the host service process sets a screenshot buffer for the selected sub-window respectively to save a screenshot of each sub-window respectively, and sends the screenshot of each sub-window to the client, and then displays and publishes it respectively through the web page on the client.
[0075] For example, in some embodiments, there are two sub-windows, corresponding to multiple operating interfaces of the external PDF viewer software: J1939-71 and TSMaster User Manual, such as Figure 6 shown.
[0076] The host service process obtains the relevant information of each sub-window, generates a web page containing a list of each sub-window according to the relevant information, and displays and publishes the web page containing the list of each sub-window on the client, such as Figure 7As shown, the client displays a web page containing a list of sub-windows J1939-71 and TSMaster User Manual. If the user selects both sub-windows at the same time, the selected sub-windows are fed back to the host service process. The host service process sets up screenshot buffers for the selected sub-windows J1939-71 and TSMaster User Manual respectively to save screenshots of the two sub-windows, and sends the screenshots of the two sub-windows to the client, which then displays and publishes them separately on the client through the web page. Figure 8 shown.
[0077] In some embodiments, the cross-platform interaction method of desktop software in the software platform also includes: the host service process applies for memory space and sets an update flag on the server side according to the size information of the sub-window, and stores the screenshot of the sub-window in the applied memory space; the host service process obtains the screenshot of the sub-window in a first cycle and stores it in a temporary memory space; compares whether the size of the applied memory space is the same as that of the temporary memory space to determine whether the screenshot of the sub-window needs to be updated; if they are different, the screenshot saved in the temporary memory space overwrites the original screenshot in the applied memory space; and the client obtains the update flag from the server side in a second cycle. If an update is found, the screenshot in the applied memory space is obtained from the server side, so as to display and publish the updated screenshot of the sub-window on the client side through the corresponding web page.
[0078] Specifically, the temporary memory space refers to a space used for comparing screenshot images. After the comparison, the space is recycled and the content in the temporary memory space is discarded.
[0079] In some embodiments, the relevant information of the sub-window includes: window location information, class name, and name.
[0080] Taking the sub-window J1939-71 as an example, the host service process applies for the memory space DisplayBuffer and sets the update flag UpdatedToken on the server side according to the width, height, and PPI (pixels per inch) information of the J1939-71 sub-window, and stores the screenshot of the sub-window J1939-71 in the applied memory space DisplayBuffer. Assume that Figure 9 The screenshot shown is stored in the requested memory space; the host service process obtains the screenshot of the sub-window J1939-71 in the first cycle and stores it in a temporary memory space TempBuffer. Assume that Figure 10The screenshot shown is stored in the temporary memory space TempBuffer. Compare the size and content of the requested memory space DisplayBuffer with the temporary memory space TempBuffer to determine whether the screenshot of the sub-window J1939-71 needs to be updated. If they are the same, no update is required; if they are different, the screenshot saved in the temporary memory space TempBuffer will overwrite the original screenshot in the requested memory space DisplayBuffer. Figure 10 As shown in the figure, the PDF file in the sub-window J1939-71 has changed in display due to scrolling of the wheel. Then the screenshot saved in the temporary memory space TempBuffer overwrites the original screenshot in the applied memory space DisplayBuffer, that is, the content stored in the applied memory space DisplayBuffer is as follows: Figure 10 As shown in the screenshot, when the client obtains the update flag from the server in the second cycle and finds that there is an update, it obtains the updated screenshot of the requested memory space DisplayBuffer from the server, so as to display and publish the updated screenshot of the sub-window on the client through the corresponding web page, as shown in FIG. Figure 11 shown.
[0081] In some embodiments, when a screenshot displayed on a web page is triggered, the host service process obtains the triggering behavior to execute the operation of the running interface corresponding to the screenshot. The method includes: the host service process feeds back the trigger position or triggering instruction on the web page to the screenshot of the sub-window in the host service process based on the obtained triggering behavior, and maps the triggering behavior to the running interface to execute the corresponding operation.
[0082] Still taking the sub-window J1939-71 as an example, when the user scrolls the PDF file with the mouse wheel on the web page to view the content downward, the screenshot displayed on the web page is triggered by the mouse wheel, and the host service process obtains the scrolling distance WheelDelta = -120 of the mouse wheel and the position of the mouse MousePos = (350, 120). The host service process feeds back the mouse wheel behavior and the position of the mouse to the screenshot of the sub-window J1939-71 in the host service process, that is, sets the mouse position to the coordinate point with offset x = 350 and offset y = 120 in the screenshot, and simulates the mouse wheel scrolling down distance = 120, and maps it to the PDF file, thereby realizing the user's request to scroll the mouse down in the PDF file, as shown in FIG. Figure 12 shown.
[0083] In some embodiments, the host service process obtains relevant information of each sub-window, generates a web page containing a list of each sub-window based on the relevant information, and displays and publishes the web page containing the list of each sub-window on the client. The method includes: the client sends a web page access request to the host service process; the host service process creates a session module for the corresponding web page based on the access request; the session module filters the sub-window list of the host service process based on the permission information, so as to display and publish the filtered sub-window list.
[0084] The following describes in detail a method in which a client sends a webpage access request to a host service process; the host service process creates a session module corresponding to the webpage according to the access request; and the session module filters a subwindow list of the host service process according to permission information to display and publish the filtered subwindow list:
[0085] In the remote configuration interface of the host service process, check the "Activate User Permissions" function to edit the user list and user permission control list. In the user list, you can add or remove users and configure the password for each user; in the user permission control list, each window will be displayed, and you can check the accessibility of each user to the window on the right. For example, only allow the user user to access the "J1939-71" and "TSMaster User Manual" windows, and allow the admin user to access all windows except the "TSMaster Web Server" window. Figure 13 shown.
[0086] When the host service process is built, the host service process can obtain all pre-configured user permission information. When the user logs in through a web page, the host service process creates a session module corresponding to the web page according to the access request, guides the user to the login page, and enters the user name and password to log in, such as Figure 14 shown.
[0087] After the user successfully logs in, the session module will obtain the current user's name and the user's permission configuration. If the user logs in as the admin user, the session module will filter the sub-window list of the host service process based on the user's permission information and display the filtered sub-window list on the client. According to the permission configuration, the user will be able to access all windows except "TSMaster WebServer". Figure 15 shown.
[0088] If you log in as user, according to the permission configuration, the user will only be able to access the "GlobalControl" and "J1939-71" windows, where "Global Control" is a window list, such as Figure 16 shown.
[0089] like Figure 17 As shown, some embodiments further provide a cross-platform interactive system, comprising: a first computer device and a second computer device;
[0090] The first computer device is configured to include:
[0091] A host service process is configured to provide HTTP hypertext transfer protocol services and display the running interface of the desktop software in a sub-window position area of the interface frame set by the host service process;
[0092] The host service process is further configured to set a screenshot buffer for the sub-window to save the screenshot of the sub-window, and send the screenshot of the sub-window to the client to be displayed and published on the client through a web page;
[0093] When a screenshot of a web page display is triggered, the host service process obtains the triggering behavior through the client to perform an operation on the running interface corresponding to the screenshot; and
[0094] The second computer device is configured to include:
[0095] The client is configured to receive a screenshot of the sub-window sent from the host service process, display and publish it through a web page, and send a triggering action of the screenshot displayed on the web page to the host service process.
[0096] The specific implementation functions of the host service process and the client are implemented in the first and second computer devices. For details, please refer to the cross-platform interaction method of the aforementioned desktop software in the software platform, which will not be repeated here.
[0097] The electronic device in the embodiment of the present disclosure is described below from the perspective of hardware processing:
[0098] The embodiments of the present disclosure do not limit the specific implementation of the electronic device.
[0099] like Figure 18 As shown, some embodiments further provide an electronic device comprising: a processor, a readable storage medium, a communication bus, and a communication interface; wherein the processor, the readable storage medium, and the communication interface communicate with each other via the communication bus; the readable storage medium is used to store a program for executing the cross-platform interaction method of the desktop software in the software platform, and the program enables the processor to execute operations corresponding to the cross-platform interaction method.
[0100] like Figure 19 As shown, some embodiments further provide an electronic device, including:
[0101] A processor, a display communicating with the processor to present a web page, and a readable storage medium; wherein
[0102] The readable storage medium is configured to store an instruction program;
[0103] The processor is configured to execute the program of instructions to perform the following operations:
[0104] The software platform is used as a server, and an independent host service process is built on the server, wherein the host service process provides HTTP hypertext transfer protocol services;
[0105] The host service process displays the running interface of the desktop software in the sub-window position area of the interface frame set by the host service process;
[0106] The host service process further sets a screenshot buffer for the sub-window to save the screenshot of the sub-window, and sends the screenshot of the sub-window to the client to be displayed and published on the client through a web page;
[0107] When a screenshot of a web page display is triggered, the host service process obtains the triggering behavior through the client to perform an operation on the running interface corresponding to the screenshot; and
[0108] The display is configured to display the corresponding sub-window.
[0109] In some embodiments, a computer device or an industrial computer can also be used as a type of electronic device.
[0110] Figure 18 and Figure 19 The structure shown does not limit the electronic device and may include fewer or more components than shown in the figure, or combine some components, or arrange the components differently.
[0111] In some embodiments, the communication interface may be an RS232, RS485, USB port, or TYPE port, which may be connected to an external bus adapter. It may also include a wired or wireless network interface. The network interface may optionally include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is typically used to establish a communication connection between the computer device and other electronic devices.
[0112] In some embodiments, the readable storage medium or computer-readable storage medium includes at least one type of memory, including flash memory, hard disk, multimedia card, card-type memory (such as SD memory, etc.), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, it can be an internal storage unit of a computer device, such as the hard disk of the computer device. In other embodiments, the memory can also be an external storage device of the computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Furthermore, the memory can also include both an internal storage unit of the computer device and an external storage device. The memory can be used not only to store application software and various types of data installed in the computer device, such as computer program code, but also to temporarily store data that has been output or is to be output.
[0113] In some embodiments, the processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip, used to run program codes stored in a memory or process data, such as executing a computer program.
[0114] In some embodiments, the communication bus may also be an input / output bus, which may be a Peripheral Component Interconnect (PCI) bus or an Enhanced Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc.
[0115] Optionally, the computer device may further include a user interface, which may include a display and an input unit such as a keyboard. Optionally, the user interface may also include a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display may also be appropriately referred to as a display screen or a display unit, and is used to display information processed by the computer device and to display web pages.
[0116] When the processor executes the program, the above Figure 1 The steps in the embodiment of the cross-platform interaction method of the desktop software in the software platform shown are, for example Figure 1Alternatively, when the processor executes the computer program, the functions of the modules or units in the above-mentioned device embodiments are realized.
[0117] Some embodiments further provide a readable storage medium storing computer-readable instructions that, when executed by at least one processor, cause a cross-platform interaction method for desktop software in a software platform to be executed; the cross-platform interaction method for desktop software in a software platform includes: using the software platform as a server, constructing an independent host service process on the server, the host service process providing HTTP hypertext transfer protocol services;
[0118] The host service process displays the running interface of the desktop software in the sub-window position area of the interface frame set by the host service process;
[0119] The host service process further sets a screenshot buffer for the sub-window to save the screenshot of the sub-window, and sends the screenshot of the sub-window to the client to be displayed and published on the client through a web page;
[0120] When a screenshot of a web page display is triggered, the host service process obtains the triggering behavior through the client to perform an operation on the running interface corresponding to the screenshot.
[0121] Some embodiments further provide a computer-readable storage medium storing computer-readable instructions, which, when executed by at least one processor, enable the cross-platform interaction method described above to be executed, specifically:
[0122] The software platform is used as a server, and an independent host service process is built on the server, wherein the host service process provides HTTP hypertext transfer protocol services;
[0123] The host service process displays the running interface of the desktop software in the sub-window position area of the interface frame set by the host service process;
[0124] The host service process further sets a screenshot buffer for the sub-window to save the screenshot of the sub-window, and sends the screenshot of the sub-window to the client to be displayed and published on the client through a web page;
[0125] When a screenshot of a web page display is triggered, the host service process obtains the triggering behavior through the client to perform an operation on the running interface corresponding to the screenshot.
[0126] Please refer to the detailed description of the cross-platform interaction method of desktop software in the software platform, which will not be repeated here.
[0127] Some embodiments further provide a computer program product, including a program or instructions, wherein when the program or instructions are executed on a computer, a cross-platform interaction method of desktop software in a software platform is executed; the cross-platform interaction method of desktop software in a software platform includes: using the software platform as a server, building an independent host service process on the server, and the host service process providing HTTP hypertext transfer protocol services;
[0128] The host service process displays the running interface of the desktop software in the sub-window position area of the interface frame set by the host service process;
[0129] The host service process further sets a screenshot buffer for the sub-window to save the screenshot of the sub-window, and sends the screenshot of the sub-window to the client to be displayed and published on the client through a web page;
[0130] When a screenshot of a web page display is triggered, the host service process obtains the triggering behavior through the client to perform an operation on the running interface corresponding to the screenshot.
[0131] Some embodiments further provide a computer program product including a readable storage medium having readable program code stored thereon, the readable program code including instructions that cause at least one processor (one or more computer devices) to perform the following operations:
[0132] The software platform is used as a server, and an independent host service process is built on the server, wherein the host service process provides HTTP hypertext transfer protocol services;
[0133] The host service process displays the running interface of the desktop software in the sub-window position area of the interface frame set by the host service process;
[0134] The host service process further sets a screenshot buffer for the sub-window to save the screenshot of the sub-window, and sends the screenshot of the sub-window to the client to be displayed and published on the client through a web page;
[0135] When a screenshot of a web page display is triggered, the host service process obtains the triggering behavior through the client to perform an operation on the running interface corresponding to the screenshot.
[0136] In some embodiments, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of the devices, methods, and embedded program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or part of a code, and the module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action.
[0137] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0138] If the functions are implemented as software modules and sold or used as independent products, they can be stored in a readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This embedded software product, stored in a storage medium, executes all or part of the steps of the methods described in various embodiments of the present invention.
[0139] With the above-described preferred embodiments of the present invention as a guide, and with reference to the above description, relevant personnel are fully capable of making various changes and modifications without departing from the technical scope of this invention. The technical scope of this invention is not limited to the contents of the specification and must be determined according to the scope of the claims.
Claims
1. A cross-platform interaction method, characterized in that: include: The software platform is used as a server, and an independent host service process is built on the server, wherein the host service process provides HTTP hypertext transfer protocol services; The host service process displays the running interface of the desktop software in the sub-window position area of the interface frame set by the host service process; The host service process further sets a screenshot buffer for the sub-window to save the screenshot of the sub-window, and sends the screenshot of the sub-window to the client to be displayed and published on the client through a web page; When a screenshot of a web page display is triggered, the host service process obtains the triggering behavior through the client to perform an operation on the running interface corresponding to the screenshot.
2. The cross-platform interaction method according to claim 1, characterized in that: include: When there are N sub-windows, they correspond to multiple running interfaces of the desktop software respectively; The host service process obtains relevant information of each sub-window, generates a webpage including a list of each sub-window according to the relevant information, and displays and publishes the webpage including the list of each sub-window on the client; The selected sub-windows are fed back to the host service process, and the host service process sets up screenshot buffers for the selected sub-windows to save screenshots of each sub-window respectively, and sends the screenshots of each sub-window to the client, which then displays and publishes them respectively through the web page on the client.
3. The cross-platform interaction method according to claim 2, characterized in that: Also includes: The host service process applies for memory space and sets an update flag on the server side according to the size information of the sub-window, and stores the screenshot of the sub-window in the applied memory space; The host service process obtains a screenshot of the sub-window in a first cycle and stores the screenshot in a temporary memory space; Compare the size of the requested memory space with the temporary memory space to see if they are the same, so as to determine whether the screenshot of the sub-window needs to be updated; If they are different, the screenshot saved in the temporary memory space will overwrite the original screenshot in the applied memory space; as well as The client obtains an update flag from the server in a second cycle. If an update is found, the client obtains the screenshot in the requested memory space from the server, and displays and publishes the updated screenshot of the sub-window on the client through a corresponding web page.
4. The cross-platform interaction method according to claim 3, characterized in that: When a screenshot of a webpage display is triggered, the host service process obtains the triggering behavior to perform an operation of taking a screenshot of the corresponding running interface, including: The host service process feeds back the trigger position or trigger instruction on the web page to the screenshot of the sub-window in the host service process according to the acquired trigger behavior, and maps the trigger behavior to the running interface to execute the corresponding operation.
5. The cross-platform interaction method according to claim 4, characterized in that: The relevant information of the sub-window includes: the position information, class name and name of the window.
6. The cross-platform interaction method according to claim 5, characterized in that: The method of the host service process obtaining relevant information of each sub-window and generating a webpage including a list of each sub-window according to the relevant information, so as to display and publish the webpage including the list of each sub-window on the client includes: The client sends a web page access request to the host service process; The host service process creates a session module corresponding to the web page according to the access request; The session module filters the sub-window list of the host service process according to the permission information to display and publish the filtered sub-window list.
7. A cross-platform interactive system, characterized in that: include: a first computer device and a second computer device; in The first computer device is configured to include: A host service process is configured to provide HTTP hypertext transfer protocol services and display the running interface of the desktop software in a sub-window position area of the interface frame set by the host service process; The host service process is further configured to set a screenshot buffer for the sub-window to save the screenshot of the sub-window, and send the screenshot of the sub-window to the client to be displayed and published on the client through a web page; When a screenshot of a web page display is triggered, the host service process obtains the triggering behavior through the client to perform an operation on the running interface corresponding to the screenshot; and The second computer device is configured to include: The client is configured to receive a screenshot of the sub-window sent from the host service process, display and publish it through a web page, and send a triggering action of the screenshot displayed on the web page to the host service process.
8. A readable storage medium storing computer-readable instructions, which, when executed by at least one processor, enables the cross-platform interaction method according to any one of claims 1 to 6 to be executed.
9. An electronic device, characterized in that: include: At least one memory and at least one processor, wherein the memory stores executable instructions, and when the executable instructions are executed by the processor, the processor executes the cross-platform interaction method according to any one of claims 1 to 6.
10. A computer program product comprising a program or an instruction, wherein when the program or the instruction is executed on a computer, the cross-platform interaction method according to any one of claims 1 to 6 is executed.