Application operation method and device, electronic equipment, storage medium and product

By calculating and passing the relative coordinates of the input events in Android applications and performing operations directly in the target application window, the time-consuming problem of coordinate calculation in the desktop operating system is solved, and the application fluency and response speed is improved.

CN119248138AActive Publication Date: 2025-01-03深圳开鸿数字产业发展有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411767246.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-01-03
Estimated Expiration
2044-12-04

AI Technical Summary

Technical Problem

When an Android application is running on the desktop operating system, after receiving the user operation event, it needs to calculate the mouse coordinates, which makes the coordinate calculation time-consuming and the application screen cannot be updated in time, reducing the smoothness of the application.

Method used

When an input event is received, the relative coordinates of the input event are calculated and passed to the preset operating system. The coordinate position of the operation focus in the target application window is determined based on the relative coordinates, and the input event is directly executed to avoid complex global coordinates to The conversion process of local coordinates.

Benefits of technology

It improves the response speed and smoothness of the application, ensures that user operations can be reflected instantly and accurately in the application interface, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248138A_ABST
    Figure CN119248138A_ABST
Patent Text Reader

Abstract

The invention discloses an application operation method and device, electronic equipment, a storage medium and a product, and relates to the technical field of cross-system transmission, the application operation method and device are applied to a desktop operating system, the desktop operating system is compatible with and runs a preset operating system, a target application runs on the preset operating system, and the target application is displayed as a desktop application window in the desktop operating system. The target application is displayed as a target application window in a preset operating system, and the desktop application window and the target application window are the same in size, and the method comprises the steps of calculating relative coordinates of an operation focus of an input event in the desktop application window under the condition that the input event about the desktop application window is received; the relative coordinates are transmitted to a preset operation system, the preset operation system is used for determining the coordinate position of the operation focus in the target application window according to the relative coordinates, and operation corresponding to the input event is executed on the target application window based on the coordinate position. The technical problem of how to improve the running fluency of the application is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cross-system transmission technology, and in particular to an application operation method, device, electronic device, storage medium and computer program product. Background Art

[0002] When an Android application is running on a desktop operating system, whenever a user operation event of the desktop operating system is received, the coordinates of the mouse in the Android system need to be calculated to execute the user operation event on the Android application. The coordinate calculation process is time-consuming and the application screen display cannot be updated in time, which reduces the smoothness of the application operation. Therefore, the current Android application on the desktop operating system has the problem of low smoothness when running. Summary of the invention

[0003] The main purpose of this application is to provide an application operation method, aiming to solve the technical problem of how to improve the smoothness of application operation.

[0004] To achieve the above-mentioned purpose, the present application proposes an application operation method, which is applied to a desktop operating system, wherein the desktop operating system is compatible with a preset operating system, and at least one target application is run on the preset operating system, and the target application is displayed as a desktop application window in the desktop operating system, and the target application is displayed as a target application window in the preset operating system, and the desktop application window has the same size as the target application window, and the application operation method includes: When receiving an input event related to the desktop application window, calculating the relative coordinates of the operation focus of the input event in the desktop application window; The relative coordinates are passed to the preset operating system, wherein the preset operating system is used to determine the coordinate position of the operation focus in the target application window according to the relative coordinates, and perform the operation corresponding to the input event on the target application window based on the coordinate position.

[0005] In one embodiment, the startup position of the desktop application window on the desktop of the desktop operating system is unrestricted, the startup position of the target application on the desktop of the preset operating system is desktop zero, and when the focus window in the desktop operating system is switched, the focus window in the preset operating system is also switched accordingly, and the switched focus window is displayed at the top layer of the preset operating system.

[0006] In one embodiment, the step of transmitting the relative coordinates to the preset operating system includes: Recording a desktop window identifier of the desktop application window, where the desktop window identifier corresponds to an application identifier of the target application; A transmission channel with the preset operating system is established, and the relative coordinates are transmitted to the preset operating system, wherein the relative coordinates carry the desktop window identifier, and the desktop window identifier is used to determine the target application corresponding to the desktop application window.

[0007] In one embodiment, the application operation method further includes: Monitor the operating status of the transmission channel with the preset operating system according to a preset period, and record the system network status and system resource allocation status; When the change amount of the operating state within a preset period exceeds a preset change threshold, the transmission channel is determined to be unstable, and an optimization strategy is determined and executed according to the system network state and the system resource allocation state.

