Method, device and system for remotely calling cloud desktop GUI application and medium

By designing process communication and middleware programs on the cloud desktop and remotely starting GUI applications, the problem that the cloud desktop cannot remotely command to awaken the user interface is solved, efficient automated operation is achieved, and the application scope of the cloud desktop is broadened.

CN120848964APending Publication Date: 2025-10-28FUJIAN MEIYUAN QIYUE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510922354.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2025-04-21
Filing Date
2025-07-04
Publication Date
2025-10-28

AI Technical Summary

Technical Problem

Existing cloud desktop GUI applications only support manual click-to-run and cannot be invoked through remote commands, which limits the in-depth application of cloud desktops.

Method used

Design process communication programs and middleware programs, remotely start GUI applications through PowerShell commands, and the middleware program automatically starts and displays the user interface.

Benefits of technology

It realizes remote and automated invocation of GUI applications, improves batch processing efficiency, reduces operation time and lowers the probability of errors. It is suitable for multi-person operations in e-commerce, remote office, online education and other fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120848964A_ABST
    Figure CN120848964A_ABST
Patent Text Reader

Abstract

The invention discloses a method, device and system for remotely calling a cloud desktop GUI application and a medium, and relates to the technical field of cloud desktops. The method comprises the following steps: installing a process communication program and a middleware program on a cloud desktop; the process communication program is used for receiving a command parameter transmitted by a powershell command, and then transmitting the command parameter to the middleware program; the middleware program is used for starting a corresponding GUI application according to a command parameter transmitted by the process communication program; the method comprises the following steps: creating a Powershell command at a local end, the Powershell command being used for starting a process communication program of a cloud desktop and transmitting command parameters, and then connecting the cloud desktop with a specified IP through an sshclient library to execute the Powershell command; and after the process communication program of the cloud desktop obtains the command parameter of the Powersel command, the command parameter is transmitted to the middleware program, so that the middleware program starts the corresponding GUI application according to the command parameter. According to the method and the device, the GUI application on the cloud desktop is aroused through the remote command, and the application range of the cloud desktop is greatly widened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cloud desktop technology, and in particular to a method, apparatus, system, and medium for remotely activating a cloud desktop GUI application. Background Technology

[0002] Cloud desktops are a virtualization solution based on cloud computing technology that moves a computer's operating system and applications from the local device to the cloud. With its flexibility, security, cost-effectiveness, and scalability, cloud desktops are becoming the preferred solution for an increasing number of enterprises and organizations.

[0003] However, currently, GUI applications (applications with graphical user interfaces) on cloud desktops only support displaying the user interface after being manually clicked to run. Remote command invocation runs in headless mode, so the application is launched in the background after the command is run, but the user interface is not displayed. The inability of users to see the interface will cause problems such as users being unable to operate, which seriously limits the in-depth application of cloud desktops. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a method, device, system and medium for remotely activating cloud desktop GUI applications. By designing process communication programs and middleware programs that run on the cloud desktop, the GUI applications on the cloud desktop can be activated by remote commands, which greatly expands the application scope of cloud desktops.

[0005] In a first aspect, the present invention provides a method for remotely activating a cloud desktop GUI application, comprising:

[0006] Install a process communication program and a middleware program on the cloud desktop; the process communication program is used to receive command parameters passed by PowerShell commands, and then pass the command parameters to the middleware program; the middleware program is a GUI program that starts automatically with the cloud desktop, and is used to launch the corresponding GUI application according to the command parameters passed by the process communication program.

[0007] Create a PowerShell command on the local machine. The PowerShell command is used to start the inter-process communication program of the cloud desktop and pass command parameters. Then, the PowerShell command is executed by connecting to the cloud desktop with the specified IP address through the sshclient library.

[0008] Once the cloud desktop's inter-process communication program obtains the command parameters of the PowerShell command, it passes the command parameters to the middleware program, which then launches the corresponding GUI application based on the command parameters.

[0009] Furthermore, the interface of the middleware program is set to be invisible.

[0010] Furthermore, the command parameters include the startup path of the GUI application or the name of the GUI application.