[0008] In one embodiment, the step of determining and executing an optimization strategy according to the system network state and the system resource allocation state includes: Compare each indicator in the system network state and the system resource allocation state with the corresponding preset indicator threshold range, record the indicator that does not meet the preset indicator threshold range, and record it as an abnormal indicator; Searching for an optimization method corresponding to the abnormal indicator in a preset method library and generating an optimization strategy; Execute the optimization strategy and output the execution result.

[0009] In one embodiment, after the step of outputting the execution result, the step further includes: In the case where the execution result is a failure, adjusting the optimization strategy according to the abnormal indicator and executing it, and recording the number of adjustments; When the number of adjustments reaches a preset adjustment threshold, the adjustment of the optimization strategy is stopped, an alarm message is generated and notified to the system administrator.

[0010] In addition, to achieve the above-mentioned purpose, the present application further proposes an application operation device, which is applied to a desktop operating system, wherein the desktop operating system is compatible with a preset operating system, and at least one target application is run on the preset operating system, and the target application is displayed as a desktop application window in the desktop operating system, and the target application is displayed as a target application window in the preset operating system, and the desktop application window has the same size as the target application window, and the application operation device includes: A calculation module, configured to calculate relative coordinates of an operation focus of the input event in the desktop application window when an input event related to the desktop application window is received; A transmission module is used to pass the relative coordinates to the preset operating system, wherein the preset operating system is used to determine the coordinate position of the operation focus in the target application window according to the relative coordinates, and perform the operation corresponding to the input event on the target application window based on the coordinate position.

[0011] In addition, to achieve the above objectives, the present application also proposes an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the application operation method described above.

[0012] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the application operation method described above are implemented.

[0013] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the application operation method described above are implemented.

[0014] The present application provides an application operation method, which is applied to a desktop operating system. The desktop operating system is compatible with a preset operating system. At least one target application runs on the preset operating system. The target application is displayed as a desktop application window in the desktop operating system. The target application is displayed as a target application window in the preset operating system, and the desktop application window and the target application window have the same size. The application operation method includes: when an input event about the desktop application window is received, calculating the relative coordinates of the operation focus of the input event in the desktop application window; passing the relative coordinates to the preset operating system, wherein the preset operating system is used to determine the coordinate position of the operation focus in the target application window according to the relative coordinates, and perform the operation corresponding to the input event on the target application window based on the coordinate position.

[0015] The present application can accurately distinguish and locate any desktop application window by identifying multiple desktop application windows running in the desktop operating system. When receiving an input event for a desktop application window, the relative coordinates of the operation focus of the input event in the desktop application window are calculated. At the same time, since the desktop application window is the same size as the target application window, it is ensured that no matter how the position or size of the desktop application window changes, the input event can be accurately mapped to the inside of the target application. The calculated relative coordinates are passed to the preset operating system, so that the preset operating system can directly execute the corresponding input event according to these coordinate information. The preset operating system uses the received relative coordinates to determine the specific position of the operation focus in the target application, and executes the input event accordingly, ensuring that the user operation can be immediately and accurately reflected in the application interface. Compared with the related solution, when receiving the user operation event of the desktop operating system, it is necessary to calculate the coordinates of the mouse in the preset operating system. The present application ensures that the desktop application window is the same size as the target application window, so that the relative coordinates of the input event in the target application can be directly calculated, avoiding the complex global coordinate to local coordinate conversion process, reducing the time consumption of coordinate calculation, and the application can respond to user operations more quickly, improving the smoothness of application operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 A flowchart of the first embodiment of the method for applying the present application is provided; Figure 2 A schematic diagram of a scenario for event cross-system transmission provided for the application operation method of this application; Figure 3 A schematic diagram of the system window layout provided for the application operation method of this application; Figure 4 A flowchart diagram of the second embodiment of the application operation method of the present application is provided; Figure 5 This is a schematic diagram of the module structure of the operating device used in the embodiment of the present application; Figure 6 A schematic diagram of the device structure of the hardware operating environment involved in the application operation method in the embodiment of the present application.

[0019] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0020] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0021] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0022] The embodiment of the present application is applied to a desktop operating system, which is compatible with a preset operating system. At least one target application runs on the preset operating system. The target application is displayed as a desktop application window in the desktop operating system. The target application is displayed as a target application window in the preset operating system, and the desktop application window is the same size as the target application window. The main solution is: when an input event about the desktop application window is received, the relative coordinates of the operation focus of the input event in the desktop application window are calculated; the relative coordinates are passed to the preset operating system, wherein the preset operating system is used to determine the coordinate position of the operation focus in the target application window according to the relative coordinates, and perform the operation corresponding to the input event on the target application window based on the coordinate position.

[0023] In this embodiment, for ease of description, the following description is made with the desktop operating system as the execution subject.

[0024] In the prior art, when the target application runs on a desktop operating system, each time a user operation event of the desktop operating system is received, the coordinates of the mouse in the preset operating system need to be calculated. This calculation process is complicated and time-consuming, resulting in the inability to update the application screen in a timely manner, thereby reducing the fluency of the application.

[0025] The present application provides a solution to keep the desktop application window and the target application window the same size, directly calculate the relative coordinates of the operation focus of the input event in the target application, timely update the application screen and provide instant feedback on user operations, thereby improving the user experience and making the target application run more smoothly and naturally on the desktop operating system.

[0026] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a desktop operating system, etc. The following takes the desktop operating system as an example to illustrate this embodiment and the following embodiments.

[0027] Based on this, the present application embodiment provides an application operation method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the operating method of the present application.

[0028] In this embodiment, the desktop operating system is applied, the desktop operating system is compatible with a preset operating system, at least one target application is running on the preset operating system, the target application is displayed as a desktop application window in the desktop operating system, the target application is displayed as a target application window in the preset operating system, and the desktop application window is the same size as the target application window, and the application operation method includes steps S01-S02: Step S01, when receiving an input event about a desktop application window, calculating the relative coordinates of the operation focus of the input event in the desktop application window; It should be noted that the desktop operating system refers to the host environment in which the preset operating system runs, such as the Linux desktop operating system. In the desktop operating system, each target application is represented as a desktop application window, which is the interface for users to interact with the application. The preset operating system refers to the operating system environment on which this application is based, which may be the Android system. The target application refers to the application running on the preset operating system. The target application window refers to the window of the application running in the preset operating system. Input events may be keyboard strokes, mouse clicks, touch operations, etc., which are captured and processed by the desktop operating system. The operation focus refers to the element or position targeted by the current user input event. The relative coordinates are the offset relative to the upper left corner of the current desktop application window, not the global screen coordinates.

[0029] In addition, it should be noted that the graphical user interface (GUI) of the desktop operating system monitors and records all user interactions and captures user input events, which may include mouse clicks, keyboard strokes, touch operations, etc. When multiple desktop application windows coexist, the current window is determined to be the focus window, that is, the window with which the user is interacting by tracking the position of the mouse cursor and the user's interaction behaviors (such as clicking, focusing, etc.). Once the focus window is determined, the relative coordinates of the input event in the window are calculated. The relative coordinates are the offset relative to the upper left corner of the focus window, which reflects the specific position of the input event in the window. For example, if the user clicks the mouse at a certain position in the focus window, the desktop operating system will calculate the coordinates of the click event relative to the upper left corner of the window (such as (180,152)).

[0030] It is understandable that, since the existing scheme needs to convert user operation events (such as mouse clicks, touches, etc.) of the desktop operating system into coordinates that can be understood by the preset operating system each time these events are received, so as to perform corresponding user operations on the target application, however, the traditional coordinate calculation process is often complicated and time-consuming, because it needs to take into account multiple factors such as the layout of the desktop operating system window, the scaling ratio, the scroll bar position, etc. These factors make the coordinate calculation complicated, thereby increasing the delay in event processing and reducing the smoothness of application operation, so step S01 is performed. Since the desktop application window and the target application window are the same size and there is no scaling problem, by calculating the relative coordinates of the input event at the operation focus, the relative coordinates of the input event at the operation focus in the preset operating system can be directly obtained, avoiding the complicated coordinate conversion process, reducing the time-consuming coordinate calculation, and providing an efficient basis for subsequent input event processing.

[0031] Step S02: passing the relative coordinates to a preset operating system, wherein the preset operating system is used to determine the coordinate position of the operation focus in the target application window according to the relative coordinates, and perform an operation corresponding to the input event on the target application window based on the coordinate position.