[0011] Furthermore, the command parameters also include parameters required by the GUI application.

[0012] Secondly, the present invention provides a device for remotely activating a cloud desktop GUI application, comprising:

[0013] The process installation module is used to install a process communication program and a middleware program on the cloud desktop. The process communication program is used to receive command parameters passed by PowerShell commands and then pass the command parameters to the middleware program. The middleware program is a graphical user interface program that starts automatically with the cloud desktop and is used to launch the corresponding GUI application according to the command parameters passed by the process communication program.

[0014] The remote execution module is used to create PowerShell commands on the local end. The PowerShell commands are used to start the cloud desktop's inter-process communication program and pass command parameters. Then, the PowerShell commands are executed by connecting to the cloud desktop with the specified IP address through the sshclient library.

[0015] The application initiation module, after the cloud desktop's process communication program obtains the command parameters of the powershel command, passes the command parameters to the middleware program, causing the middleware program to launch the corresponding GUI application according to the command parameters.

[0016] Furthermore, in the process installation module, the interface of the middleware program is set to be invisible.

[0017] Furthermore, in the remote execution module, the command parameters include the startup path of the GUI application or the name of the GUI application.

[0018] Furthermore, in the remote execution module, the command parameters also include parameters required by the GUI application.

[0019] Thirdly, the present invention provides a system for remotely activating a cloud desktop GUI application, including a local terminal and a cloud desktop;

[0020] Install a process communication program and a middleware program on the cloud desktop; the process communication program is used to receive command parameters passed by PowerShell commands, and then pass the command parameters to the middleware program; the middleware program is a GUI program that starts automatically with the cloud desktop, and is used to launch the corresponding GUI application according to the command parameters passed by the process communication program.

[0021] Create a PowerShell command on the local machine. The PowerShell command is used to start the inter-process communication program of the cloud desktop and pass command parameters. Then, the PowerShell command is executed by connecting to the cloud desktop with the specified IP address through the sshclient library.

[0022] Once the cloud desktop's inter-process communication program obtains the command parameters of the PowerShell command, it passes the command parameters to the middleware program, which then launches the corresponding GUI application based on the command parameters.

[0023] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.

[0024] The technical solutions provided in the embodiments of the present invention have at least the following technical effects:

[0025] By designing a process communication program and middleware program that run on a cloud desktop, the process communication program receives command parameters passed from PowerShell commands, then passes these parameters to the middleware program. The middleware program then launches the corresponding GUI application based on the passed command parameters, thus enabling the remote initiation of GUI applications on the cloud desktop via commands. In application scenarios requiring large-scale operations, compared to the current method of manually clicking to run and display the application interface, automating the initiation of GUI applications via commands is extremely fast, less prone to errors, and significantly improves batch processing efficiency. It has broad application prospects and can be applied to multiple fields such as multi-user e-commerce, remote office, online education, and remote gaming.

[0026] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0027] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0028] Figure 1 This is a flowchart of the method in Embodiment 1 of the present invention;

[0029] Figure 2 This is a schematic diagram illustrating the specific implementation process in Embodiment 1 of the present invention;

[0030] Figure 3 This is a schematic diagram of the device in Embodiment 2 of the present invention;

[0031] Figure 4This is a schematic diagram of the system framework in Embodiment 3 of the present invention;

[0032] Figure 5 This is a schematic diagram of the structure of the medium in Embodiment 4 of the present invention. Detailed Implementation

[0033] This invention provides a method, apparatus, system, and medium for remotely activating a cloud desktop GUI application. By designing a process communication program and middleware program that run on the cloud desktop, it enables the activation of GUI applications on the cloud desktop via remote commands, greatly expanding the application scope of the cloud desktop.

[0034] The overall concept of the technical solutions in the embodiments of the present invention is as follows:

[0035] The sshclient library executes remote commands to a cloud desktop with a specified IP address. These remote commands are used to assemble the parameters for launching the application. The cloud desktop receives command parameters from the powshell via a pre-installed inter-process communication program (MiddleMessage.exe process). A pre-installed middleware program communicates with the inter-process communication program (MiddleMessage.exe process) to obtain these command parameters and launch the corresponding GUI application. Since the middleware program has a user interface, the GUI application launched through it can display the user interface window correctly.