[0032] It should be noted that a transmission channel (such as a socket) is established between the desktop operating system and the preset operating system to transmit relative coordinates and other necessary information. The calculated relative coordinates are encapsulated into a specific data packet or message format and transmitted to the preset operating system through the transmission channel. The data packet also includes other information, such as the type of input event (click, drag, scroll, etc.), timestamp, etc. After receiving the data packet, the preset operating system parses the relative coordinates and, by creating a new Java service (such as InputManagerService) and using the InputManager class, this information is simulated as a corresponding input event, and the coordinate position of the operation focus in the target application window is determined according to the simulated input event. The coordinate position refers to the specific position of the operation focus of the input event in the target application window, which is determined based on the relative coordinates. After determining the coordinate position, the input event can be executed in the preset operating system.

[0033] For example, to help understand the technical concept or technical principle of this application, please refer to Figure 2 , Figure 2A schematic diagram of the scenario of cross-system event transmission is provided. User input events, including touch events, mouse click events, sliding events, etc., are received in the desktop operating system. These input events are packaged and transmitted to the preset operating system through a transmission channel. After the preset operating system receives the packaged input events, a new Java service is created and the InputManager class is used to simulate this information as corresponding input events, and the simulated input events are passed to the target application to execute the corresponding input events.

[0034] It is understandable that, after the existing scheme calculates the relative coordinates of the input event, it is necessary to pass these coordinates to the preset operating system so as to perform the corresponding user operation in the target application. However, the traditional coordinate transmission method involves multiple levels of conversion and verification, which will also increase the delay in event processing. Therefore, step S02 is performed to directly pass the relative coordinates to the preset operating system, avoiding the complicated coordinate conversion and verification process. Since the relative coordinates are already the offset within the current desktop application window, they can be directly understood and used by the preset operating system, reducing the delay in event processing and improving the smoothness of application operation.

[0035] In a feasible implementation, in step S01, the startup position of the desktop application window on the desktop of the desktop operating system is unrestricted, the startup position of the target application on the desktop of the preset operating system is desktop zero, and when the focus window in the desktop operating system is switched, the focus window in the preset operating system is also switched accordingly, and the switched focus window is displayed at the top layer of the preset operating system.

[0036] It should be noted that the desktop application window and the target application window are exactly the same in width and height. The desktop application window can be started at any position on the desktop of the desktop operating system, and in the preset operating system, all target application windows are started by default at the upper left corner of the desktop (i.e., the coordinate origin, 0,0), which means that no matter how the desktop application window is located in the desktop operating system, the target application window is always located in the same position in the preset operating system. When the focus window of the desktop operating system is updated, the foreground application in the preset operating system is updated synchronously, and the corresponding focus window is switched to the top layer. The focus window refers to the window that the current user is interacting with, that is, the target window of the user's current operation. In the desktop operating system, the focus window is usually determined by mouse clicks or keyboard switching.

[0037] For example, to help understand the technical concept or technical principle of this application, please refer to Figure 3 , Figure 3A schematic diagram of the system window layout is provided. Assuming that the size of desktop application window B is 800x600 pixels, the window size of the corresponding target application B' should also be 800x600 pixels in the preset operating system. In the desktop operating system, the desktop application window can be in any position. For example, the user can drag a desktop application window to the lower right corner of the screen, and place another window in the upper left corner. In the preset operating system, the target application defaults to the desktop zero point O in the upper left corner of the desktop. Since the focus window in the desktop operating system is window A, the focus window in the preset operating system is window A' corresponding to window A, and window A' is at the top layer. At this time, window B' is in the lower layer. The upper left corners of window A' and window B' are both started at desktop zero point O, and the position is fixed.

[0038] In this implementation, since the window sizes are consistent and the target application startup position is fixed, there is no difference in the window management, coordinate system, etc. between the desktop operating system and the target operating system. Relative coordinates can be used directly to locate input events, and complex coordinate conversion is no longer required to ensure that input events can be correctly mapped to the target application, thereby simplifying the coordinate calculation process, reducing event processing delays, and improving the response speed of the application. At the same time, the window of the desktop operating system can be started at any position on the desktop, which increases the flexibility of user layout.

[0039] In a feasible implementation manner, in step S02, the step of transmitting the relative coordinates to the preset operating system includes steps A01-A02: Step A01, recording a desktop window identifier of a desktop application window, where the desktop window identifier corresponds to an application identifier of a target application; It should be noted that the system captures user input events on the desktop operating system, such as mouse clicks, keyboard input or touch screen operations, and records the desktop window identifier (DWID) of the desktop application window that triggers these events. The desktop window identifier is a unique identifier used to distinguish different desktop application windows. Each desktop window identifier corresponds to an application identifier (AID) of a specific target application. This correspondence is established through pre-configuration or program logic.

[0040] Step A02, establishing a transmission channel with a preset operating system, transmitting relative coordinates to the preset operating system, the relative coordinates carrying a desktop window identifier, the desktop window identifier being used to determine a target application corresponding to the desktop application window.

[0041] It should be noted that a transmission channel is established with the preset operating system. This transmission channel can be a socket-based communication mechanism or other efficient communication methods. When a user triggers an input event in a window of the desktop operating system, the relative coordinates of the event (i.e., the coordinates relative to the upper left corner of the window) are obtained, and the relative coordinates are packaged into a data packet together with the desktop window identifier of the window that triggered the event. The data packet is sent to the preset operating system through the previously established transmission channel. In the preset operating system, the java-services service is responsible for receiving these data packets, parsing the desktop window identifier and relative coordinates, and using the inputManager to simulate these relative coordinates as corresponding input events. These events can be mouse clicks, touch operations, or keyboard input, etc. The preset operating system passes these simulated input events to the corresponding target application. Since each desktop window identifier corresponds to a specific application identifier, the system can accurately pass the event to the correct application.

[0042] In addition, it should be noted that when the focus window of the desktop operating system changes (such as the user switches to another window), the preset operating system needs to synchronously update the foreground application, which means that the preset operating system needs to switch the current foreground application to the application corresponding to the focus window of the desktop operating system. At the same time, the preset operating system also needs to ensure that keyboard, scroll wheel and other events can be correctly passed to the current foreground application.

[0043] In this implementation, the correspondence between the desktop window identifier and the application identifier is used to accurately associate user input events in the desktop operating system with the target application in the preset operating system. By utilizing efficient transmission channels such as sockets, rapid transmission of relative coordinates and timely response of the preset operating system are ensured, thereby improving the efficiency and accuracy of data transmission.

[0044] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 The application operation method further includes steps S11 to S12: Step S11, monitoring the operation status of the transmission channel with the preset operating system according to a preset period, and recording the system network status and system resource allocation status; It should be noted that the system monitors the transmission channel between the preset operating system at a preset period (such as 1 minute). The monitoring content includes but is not limited to the operating status of the transmission channel. The operating status refers to the performance of the transmission channel at a specific time point, including key indicators such as data transmission rate, delay, and packet loss rate. At the same time, the system also records the system network status and system resource allocation status. The system network status includes the network's bandwidth, delay, jitter, etc. These parameters reflect the stability and reliability of the current network environment. The system resource allocation status involves the occupancy of system resources such as CPU, memory, and disk I / O. These resources are essential to maintaining the stable operation of the transmission channel.

[0045] Step S12: when the change amount of the operating state within the preset period exceeds the preset change threshold, the transmission channel is determined to be unstable, and an optimization strategy is determined and executed according to the system network state and the system resource allocation state.

[0046] It should be noted that within a preset period, if the system detects that the change in the operating status of the transmission channel exceeds a preset change threshold (for example, a sudden drop in data transmission rate, a significant increase in latency, or a sharp increase in packet loss rate, etc.), the transmission channel is determined to be unstable. This preset change threshold is set based on historical data and experience, and is used to distinguish between normal operating status fluctuations and abnormal operating status changes. Once the transmission channel is determined to be unstable, an optimization strategy is determined based on the current system network status and system resource allocation status. The optimization strategy refers to measures determined based on the current system network status and system resource allocation status to restore stable operation of the transmission channel, including adjusting network configuration (such as changing network protocols, optimizing routing paths, etc.), optimizing system resource allocation (such as releasing unnecessary memory usage, reducing CPU usage, etc.), or adjusting transmission channel parameters (such as increasing the number of retransmissions, adjusting data packet size, etc.).

[0047] In this implementation, the operating status of the transmission channel is monitored at a preset period and the current network status is recorded, providing a basis for subsequent abnormality determination and formulation of optimization strategies. When an abnormality in the operating status of the transmission channel is detected, the transmission channel is promptly determined to be unstable, and an optimization strategy is formulated based on the current network status and resource allocation status. By executing these optimization strategies, the system can quickly restore the stable operation of the transmission channel, ensuring that the target application can still run smoothly under complex and changeable network environments and system resource conditions, providing users with a stable and efficient application experience.