[0036] Example 1

[0037] This embodiment provides a method for remotely launching a cloud desktop GUI application, such as... Figure 1 As shown, including;

[0038] S1. Install a process communication program and a middleware program on the cloud desktop; the process communication program is used to receive command parameters passed by PowerShell commands and then pass the command parameters to the middleware program; the middleware program is a graphical user interface program that starts automatically with the cloud desktop and is used to launch the corresponding GUI application according to the command parameters passed by the process communication program.

[0039] S2. Create a PowerShell command on the local machine. The PowerShell command is used to start the cloud desktop's inter-process communication program and pass command parameters. Then, it connects to the cloud desktop with the specified IP address through the sshclient library to execute the PowerShell command.

[0040] S3. When the cloud desktop's process communication program obtains the command parameters of the powershel command, it passes the command parameters to the middleware program, which then starts the corresponding GUI application based on the command parameters.

[0041] Since the middleware program is a GUI program, after the corresponding GUI application is launched based on the command parameters obtained from the inter-process communication program, the GUI application can run and display the user interface.

[0042] Preferably, the middleware program's interface is set to be invisible. This can be achieved by hiding the middleware program's interface or setting the middleware program's interface to a very small area, so that it does not affect the desktop display while running.

[0043] Specifically, the command parameters include the startup path of the GUI application (e.g., D:\\qq\\qq.exe) or the name of the GUI application (e.g., notepad.exe). The middleware program can open the corresponding GUI application based on the startup path or the GUI application name.

[0044] In other implementations, besides opening the corresponding GUI application, the command parameters can also include parameters required by the GUI application, thereby enabling further functionality after opening the GUI application. For example, when launching the QQ application, the command parameters can include not only the QQ application's launch path but also the requirement to open a chat window with a specific number. Therefore, after the middleware program opens the QQ application, it will automatically open the chat window with the specified number. Similarly, when launching a store management application, the command parameters can include not only the store management application's launch path but also the IP information of one or more stores. Therefore, after the middleware program opens the store management application, it will also open the store page for the specified IP address. In short, the content included in the command parameters can be customized according to the needs of the launched GUI application to meet richer and more efficient batch automation processing requirements.

[0045] The following are the implementation steps of a specific embodiment, such as... Figure 2 As shown:

[0046] 1. Install the middleware program (for enabling GUI functionality) and MiddleMessage.exe (for inter-process communication) on the cloud desktop.

[0047] 2. Connect to a specified cloud desktop host and port using the sshclient library. For example: `var client = new SshClient('8.8.8.8', 32580, 'admin', '123456')` initializes a remote connection with IP address 8.8.8.8, port 32580, and username / password admin\123456. Similarly, you can connect to multiple cloud desktops using the sshclient library.

[0048] 3. Create a PowerShell command, for example, the C# command code is: string commandText = $"powershell.exe -Command\"Start-Process C:\\zhanfubrowser\\MiddleMessage.exe -ArgumentList'-path{path}'\""

[0049] Command description:

[0050] a.powershell.exe means to launch powershell.exe;

[0051] b. -Command indicates the command that needs to be executed by PowerShell;

[0052] c.\"Start-Process C:\\zhanfubrowser\\MiddleMessage.exe-ArgumentList'-path{path}'\"" represents the specific command executed by PowerShell, where:

[0053] d.Start-Process C:\\zhanfubrowser\\MiddleMessage.exe indicates that the MiddleMessage process is started;

[0054] e.-ArgumentList'-path{path}' indicates that the parameters accompanying the above process can be customized, such as the parameter-path D:\\qq\\qq.exe (which represents the startup path of the QQ application).

[0055] 4. Create and execute remote commands:

[0056] varcmd=client.CreateCommand(commandText)

[0057] cmd.Execute() / / Execute the command in step 3.

[0058] 5. The MiddleMessage.exe process, which is pre-installed on the cloud desktop, receives the PowerShell command sent in step 4 and passes the command parameters.