[0048] In a feasible implementation manner, in step S12, the step of determining and executing the optimization strategy according to the system network status and the system resource allocation status includes steps B01 to B03: Step B01, comparing each indicator in the system network status and the system resource allocation status with the corresponding preset indicator threshold range, recording the indicator that does not meet the preset indicator threshold range as an abnormal indicator; It should be noted that the real-time collected system network status and system resource allocation status data include, but are not limited to, key performance indicators (KPIs) such as network bandwidth utilization, network delay, packet loss rate, CPU usage, memory occupancy, and disk I / O speed. The system sets a reasonable preset indicator threshold range for each key performance indicator based on historical data, experience values, and application requirements. This range is usually an interval that defines the "normal" range of the KPI. The actual value of each KPI is compared with the preset threshold range. If the actual value of a KPI exceeds its preset threshold range, the KPI is marked as an abnormal indicator and its detailed information is recorded, including the indicator name, actual value, threshold range, and time when the threshold is exceeded.

[0049] Step B02, searching for an optimization method corresponding to an abnormal indicator in a preset method library, and generating an optimization strategy; It should be noted that the system maintains a preset method library based on experience summary, expert advice or machine learning algorithms, which contains a series of optimization methods and strategies for different types of abnormal indicators. According to the abnormal indicators recorded in step B01, the corresponding optimization method is searched in the preset method library. After finding the corresponding optimization method through algorithms such as keyword matching, fuzzy search or rule-based reasoning, the system will generate one or more optimization strategies based on factors such as the current system status, application requirements and the priority of the optimization method, including adjusting network parameters, optimizing resource allocation, increasing hardware resources, etc. For multiple abnormal indicators, a comprehensive optimization strategy is generated to combine multiple optimization methods to achieve the best overall effect.

[0050] Step B03, execute the optimization strategy and output the execution result.

[0051] It should be noted that according to the generated optimization strategy, the corresponding operations are automatically performed, including modifying the system configuration, adjusting resource allocation, updating the software version, etc. After the optimization strategy is executed, a detailed execution report is generated according to the execution results, including the execution time of the optimization strategy, comparison of KPIs before and after execution, optimization effect evaluation, etc., as a reference and basis for subsequent optimization work.

[0052] In this implementation, by setting and comparing preset indicator threshold ranges, potential factors that affect the running smoothness of the target application are discovered and located in a timely manner, providing precise targets for the formulation of subsequent optimization strategies. By introducing a preset method library, optimization methods for specific problems are quickly found, thereby greatly shortening the formulation time of the optimization strategy and improving the pertinence and effectiveness of the optimization strategy. By executing the optimization strategy and outputting the execution results, the actual effect of the optimization work is intuitively demonstrated, providing data support and feedback for subsequent optimization work.

[0053] In a feasible implementation manner, in step B03, after the step of outputting the execution result, steps B11 to B12 are also included: Step B11, when the execution result is failure, adjust the optimization strategy according to the abnormal indicators and execute it, and record the number of adjustments; It should be noted that after step B03 is executed, if the system detects that the execution result is a failure (i.e., the expected performance improvement is not achieved or the problem is not solved), the optimization strategy will be adjusted according to the abnormal indicators currently detected (such as prolonged application response time, abnormally high CPU usage, memory leak, etc.). The adjusted optimization strategy will be executed again, and the system will record the number of times this adjustment is made.

[0054] Step B12: When the number of adjustments reaches a preset adjustment threshold, the adjustment of the optimization strategy is stopped, an alarm message is generated and notified to the system administrator.

[0055] It should be noted that when the number of adjustments reaches the preset adjustment threshold (that is, the system has tried multiple optimization strategy adjustments but the problem is still not solved), the system will stop further optimization strategy adjustments and enter the alarm message generation process. According to the reasons for the execution failure, relevant log information and previously recorded abnormal indicators, the system will construct an alarm message to describe the execution failure in detail. The alarm message refers to the information automatically generated by the system when it detects an abnormal or error situation to notify the system administrator, including the time, location (that is, which system component or application), reason (such as insufficient resources, configuration error, etc.) and related abnormal indicator values ​​(such as high CPU usage, excessive memory usage, etc.) of the failure. The generated alarm message is sent to the system administrator through the preset notification channel (such as email, SMS, instant messaging tools, etc.). The system administrator refers to the professional responsible for maintaining and managing the normal operation of the system. In addition to the alarm message itself, the system can also provide the system administrator with follow-up processing suggestions based on historical experience and expert advice, such as possible solutions, recommended optimization methods, etc.