[0059] 6. MiddleMessage.exe receives command parameters (such as the startup path of QQ chat) through inter-process communication and passes the corresponding information to the middleware program.

[0060] 7. The intermediate program opens the corresponding GUI program based on the corresponding parameters.

[0061] Based on the same inventive concept, this application also provides an apparatus corresponding to the method in Embodiment 1, as detailed in Embodiment 2.

[0062] Example 2

[0063] This embodiment provides a device for remotely launching a cloud desktop GUI application, such as... Figure 3 As shown, it includes:

[0064] The process installation module is used to install a process communication program and a middleware program on the cloud desktop. The process communication program is used to receive command parameters passed by PowerShell commands and then pass the command parameters to the middleware program. The middleware program is a graphical user interface program that starts automatically with the cloud desktop and is used to launch the corresponding GUI application according to the command parameters passed by the process communication program.

[0065] The remote execution module is used to create PowerShell commands on the local end. The PowerShell commands are used to start the cloud desktop's inter-process communication program and pass command parameters. Then, the PowerShell commands are executed by connecting to the cloud desktop with the specified IP address through the sshclient library.

[0066] The application initiation module, after the cloud desktop's process communication program obtains the command parameters of the powershel command, passes the command parameters to the middleware program, causing the middleware program to launch the corresponding GUI application according to the command parameters.

[0067] Preferably, in the process installation module, the interface of the middleware program is set to be invisible.

[0068] Specifically, in the remote execution module, the command parameters include the startup path of the GUI application or the name of the GUI application.

[0069] Preferably, in the remote execution module, the command parameters also include parameters required by the GUI application.

[0070] Since the apparatus described in Embodiment 2 of the present invention is an apparatus used to implement the method of Embodiment 1 of the present invention, those skilled in the art can understand the specific structure and variations of the apparatus based on the method described in Embodiment 1 of the present invention, and therefore will not be described again here. All apparatuses used in the method of Embodiment 1 of the present invention fall within the scope of protection of the present invention.

[0071] Based on the same inventive concept, this application provides a system embodiment corresponding to Embodiment 1, as detailed in Embodiment 3.

[0072] Example 3

[0073] This embodiment provides a system for remotely launching a cloud desktop GUI application, including a local terminal and a cloud desktop, such as... Figure 4 As shown;

[0074] Install a process communication program and a middleware program on the cloud desktop; the process communication program is used to receive command parameters passed by PowerShell commands, and then pass the command parameters to the middleware program; the middleware program is a GUI program that starts automatically with the cloud desktop, and is used to launch the corresponding GUI application according to the command parameters passed by the process communication program.

[0075] Create a PowerShell command on the local machine. The PowerShell command is used to start the inter-process communication program of the cloud desktop and pass command parameters. Then, the PowerShell command is executed by connecting to the cloud desktop with the specified IP address through the sshclient library.

[0076] Once the cloud desktop's inter-process communication program receives the command parameters for the PowerShell command, it passes these parameters to the middleware program, which then launches the corresponding GUI application based on the command parameters.

[0077] Since the system described in this embodiment is the system used to implement the method in Embodiment 1 of this application, those skilled in the art can understand the specific implementation methods and various variations of the system in this embodiment based on the method described in Embodiment 1 of this application. Therefore, how the system implements the method in the embodiment of this application will not be described in detail here. Any system used by those skilled in the art to implement the method in the embodiment of this application falls within the scope of protection of this application.

[0078] Based on the same inventive concept, this application provides a storage medium corresponding to Embodiment 1, as detailed in Embodiment 4.

[0079] Example 4

[0080] This embodiment provides a computer-readable storage medium, such as... Figure 5 As shown, a computer program is stored thereon, which, when executed by a processor, can implement any of the embodiments in Example 1.

[0081] Since the computer-readable storage medium described in this embodiment is the same computer-readable storage medium used to implement the method in Embodiment 1 of this application, those skilled in the art can understand the specific implementation methods and various variations of the computer-readable storage medium in this embodiment based on the method described in Embodiment 1 of this application. Therefore, how this computer-readable storage medium implements the method in the embodiments of this application will not be described in detail here. Any computer-readable storage medium used by those skilled in the art to implement the method in the embodiments of this application falls within the scope of protection of this application.