[0056] In this embodiment, by automatically adjusting the optimization strategy according to abnormal indicators, the system can respond to various performance issues more flexibly, improve the pertinence and effectiveness of the optimization strategy, and at the same time, recording the number of adjustments is helpful for subsequent analysis and evaluation of the effectiveness of the optimization strategy, providing data support for further optimization. By setting a preset adjustment threshold and stopping the strategy adjustment when the threshold is reached, the system can avoid invalid optimization attempts and reduce resource waste. At the same time, generating alarm messages and notifying system administrators helps to detect problems in a timely manner and take manual intervention measures to ensure the stable operation of the application.

[0057] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the application and operation methods of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0058] The present application also provides an application operation device, which is applied to a desktop operating system. The desktop operating system is compatible with a preset operating system. A plurality of target applications are run on the preset operating system. The target applications are represented as desktop application windows in the desktop operating system. Please refer to Figure 5 , the application operating device includes: The calculation module 10 is used to calculate the relative coordinates of the operation focus of the input event in the desktop application window when receiving the input event about the desktop application window; The transmission module 20 is used to transmit the relative coordinates to the preset operating system, wherein the preset operating system is used to determine the coordinate position of the operation focus in the target application window according to the relative coordinates, and perform the operation corresponding to the input event on the target application window based on the coordinate position.

[0059] Optionally, there is no restriction on the startup position of the desktop application window on the desktop of the desktop operating system. The startup position of the target application on the desktop of the preset operating system is desktop zero. When the focus window in the desktop operating system is switched, the focus window in the preset operating system is also switched accordingly. The switched focus window is displayed at the top layer of the preset operating system.

[0060] Optionally, the transmission module 20 is further used for: Recording a desktop window identifier of the desktop application window, where the desktop window identifier corresponds to an application identifier of the target application; A transmission channel with a preset operating system is established, and relative coordinates are transmitted to the preset operating system. The relative coordinates carry a desktop window identifier, and the desktop window identifier is used to determine a target application corresponding to the desktop application window.

[0061] Optionally, the application operation device further includes a monitoring module 30, and the monitoring module 30 is further used for: Monitor the operation status of the transmission channel with the preset operating system according to the preset period, and record the system network status and system resource allocation status; When the change in the operating status within a preset period exceeds a preset change threshold, the transmission channel is determined to be unstable, and an optimization strategy is determined and executed based on the system network status and system resource allocation status.

[0062] Optionally, the monitoring module 30 is further used for: Compare each indicator in the system network status and system resource allocation status with the corresponding preset indicator threshold range, and record the indicators that do not meet the preset indicator threshold range as abnormal indicators; Search for optimization methods corresponding to abnormal indicators in the preset method library and generate optimization strategies; Execute the optimization strategy and output the execution results.

[0063] Optionally, the monitoring module 30 is further used for: If the execution result is a failure, adjust the optimization strategy according to the abnormal indicators and execute it, and record the number of adjustments; When the number of adjustments reaches the preset adjustment threshold, the adjustment of the optimization strategy is stopped, an alarm message is generated and notified to the system administrator.

[0064] The application operation device provided by the present application adopts the application operation method in the above embodiment, which can solve the technical problem of how to improve the smoothness of application operation. Compared with the prior art, the beneficial effects of the application operation device provided by the present application are the same as the beneficial effects of the application operation method provided by the above embodiment, and other technical features in the application operation device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0065] The present application provides an electronic device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the application operation method in the above-mentioned embodiment one.

[0066] Reference below Figure 6 , which shows a schematic diagram of the structure of an electronic device suitable for implementing an embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, notebook computers, PADs (Portable Application Description: tablet computers), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0067] like Figure 6 As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead.

[0068] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0069] The electronic device provided by the present application adopts the application operation method in the above embodiment to solve the technical problem of how to improve the smoothness of application operation. Compared with the prior art, the beneficial effects of the electronic device provided by the present application are the same as the beneficial effects of the application operation method provided by the above embodiment, and the other technical features in the electronic device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0070] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0071] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0072] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the application operation method in the above-mentioned embodiment.

[0073] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0074] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0075] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by an electronic device, the application operation device: when receiving an input event about a desktop application window, calculates the relative coordinates of the operation focus of the input event in the desktop application window; passes the relative coordinates to a preset operating system, wherein the preset operating system is used to determine the coordinate position of the operation focus in the target application window according to the relative coordinates, and performs the operation corresponding to the input event on the target application window based on the coordinate position.

[0076] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0077] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession 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 flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0078] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0079] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned application operation method, and can solve the technical problem of how to improve the smoothness of application operation. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the application operation method provided in the above-mentioned embodiment, and will not be repeated here.

[0080] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned application operation method when executed by a processor.

[0081] The computer program product provided by this application can solve the technical problem of how to improve the smoothness of application operation. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the application operation method provided by the above embodiment, which will not be repeated here.

[0082] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. An application operation method, characterized in that: Applied to a desktop operating system, the desktop operating system is compatible with a preset operating system, at least one target application is running on the preset operating system, the target application is displayed as a desktop application window in the desktop operating system, the target application is displayed as a target application window in the preset operating system, and the desktop application window is the same size as the target application window, the application operation method includes: When receiving an input event related to the desktop application window, calculating the relative coordinates of the operation focus of the input event in the desktop application window; The relative coordinates are passed to the preset operating system, wherein the preset operating system is used to determine the coordinate position of the operation focus in the target application window according to the relative coordinates, and perform the operation corresponding to the input event on the target application window based on the coordinate position.

2. The application operation method according to claim 1, characterized in that: There is no restriction on the startup position of the desktop application window on the desktop of the desktop operating system. The startup position of the target application on the desktop of the preset operating system is desktop zero. When the focus window in the desktop operating system is switched, the focus window in the preset operating system is also switched accordingly. The switched focus window is displayed at the top layer of the preset operating system.

3. The application operation method according to claim 1, characterized in that: The step of transmitting the relative coordinates to the preset operating system comprises: Recording a desktop window identifier of the desktop application window, where the desktop window identifier corresponds to an application identifier of the target application; A transmission channel with the preset operating system is established, and the relative coordinates are transmitted to the preset operating system, wherein the relative coordinates carry the desktop window identifier, and the desktop window identifier is used to determine the target application corresponding to the desktop application window.

4. The application operation method according to claim 3, characterized in that: The application operation method also includes: Monitor the operating status of the transmission channel with the preset operating system according to a preset period, and record the system network status and system resource allocation status; When the change amount of the operating state within a preset period exceeds a preset change threshold, the transmission channel is determined to be unstable, and an optimization strategy is determined and executed according to the system network state and the system resource allocation state.

5. The application operation method according to claim 4, characterized in that: The step of determining and executing the optimization strategy according to the system network state and the system resource allocation state comprises: Compare each indicator in the system network state and the system resource allocation state with the corresponding preset indicator threshold range, record the indicator that does not meet the preset indicator threshold range, and record it as an abnormal indicator; Searching for an optimization method corresponding to the abnormal indicator in a preset method library and generating an optimization strategy; Execute the optimization strategy and output the execution result.

6. The application operation method according to claim 5, characterized in that: After the step of outputting the execution result, the following steps are further included: In the case where the execution result is a failure, adjusting the optimization strategy according to the abnormal indicator and executing it, and recording the number of adjustments; When the number of adjustments reaches a preset adjustment threshold, the adjustment of the optimization strategy is stopped, an alarm message is generated and notified to the system administrator.

7. An application operation device, characterized in that: Applied to a desktop operating system, the desktop operating system is compatible with a preset operating system, at least one target application is running on the preset operating system, the target application is displayed as a desktop application window in the desktop operating system, the target application is displayed as a target application window in the preset operating system, and the desktop application window is the same size as the target application window, the application operating device includes: A calculation module, configured to calculate relative coordinates of an operation focus of the input event in the desktop application window when receiving an input event related to the desktop application window; A transmission module is used to pass the relative coordinates to the preset operating system, wherein the preset operating system is used to determine the coordinate position of the operation focus in the target application window according to the relative coordinates, and perform the operation corresponding to the input event on the target application window based on the coordinate position.

8. An electronic device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the application operation method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the application operation method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the application operation method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method for automatically arranging desktop environment windows of Linux operating system

    CN113535287A

  • Cross-operating-environment low-delay mouse drive optimization method

    CN115309465A

  • Apparatus and method for simultaneous multi-user screen and window sharing, capturing and coordination

    US11150861B1