[0082] This invention designs a process communication program and a middleware program that run on a cloud desktop. The process communication program receives command parameters from PowerShell commands, then passes these parameters to the middleware program. The middleware program then launches the corresponding GUI application based on the passed command parameters, thus enabling remote command-based GUI application activation on the cloud desktop. In application scenarios requiring large-scale operations, compared to the current method of manually clicking to run and display the application interface, automating GUI application activation via commands is extremely fast, less prone to errors, and significantly improves batch processing efficiency. It has broad application prospects and can be applied to multiple fields such as multi-user e-commerce, remote office, online education, and remote gaming.

[0083] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0084] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0085] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0086] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0087] While specific embodiments of the present invention have been described above, those skilled in the art should understand that the specific embodiments described are merely illustrative and not intended to limit the scope of the present invention. Equivalent modifications and variations made by those skilled in the art in accordance with the spirit of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for remotely initiating a cloud desktop GUI application, characterized in that, include: Process installation process: Install the process communication program and the middleware program on the cloud desktop; the process communication program is used to receive command parameters passed by PowerShell commands, and then pass the command parameters to the middleware program; the middleware program is a GUI program that starts automatically with the cloud desktop, and is used to start the corresponding GUI application according to the command parameters passed by the process communication program. Remote execution process: A PowerShell command is created on the local machine. The PowerShell command is used to start the inter-process communication program of the cloud desktop and pass command parameters. Then, the PowerShell command is executed by connecting to the cloud desktop with the specified IP through the sshclient library. Application initiation process: After the cloud desktop's process communication program obtains the command parameters of the PowerShell command, it passes the command parameters to the middleware program, which then launches the corresponding GUI application based on the command parameters.

2. The method according to claim 1, characterized in that: The interface of the middleware program is set to be invisible.

3. The method according to claim 1, characterized in that: The command parameters include the startup path of the GUI application or the name of the GUI application.

4. The method according to claim 3, characterized in that: The command parameters also include parameters required by the GUI application.

5. A device for remotely invoking a cloud desktop GUI application, characterized in that, include: The process installation module is used to install a process communication program and a middleware program on the cloud desktop. The process communication program is used to receive command parameters passed by PowerShell commands and then pass the command parameters to the middleware program. The middleware program is a graphical user interface program that starts automatically with the cloud desktop and is used to launch the corresponding GUI application according to the command parameters passed by the process communication program. The remote execution module is used to create PowerShell commands on the local end. The PowerShell commands are used to start the cloud desktop's inter-process communication program and pass command parameters. Then, the PowerShell commands are executed by connecting to the cloud desktop with the specified IP address through the sshclient library. The application initiation module, after the cloud desktop's process communication program obtains the command parameters of the powershel command, passes the command parameters to the middleware program, causing the middleware program to launch the corresponding GUI application according to the command parameters.

6. The apparatus according to claim 5, characterized in that: In the process installation module, the interface of the middleware program is set to be invisible.

7. The apparatus according to claim 5, characterized in that: In the remote execution module, the command parameters include the startup path of the GUI application or the name of the GUI application.

8. The apparatus according to claim 7, characterized in that: In the remote execution module, the command parameters also include parameters required by the GUI application.

9. A system for remotely activating a cloud desktop GUI application, characterized in that, Including local and cloud desktops; Install a process communication program and a middleware program on the cloud desktop; the process communication program is used to receive command parameters passed by PowerShell commands, and then pass the command parameters to the middleware program; the middleware program is a GUI program that starts automatically with the cloud desktop, and is used to launch the corresponding GUI application according to the command parameters passed by the process communication program. Create a PowerShell command on the local machine. The PowerShell command is used to start the inter-process communication program of the cloud desktop and pass command parameters. Then, the PowerShell command is executed by connecting to the cloud desktop with the specified IP address through the sshclient library. Once the cloud desktop's inter-process communication program obtains the command parameters of the PowerShell command, it passes the command parameters to the middleware program, which then launches the corresponding GUI application based on the command parameters.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1 to 4.