Method, system and medium for controlling mouse display in a remote desktop system

By synchronizing mouse theme data and transmitting symbols and graphic symbols in the remote desktop system, the problems of mouse display latency and flickering are solved, resulting in smoother mouse animation and reduced network dependence.

CN116382534BActive Publication Date: 2026-11-24XIAN WANXIANG ELECTRONICS TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310245932.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-15
Publication Date
2026-11-24
Estimated Expiration
2043-03-15

AI Technical Summary

Technical Problem

Existing remote desktop technologies suffer from issues such as high latency, screen stuttering, poor mouse shape display, and dependence on network bandwidth. In particular, when the mouse shape changes rapidly and complexly, the display effect on the receiving end is poor, and there is a delay in mouse transformation.

Method used

After the connection is established between the sending and receiving ends, all mouse theme data is synchronized, and the mouse pointer is drawn by transmitting mouse theme symbols, graphic symbols and motion information, reducing the dependence on the network. In particular, when the mouse graphic is animated, it is marked by graphic frames and frame interval information.

Benefits of technology

The smoothness of mouse animation display has been improved, the problem of flickering in continuous mouse transformation animation has been solved, the latency of mouse transformation has been reduced, and the user experience has been enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116382534B_ABST
    Figure CN116382534B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a control method, system and medium for mouse display in a remote desktop system. The method comprises: after a connection is established with a receiving end, detecting a mouse action; when the mouse action is detected, determining a mouse figure used by the mouse action from mouse theme data in a cache, a mouse theme mark corresponding to the mouse figure and a mouse figure mark corresponding to the mouse figure; and sending the mouse theme mark corresponding to the mouse figure, the mouse figure mark corresponding to the mouse figure and action information corresponding to the mouse action to the receiving end, so that the receiving end can draw a mouse pointer according to the mouse theme mark and the mouse figure mark, and make the mouse pointer move according to the action information corresponding to the mouse action. According to the present disclosure, all mouse themes are synchronized from a sending end to a receiving end when the connection is established, and only theme marks, figure marks and actions need to be transmitted subsequently. Therefore, the display fluency of mouse animation can be further improved, and the problem of flickering of continuous mouse deformation animation can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of remote desktop technology, and in particular to a method, system, and medium for controlling mouse display in a remote desktop system. Background Technology

[0002] There are two ways to implement remote desktop technology: remote mouse, which directly captures and sends the remote desktop mouse and screen together to the receiving end. The disadvantage of this method is high latency and heavy dependence on the smoothness of the screen frame rate. When the screen is laggy, the operation experience will be severely degraded.

[0003] Another approach is to draw the mouse cursor locally on the receiving end, also known as local mouse drawing. This is currently the most commonly used technique. The image and mouse shape are captured separately at the receiving end. As the mouse image changes in real time, the image data at the receiving end is updated, and the mouse shape is actually drawn on the receiving end. Some existing technologies use a receiving end caching method to store previously seen mouse shapes, and only transmit the tag ID subsequently, to reduce reliance on the network.

[0004] Regarding the aforementioned technical solution, the applicant discovered the following problems: With the local mouse method, when the mouse shape is animated or changes rapidly and complexly, the display effect on the receiving end is poor, and flickering occurs. Furthermore, real-time transmission of the mouse shape image is dependent on network bandwidth; although positional information is not delayed, mouse transformation at the receiving end does have a certain delay; even with local caching, retransmission is always required when the mouse shape first appears. Additionally, changes in the mouse theme at the sending end trigger numerous requests for mouse shape transmission.

[0005] Therefore, it is necessary to improve one or more of the problems existing in the above-mentioned related technical solutions.

[0006] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0007] The purpose of this disclosure is to provide a method, system, and medium for controlling mouse display in a remote desktop system, thereby solving at least one or more problems existing in the above-mentioned related technical solutions.

[0008] The objective of this invention is achieved through the following technical solution:

[0009] In a first aspect, the present invention provides a method for controlling mouse display in a remote desktop system, the method being applied at a sending end, comprising:

[0010] After establishing a connection with the receiving end, mouse action detection is performed;

[0011] When a mouse action is detected, the mouse graphic used by the mouse action is determined from the mouse theme data in the cache, and the mouse theme symbol and mouse graphic symbol corresponding to the mouse graphic are determined.

[0012] The mouse theme symbol and mouse graphic symbol corresponding to the mouse graphic, as well as the action information corresponding to the mouse action, are sent to the receiving end, so that the receiving end can draw the mouse pointer according to the mouse theme symbol and the mouse graphic symbol, and perform actions on the mouse pointer according to the action information corresponding to the mouse action.

[0013] Each mouse theme contains multiple mouse graphics. Different mouse themes are marked with different mouse theme symbols, and different mouse graphics are marked with different mouse graphic symbols. When the mouse graphic is an animation, the mouse graphic is marked with a set of graphic frames and frame interval information corresponding to the animation.

[0014] Optionally, before performing mouse action detection, the method further includes synchronizing the mouse themes of the sending and receiving ends in the following manner:

[0015] The mouse theme data in the cache is compared with the mouse theme at the receiving end to determine the target mouse theme that exists in the cache but does not exist at the receiving end.

[0016] The target mouse theme data is sent to the receiving end.

[0017] Optionally, the step of comparing mouse theme data in the cache with the mouse theme at the receiving end to determine the target mouse theme that exists in the cache but not at the receiving end includes:

[0018] When mouse theme data exists in the cache, mouse themes are compared as follows:

[0019] Obtain the mouse theme token from the mouse theme data and record it as the first mouse theme token;

[0020] The mouse theme mark obtained from the receiving end will be recorded as the second mouse theme mark;

[0021] The first mouse theme mark is compared with the second mouse theme mark to determine the target mouse theme mark that exists in the first mouse theme mark but does not exist in the second mouse theme mark;

[0022] When mouse theme data is not present in the cache, mouse themes are compared as follows:

[0023] Mouse theme data is generated based on the currently installed mouse theme files locally, and the generated mouse theme data is written into the cache; wherein, the generated mouse theme data includes: the mouse theme symbol corresponding to each mouse theme, the mouse graphic contained in each mouse theme, and the mouse graphic symbol corresponding to each mouse graphic;

[0024] Retrieve the mouse theme token from the mouse theme data written to the cache and record it as the third mouse theme token;

[0025] The mouse theme token obtained from the receiving end will be recorded as the fourth mouse theme token;

[0026] The third mouse theme mark is compared with the fourth mouse theme mark to determine the target mouse theme mark that exists in the third mouse theme mark but not in the fourth mouse theme mark.

[0027] Optionally, sending the target mouse theme data to the receiving end includes:

[0028] The mouse theme symbol of the target mouse theme, the mouse graphics contained in the target mouse theme, and the graphic symbols corresponding to each mouse graphic are sent to the receiving end.

[0029] Optionally, the method further includes:

[0030] The system detects whether the synchronized mouse theme data has changed at a preset frequency, and writes any changed mouse themes into the cache.

[0031] Optionally, detecting whether the synchronized mouse theme data has changed includes:

[0032] Retrieve data for each mouse theme from the currently installed mouse theme files on the local machine in sequence;

[0033] The currently acquired mouse theme data is compared with the mouse theme data in the cache to determine whether the currently acquired mouse theme is a changed mouse theme.

[0034] Optionally, the step of comparing the currently acquired mouse theme data with the mouse theme data in the cache to determine whether the currently acquired mouse theme is a changed mouse theme includes:

[0035] Determine the length of the currently acquired mouse theme data;

[0036] Determine whether a mouse theme with the same data length exists in the cache;

[0037] If it does not exist, then the currently acquired mouse theme is determined to be a changed mouse theme;

[0038] If it exists, then based on the memory block comparison method, it is further determined whether there is a mouse theme among the mouse themes with the same data length that has the exact same content as the currently acquired mouse theme. If it exists, then the currently acquired mouse theme is determined to be an unchanged mouse theme. If it does not exist, then the currently acquired mouse theme is determined to be a changed mouse theme.

[0039] Optionally, the step of comparing the currently acquired mouse theme data with the mouse theme data in the cache to determine whether the currently acquired mouse theme is a changed mouse theme includes:

[0040] Determine the dimensions of each mouse graphic contained in the currently acquired mouse theme;

[0041] Determine whether a mouse theme containing a mouse graphic of the same size exists in the cache;

[0042] If it does not exist, then the currently acquired mouse theme is determined to be a changed mouse theme;

[0043] If they exist, it is further determined whether the feature values ​​of each mouse graphic in the mouse theme containing mouse graphics of the same size correspond to the feature values ​​of each mouse graphic contained in the currently acquired mouse theme. If they are the same, it is determined that the acquired mouse theme is an unchanged mouse theme. If they are not the same, it is determined that the acquired mouse theme is a changed mouse theme.

[0044] Optionally, writing the changed mouse theme into the cache includes:

[0045] Generate the mouse theme symbol corresponding to the changed mouse theme and the graphic symbol of each mouse graphic contained in the changed mouse theme;

[0046] The generated mouse theme symbol, mouse graphic symbol, and each mouse graphic contained in the changed mouse theme are written into the cache.

[0047] Optionally, after the sending end disconnects from the receiving end, the mouse theme data in the cache may or may not be cleared according to a preset rule.

[0048] Optionally, the mouse theme token can be generated in the following way:

[0049] The mouse topic data is hashed using the MD5 message digest algorithm, and the result is used as the topic token for the mouse topic; or...

[0050] The image features of each mouse graphic contained in the mouse theme are extracted. The extracted image features of each mouse graphic are then subjected to mathematical operations with the size data of the corresponding mouse graphic to obtain multiple mathematical operation results. The multiple mathematical operation results are then concatenated, and the concatenated result is used as the theme symbol of the mouse theme.

[0051] Secondly, the present invention provides a method for controlling mouse display in a remote desktop system, the method being applied to a receiving end, comprising:

[0052] Establish a connection with the sender;

[0053] The receiving end sends mouse actions, as well as the corresponding subject symbols and graphic symbols for the mouse actions;

[0054] The receiving end determines the mouse graphic corresponding to the theme symbol and the graphic symbol from the local mouse theme, and draws the mouse pointer according to the mouse graphic corresponding to the theme symbol and the graphic symbol; at the same time, it performs actions on the mouse pointer according to the action information.

[0055] Each mouse theme contains multiple mouse graphics. Different mouse themes are marked with different mouse theme symbols, and different mouse graphics are marked with different mouse graphic symbols. When the mouse graphic is an animation, the mouse graphic is marked with a set of graphic frames and frame interval information corresponding to the animation.

[0056] Optionally, after establishing a connection with the sending end, the method further includes: synchronizing the mouse theme with the sending end in the following manner:

[0057] The receiver sends the mouse theme token of its local mouse theme to the sender so that the sender can determine whether the mouse themes on both sides are different based on the received mouse theme token.

[0058] If the comparison results at the sending end are different, the target mouse theme data sent by the sending end is received and saved locally.

[0059] Thirdly, the present invention provides a remote desktop system, the system being applied to a sending end, comprising:

[0060] The mouse action detection module is used to detect mouse actions after a connection is established with the receiving end.

[0061] The symbol determination module is used to determine the mouse graphic used by the mouse action from the mouse theme data in the cache when a mouse action is detected, and to determine the mouse theme symbol and mouse graphic symbol corresponding to the mouse graphic.

[0062] The sending module is used to send the mouse theme mark and mouse graphic mark corresponding to the mouse graphic and the action information corresponding to the mouse action to the receiving end, so that the receiving end can draw the mouse pointer according to the mouse theme mark and the mouse graphic mark, and perform actions on the mouse pointer according to the action information corresponding to the mouse action.

[0063] Each mouse theme contains multiple mouse graphics. Different mouse themes are marked with different mouse theme symbols, and different mouse graphics are marked with different mouse graphic symbols. When the mouse graphic is an animation, the mouse graphic is marked with a set of graphic frames and frame interval information corresponding to the animation.

[0064] Fourthly, the present invention provides a remote desktop system, the system being applied to a receiving end, comprising:

[0065] The connection module is used to establish a connection with the sending end;

[0066] The receiving module is used to receive mouse actions sent by the sending end, as well as the subject symbols and graphic symbols corresponding to the mouse actions;

[0067] The mouse action module is used to determine the mouse graphic corresponding to the theme symbol and the graphic symbol from the local mouse theme of the receiving end, draw the mouse pointer according to the mouse graphic corresponding to the theme symbol and the graphic symbol, and perform actions on the mouse pointer according to the action information.

[0068] Each mouse theme contains multiple mouse graphics. Different mouse themes are marked with different mouse theme symbols, and different mouse graphics are marked with different mouse graphic symbols. When the mouse graphic is an animation, the mouse graphic is marked with a set of graphic frames and frame interval information corresponding to the animation.

[0069] Fifthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed, can implement the steps of the mouse display control method in the remote desktop system described in any of the above embodiments.

[0070] In the embodiments of this disclosure, by synchronizing all mouse themes from the sending end to the receiving end during connection, only the theme tokens, graphic tokens, and actions need to be transmitted subsequently. This further improves the smoothness of mouse animation display, solves the problem of flickering in continuous mouse transformation animations, and thus reduces mouse transformation latency.

[0071] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0072] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0073] Figure 1 This diagram illustrates a flowchart of a method for controlling mouse display in a remote desktop system according to an exemplary embodiment of the present disclosure.

[0074] Figure 2 A schematic diagram illustrating a mouse theme and mouse graphic in an exemplary embodiment of this disclosure;

[0075] Figure 3 A flowchart illustrating another method for controlling mouse display in a remote desktop system according to an exemplary embodiment of this disclosure is shown.

[0076] Figure 4 A flowchart illustrating another method for controlling mouse display in a remote desktop system according to an exemplary embodiment of this disclosure is shown.

[0077] Figure 5 A flowchart illustrating another method for controlling mouse display in a remote desktop system according to an exemplary embodiment of this disclosure is shown.

[0078] Figure 6 A flowchart illustrating another method for controlling mouse display in a remote desktop system according to an exemplary embodiment of this disclosure is shown.

[0079] Figure 7 A flowchart illustrating another method for controlling mouse display in a remote desktop system according to an exemplary embodiment of this disclosure is shown.

[0080] Figure 8 A schematic diagram illustrating the logical flow of a specific implementation process in an exemplary embodiment of this disclosure is provided.

[0081] Figure 9 A schematic diagram of a storage medium according to an exemplary embodiment of the present disclosure is shown; Detailed Implementation

[0082] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided so that this disclosure will be more comprehensive and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0083] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0084] This example implementation first provides a method for controlling mouse display in a remote desktop system, referencing... Figure 1 As shown, this control method is applied to the transmitting end and may include the following steps:

[0085] Step S101: After establishing a connection with the receiving end, perform mouse action detection.

[0086] Step S102: When a mouse action is detected, the mouse graphic used by the mouse action is determined from the mouse theme data in the cache, and the mouse theme symbol and mouse graphic symbol corresponding to the mouse graphic are determined.

[0087] Step S103: Send the mouse theme mark and mouse graphic mark corresponding to the mouse graphic and the action information corresponding to the mouse action to the receiving end, so that the receiving end can draw the mouse pointer according to the mouse theme mark and mouse graphic mark, and perform actions on the mouse pointer according to the action information corresponding to the mouse action.

[0088] Each mouse theme contains multiple mouse graphics. Different mouse themes are marked with different mouse theme symbols, and different mouse graphics are marked with different mouse graphic symbols. When the mouse graphic is animated, it is marked with a set of graphic frames and frame interval information corresponding to the animation.

[0089] It is important to understand that reference Figure 2As shown, the mouse has several different states, such as: normal selection, background operation, text selection, busy, and vertical resizing. Each state corresponds to a shape or animation. A mouse theme refers to a set of mouse icons or animations with the same style for each mouse state. Users can change the theme at any time, but cannot change the mouse shape for only one state.

[0090] It's also important to understand that when a mouse theme and its corresponding mouse cursor are labeled, a feature value is generated. This feature value is a unique and unchanging ID for a set of theme data, used for subsequent matching operations. This is called a theme token, or T_ID. Correspondingly, the cursor token can be denoted as S_ID.

[0091] It is also important to understand that after the sending end and the receiving end successfully connect, the mouse state synchronization listening service is started to start synchronizing the mouse state. This service can take many forms, such as an independent process or a thread within the application process; the service will run simultaneously on both the sending end and the receiving end.

[0092] It is also necessary to understand that the mouse state synchronization listening service on the sending end traverses all mouse themes on the local end, performs data format parsing, and reads characteristics such as mouse graphics, masks, animations, and animation frame intervals (mouse graphics refer to a set of data such as mouse images and masks, not just mouse graphics alone). When a mouse graphic is animated, the captured graphic may be a set of image frames.

[0093] It is also important to understand that during use, when the mouse cursor changes on the sending end, a mouse action will be generated. There are three main types of mouse actions: showing, hiding, and transforming. When the action is showing or transforming, the sending end only needs to send the mouse action, T_ID, and S_ID to the receiving end. When the mouse is hidden, only the action needs to be sent, and no other data is required.

[0094] It is also important to understand that when the receiving end receives mouse change data, if it is a display or deformation event, it reads the locally stored mouse shape data according to T_ID and S_ID, first determines the special attributes of the mouse shape to see if it is an animation; if so, it displays a set of animated shapes corresponding to the current S_ID in real time in a loop according to the frame interval, thus forming a real-time animated mouse shape; the local mouse shape will no longer flicker or lag due to network latency and other issues.

[0095] By using the control method described above, all mouse themes are synchronized from the sending end to the receiving end upon connection. Subsequent transmission only requires the transmission of theme symbols, graphic symbols, and actions. This further improves the smoothness of mouse animation, resolves the issue of flickering in continuous mouse transformation animations, and ultimately reduces mouse transformation latency.

[0096] Below, we will refer to Figures 1 to 5 The steps of the control method described above in this example embodiment will be explained in more detail.

[0097] In one embodiment, reference Figure 3 As shown, in step S101, before performing mouse action detection, the mouse themes of the sending and receiving ends are synchronized in the following way:

[0098] Step S301: Compare the mouse theme data in the cache with the mouse theme at the receiving end to determine the target mouse theme that exists in the cache but not at the receiving end.

[0099] Step S302: Send the target mouse theme data to the receiving end.

[0100] It's important to understand that the comparison between the cached mouse theme data and the receiving end yields two possible results: either the mouse theme data is present in the cache, or it is not. Specifically, after reading the data, the current theme data is compared with the data read from the sending end after the last synchronization. This comparison has two scenarios: If it's the first comparison during the handshake process, the sending end only has the receiver's feature value list and doesn't yet have the corresponding data; in this case, feature values ​​are generated first. If the connection is being monitored periodically for theme changes, it means that the sending end has corresponding real data for each cached T_ID, and the currently used mouse's graphic symbol and theme symbol are compared from the cached T_ID.

[0101] In one embodiment, step S301 includes the following two cases:

[0102] Scenario 1: When mouse theme data exists in the cache, mouse themes are compared as follows:

[0103] Step S3011: Obtain the mouse theme token from the mouse theme data and record it as the first mouse theme token.

[0104] Step S3012: Record the mouse theme mark obtained from the receiving end as the second mouse theme mark.

[0105] Step S3013: Compare the first mouse theme mark with the second mouse theme mark to determine the target mouse theme mark that exists in the first mouse theme mark but does not exist in the second mouse theme mark.

[0106] The second scenario: When mouse theme data is not present in the cache, mouse theme comparison is performed as follows.

[0107] Step S3015: Generate mouse theme data based on the currently installed mouse theme files locally, and write the generated mouse theme data into the cache.

[0108] Step S3016: Obtain the mouse theme token from the mouse theme data written to the cache and record it as the third mouse theme token.

[0109] Step S3017: Record the mouse theme mark obtained from the receiving end as the fourth mouse theme mark.

[0110] Step S3018: Compare the third mouse theme mark with the fourth mouse theme mark to determine the target mouse theme mark that exists in the third mouse theme mark but does not exist in the fourth mouse theme mark.

[0111] It's important to understand that the generated mouse theme data includes: the mouse theme symbol corresponding to each mouse theme, the mouse graphic contained in each mouse theme, and the mouse graphic symbol corresponding to each mouse graphic. The first scenario corresponds to the approach where the sending end does not delete the mouse theme data from the cache when the connection was last broken. The second scenario corresponds to the approach where the sending end deletes the mouse theme data from the cache when the connection was last broken. In this case, when the sending end reconnects to the receiving end, it needs to regenerate the mouse theme data and write it to the cache.

[0112] In one embodiment, step S302 may further include:

[0113] Step S3021: Send the mouse theme symbol of the target mouse theme, the mouse graphics contained in the target mouse theme, and the graphic symbols corresponding to each mouse graphic to the receiving end.

[0114] It's important to understand that the currently acquired, changing mouse theme data is encapsulated. First, it's identified by a T_ID, and then the specific mouse shape data is sequentially numbered, called S_ID. The key point here is that when the mouse shape is animated, the mouse shapes are grouped together, and this group of image data is identified by a unified S_ID. At the same time, a special attribute is added to identify that the mouse shape is an animation, and the animation frame interval is recorded. Simultaneously, the local end updates the T_ID list and its corresponding real theme data.

[0115] In one embodiment, reference Figure 4 As shown, the method also includes:

[0116] Step S401: Detect whether the synchronized mouse theme data has changed at a preset frequency, and write the changed mouse theme into the cache.

[0117] It is important to understand that the sending end needs to periodically detect changes in the mouse theme, because users may add new mouse themes at any time during use, requiring new detection and synchronization of new data.

[0118] In one embodiment, reference Figure 5 As shown, step S401 may also include:

[0119] Step S501: Sequentially obtain the data of each mouse theme in the currently installed mouse theme files on the local machine.

[0120] Step S502: Compare the currently acquired mouse theme data with the mouse theme data in the cache to determine whether the currently acquired mouse theme is a changed mouse theme.

[0121] It is important to understand that the system checks whether the synchronized mouse theme data has changed at a preset frequency. Therefore, it is also possible to directly compare the mouse theme token of the currently acquired mouse theme with the mouse theme token of the cached mouse theme to determine whether the currently acquired mouse theme has changed.

[0122] In one embodiment, step S502 may further include:

[0123] Step S5021: Determine the data length of the currently acquired mouse theme data.

[0124] Step S5022: Determine if a mouse theme with the same data length exists in the cache.

[0125] Step S5023: If it does not exist, then determine that the currently obtained mouse theme is the mouse theme that has changed.

[0126] Step S5024: If it exists, then based on the memory block comparison method, further determine whether there is a mouse theme with the same data content as the currently acquired mouse theme among the mouse themes of the same data length. If it exists, then determine that the currently acquired mouse theme is an unchanged mouse theme. If it does not exist, then determine that the currently acquired mouse theme is a changed mouse theme.

[0127] It's important to understand that when comparing theme data, the currently read data needs to be compared one by one with the theme data in the cache. To determine if two sets of themes are the same, the length of the shape data (including graphic, mask, and other attribute data) under each mouse state is compared first. If the lengths differ, it means the two sets of themes are different. When the shape data lengths are the same under the same mouse state, the data needs to be compared again by directly performing a memory block comparison on the shape data. If the memory block comparison results are also the same, it means the theme data is the same. This comparison method is more efficient because when the themes are different, the mouse shape data lengths are likely to be different, eliminating the need for a memory block comparison, which is used to prevent omissions.

[0128] In one embodiment, step S502 may further include:

[0129] Step S5025: Determine the size of each mouse graphic contained in the currently acquired mouse theme.

[0130] Step S5026: Determine whether there is a mouse theme in the cache that contains a mouse graphic of the same size.

[0131] Step S5027: If it does not exist, determine that the currently obtained mouse theme is the mouse theme that has changed;

[0132] Step S5028: If it exists, further determine whether the feature values ​​of each mouse graphic in the mouse theme containing mouse graphics of the same size correspond to the feature values ​​of each mouse graphic contained in the currently acquired mouse theme. If they are the same, determine that the acquired mouse theme is an unchanged mouse theme. If they are different, determine that the acquired mouse theme is a changed mouse theme.

[0133] It's important to understand that when comparing mouse themes, the dimensions of the mouse icons within each theme are compared first, followed by the shape data. When both the size and shape data of the mouse icons in a theme are identical, they are considered to be the same mouse theme. The mouse shape is treated as image data, and image processing algorithms are used to extract the features of each mouse shape within the current theme. The feature values ​​of multiple shapes are processed, including but not limited to, concatenation, to generate a new value. This new value is then (including but not limited to) added to or multiplied by the image size to generate a unique ID, which serves as the mouse shape feature value. Image size is considered here because some themes share the same shape features but differ only in size.

[0134] In one embodiment, step S401 may further include:

[0135] Step S4011: Generate the mouse theme symbol corresponding to the changed mouse theme and the graphic symbol of each mouse graphic contained in the changed mouse theme.

[0136] Step S4012: Write the generated mouse theme mark, mouse graphic mark, and each mouse graphic contained in the changed mouse theme into the cache.

[0137] In one embodiment, after the sending and receiving ends disconnect, the mouse theme data in the cache may or may not be cleared according to pre-set rules. It's important to understand that after the connection is broken, the sending end may or may not clear the cache.

[0138] In one embodiment, mouse theme tokens are generated in the following manner:

[0139] The mouse topic data is hashed using the MD5 message digest algorithm, and the result is used as the topic token of the mouse topic.

[0140] Alternatively, extract the image features of each mouse graphic contained in the mouse theme, perform mathematical operations on the extracted image features of each mouse graphic and the size data of the corresponding mouse graphic to obtain multiple mathematical operation results, concatenate the multiple mathematical operation results, and use the concatenated result as the theme symbol of the mouse theme.

[0141] It's important to understand that the MD5 message digest algorithm is a widely used cryptographic hash function that produces a 128-bit (16-byte) hash value to ensure the integrity and consistency of transmitted information. Treating the current topic data as plain data, performing an MD5 hash on it, and using the result as the mouse cursor shape feature value.

[0142] This example implementation also provides a method for controlling mouse display in a remote desktop system, see reference. Figure 6 As shown, the control method is applied to the receiving end and may include the following steps:

[0143] Step S601: Establish a connection with the sending end.

[0144] Step S602: Receive the mouse actions sent by the sending end, as well as the subject symbols and graphic symbols corresponding to the mouse actions.

[0145] Step S603: Determine the mouse graphic corresponding to the theme symbol and graphic symbol from the local mouse theme of the receiving end, and draw the mouse pointer according to the mouse graphic corresponding to the theme symbol and graphic symbol; at the same time, perform actions on the mouse pointer according to the action information.

[0146] Each mouse theme contains multiple mouse graphics. Different mouse themes are marked with different mouse theme symbols, and different mouse graphics are marked with different mouse graphic symbols. When the mouse graphic is animated, it is marked with a set of graphic frames and frame interval information corresponding to the animation.

[0147] It should be understood that the specific methods of executing operations related to the sending end in the mouse display control method of the remote desktop system have been described in detail in the relevant embodiments, and will not be elaborated here.

[0148] By using the control method described above, all mouse themes are synchronized from the sending end to the receiving end upon connection. Subsequent transmission only requires the transmission of theme symbols, graphic symbols, and actions. This further improves the smoothness of mouse animation, resolves the issue of flickering in continuous mouse transformation animations, and ultimately reduces mouse transformation latency.

[0149] In one embodiment, reference Figure 7 As shown, after establishing a connection with the sending end, the method also includes: synchronizing the mouse theme with the sending end in the following ways.

[0150] Step S701: Send the mouse theme token of the local mouse theme of the receiving end to the sending end, so that the sending end can determine whether the mouse themes on both sides are different based on the received mouse theme token.

[0151] Step S702: When the comparison result at the sending end is different, receive the target mouse theme data sent by the sending end and save it locally.

[0152] It's important to understand that the sending and receiving ends perform a handshake during mouse state synchronization. The receiving end sends a list of existing mouse theme T_ID data to the sending end to remove duplicate data. This reduces the amount of mouse theme data synchronization when the same receiving end repeatedly disconnects from the sending end. If it's the first connection and there's no local shape data, all remote shape data will be synchronized. After processing the mouse shape data, the data to be sent is packaged and sent to the receiving end. During packaging, lossless encoding and compression can be performed to further reduce network load; if there's no data, packaging and synchronization are necessary. After receiving the data, the receiving end unpacks it and stores each mouse shape data according to T_ID and S_ID. This improves storage search... For efficiency, hash tables or similar methods can be used for storage.

[0153] In conjunction with the above embodiments related to the sending and receiving ends, this example also provides a more specific implementation process:

[0154] For detailed solution procedures, please refer to [link / reference]. Figure 8 As shown, the details are as follows:

[0155] 1. After the sending end and receiving end successfully connect, start the mouse state synchronization listening service to begin mouse state synchronization.

[0156] 2. The sending and receiving ends perform a handshake during mouse state synchronization listening. The receiving end sends a list of existing mouse topic T_ID data to the sending end to remove duplicate data.

[0157] 3. The mouse state synchronization monitoring service on the sending end traverses all mouse themes on the local end, parses the data format, and reads characteristics such as mouse graphics, masks, animations, and animation frame intervals. After reading the data, it needs to compare the current theme data with the data read after the last synchronization on the local end (i.e., the sending end). The comparison is divided into two cases: if it is the first handshake, it means that this is the first comparison of the current connection. The sending end only has the receiver's feature value list and does not yet have the corresponding data. In this case, the feature value is generated first, and then it jumps to step 5 to compare T_IDs; if it is periodically monitoring theme changes during the connection process, it means that the T_IDs cached by the current sending end all have corresponding real data. Then it jumps to step 4 to compare data to speed up the comparison.

[0158] 4. When comparing topic data, the currently read data needs to be compared with the topic data in the cache one by one. To determine if two sets of topics are the same, first compare the length of the shape data (including graphic, mask, and other attribute data) under each mouse state. If the lengths are different, it means that the two sets of topics are different. When the shape data lengths are the same under the same mouse state, the data needs to be compared again. This can be done by directly comparing the shape data in memory blocks. If the memory block comparison results are also the same, it means that the topic data are the same. If all currently traversed topics are in the cache list, jump to step 3 and wait for the next state synchronization. If a topic data is not in the cache list, generate a T_ID and jump to step 6.

[0159] 5. Match the currently generated T_ID with the T_ID obtained from the receiving end. If a match is found, it means that the theme shape already exists on the receiving end. Add the current theme data as the real data corresponding to the T_ID. Skip the current mouse theme and compare the next theme data. If no match is found, it means that it is new theme data. Proceed to step 6.

[0160] 6. Encapsulate the currently acquired changing mouse theme data, first identifying it with T_ID, and then sequentially numbering the specific mouse shape data, called S_ID; the key point here is that when the mouse shape is animated, the mouse shapes are a group, and this group of image data is identified by a unified S_ID, while adding a special attribute to identify that the mouse shape is an animation, and recording the animation frame interval; at the same time, update the T_ID list and its corresponding real theme data on the local side;

[0161] 7. After the mouse cursor shape data has been processed, package the data to be sent and send it to the receiving end. If there is no data to be packaged and synchronized, you can skip directly to step 9;

[0162] 8. After receiving the data, the receiving end unpacks it and then stores the mouse shape data according to T_ID and S_ID.

[0163] 9. During use, when the mouse cursor changes on the sending end, a mouse action will be generated. When the action is to show or transform, the sending end only needs to send the mouse action, T_ID, and S_ID to the receiving end; when the mouse is hidden, only the action needs to be sent, and no other data is required.

[0164] 10. When the receiving end receives mouse change data, if it is a display or deformation event, it reads the mouse shape data stored locally according to T_ID and S_ID, first determines the special attributes of the mouse shape to see if it is an animation; if so, it displays a set of animated shapes corresponding to the current S_ID in real time in a loop according to the frame interval.

[0165] 11. The sending end needs to periodically detect changes in the mouse theme, because users may add a new mouse theme at any time during use. Jump to step 3 to perform new detection and synchronize new data.

[0166] Furthermore, in this exemplary embodiment, a virtual device capable of implementing the above-described method is also provided. This virtual device may include virtual modules that respectively implement each step of the above-described method.

[0167] This invention provides a remote desktop system, applied at the sending end, comprising:

[0168] The mouse action detection module is used to detect mouse actions after a connection is established with the receiving end.

[0169] The symbol determination module is used to determine the mouse graphic used by the mouse action from the mouse theme data in the cache when a mouse action is detected, and to determine the mouse theme symbol and mouse graphic symbol corresponding to the mouse graphic.

[0170] The sending module is used to send the mouse theme mark and mouse graphic mark corresponding to the mouse graphic and the action information corresponding to the mouse action to the receiving end, so that the receiving end can draw the mouse pointer according to the mouse theme mark and mouse graphic mark, and perform actions on the mouse pointer according to the action information corresponding to the mouse action.

[0171] Each mouse theme contains multiple mouse graphics. Different mouse themes are marked with different mouse theme symbols, and different mouse graphics are marked with different mouse graphic symbols. When the mouse graphic is animated, it is marked with a set of graphic frames and frame interval information corresponding to the animation.

[0172] This invention provides a remote desktop system, applied at a receiving end, comprising:

[0173] The connection module is used to establish a connection with the sending end;

[0174] The receiving module is used to receive mouse actions sent by the sending end, as well as the subject symbols and graphic symbols corresponding to the mouse actions;

[0175] The mouse action module is used to determine the mouse graphic corresponding to the theme mark and graphic mark from the local mouse theme of the receiving end, draw the mouse pointer according to the mouse graphic corresponding to the theme mark and graphic mark, and perform actions on the mouse pointer according to the action information.

[0176] Each mouse theme contains multiple mouse graphics. Different mouse themes are marked with different mouse theme symbols, and different mouse graphics are marked with different mouse graphic symbols. When the mouse graphic is animated, it is marked with a set of graphic frames and frame interval information corresponding to the animation.

[0177] The specific methods by which each module performs its operations have been described in detail in the embodiments of the method, and will not be elaborated upon here.

[0178] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units. Components shown as modules or units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of the disclosed solution according to actual needs. Those skilled in the art can understand and implement this without any inventive effort.

[0179] In exemplary embodiments of this disclosure, a computer-readable storage medium is also provided, having stored thereon a computer program that, when executed by, for example, a processor, can implement the steps of the mouse display control method in any of the above embodiments in a remote desktop system. In some possible implementations, various aspects of the invention can also be implemented as a program product comprising program code that, when run on a terminal device, causes the terminal device to perform the steps of the various exemplary embodiments of the invention described in the control method section of this specification.

[0180] refer to Figure 9As shown, a program product 900 for implementing the above-described method according to an embodiment of the present invention is described. It may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, the readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0181] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0182] The computer-readable storage medium may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0183] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0184] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the appended claims.

Claims

1. A method for controlling mouse display in a remote desktop system, characterized in that, The method is applied at the sending end and includes: After establishing a connection with the receiving end, mouse action detection is performed; When a mouse action is detected, the mouse graphic used by the mouse action is determined from the mouse theme data in the cache, and the mouse theme symbol and mouse graphic symbol corresponding to the mouse graphic are determined. The mouse theme symbol and mouse graphic symbol corresponding to the mouse graphic, as well as the action information corresponding to the mouse action, are sent to the receiving end, so that the receiving end can draw the mouse pointer according to the mouse theme symbol and the mouse graphic symbol, and perform actions on the mouse pointer according to the action information corresponding to the mouse action. Each mouse theme contains multiple mouse graphics. Different mouse themes are marked with different mouse theme symbols, and different mouse graphics are marked with different mouse graphic symbols. When the mouse graphic is an animation, the mouse graphic is marked with a set of graphic frames and frame interval information corresponding to the animation. Before performing mouse action detection, the method further includes synchronizing the mouse themes of the sending and receiving ends in the following manner: After establishing a connection with the receiving end, a mouse state synchronization monitoring service is started. The monitoring service performs mouse theme synchronization and runs simultaneously on both the sending end and the receiving end. The mouse theme data in the cache is compared with the mouse theme at the receiving end to determine the target mouse theme that exists in the cache but does not exist at the receiving end. The target mouse theme data is sent to the receiving end.

2. The control method according to claim 1, characterized in that, The step of comparing mouse theme data in the cache with the mouse theme at the receiving end to determine the target mouse theme that exists in the cache but not at the receiving end includes: When mouse theme data exists in the cache, mouse themes are compared as follows: Obtain the mouse theme token from the mouse theme data and record it as the first mouse theme token; The mouse theme mark obtained from the receiving end will be recorded as the second mouse theme mark; The first mouse theme mark is compared with the second mouse theme mark to determine the target mouse theme mark that exists in the first mouse theme mark but does not exist in the second mouse theme mark; When mouse theme data is not present in the cache, mouse themes are compared as follows: Mouse theme data is generated based on the currently installed mouse theme files locally, and the generated mouse theme data is written into the cache; wherein, the generated mouse theme data includes: the mouse theme symbol corresponding to each mouse theme, the mouse graphic contained in each mouse theme, and the mouse graphic symbol corresponding to each mouse graphic; Retrieve the mouse theme token from the mouse theme data written to the cache and record it as the third mouse theme token; The mouse theme token obtained from the receiving end will be recorded as the fourth mouse theme token; The third mouse theme mark is compared with the fourth mouse theme mark to determine the target mouse theme mark that exists in the third mouse theme mark but not in the fourth mouse theme mark.

3. The control method according to claim 1, characterized in that, Sending the target mouse theme data to the receiving end includes: The mouse theme symbol of the target mouse theme, the mouse graphics contained in the target mouse theme, and the graphic symbols corresponding to each mouse graphic are sent to the receiving end.

4. The control method according to claim 1, characterized in that, The method further includes: The system detects whether the synchronized mouse theme data has changed at a preset frequency, and writes any changed mouse themes into the cache.

5. The control method according to claim 4, characterized in that, The detection of whether the synchronized mouse theme data has changed includes: Retrieve data for each mouse theme from the currently installed mouse theme files on the local machine in sequence; The currently acquired mouse theme data is compared with the mouse theme data in the cache to determine whether the currently acquired mouse theme is a changed mouse theme.

6. The control method according to claim 5, characterized in that, The step of comparing the currently acquired mouse theme data with the mouse theme data in the cache to determine whether the currently acquired mouse theme is a changed mouse theme includes: Determine the length of the currently acquired mouse theme data; Determine whether a mouse theme with the same data length exists in the cache; If it does not exist, then the currently acquired mouse theme is determined to be a changed mouse theme; If it exists, then based on the memory block comparison method, it is further determined whether there is a mouse theme among the mouse themes with the same data length that has the exact same content as the currently acquired mouse theme. If it exists, then the currently acquired mouse theme is determined to be an unchanged mouse theme. If it does not exist, then the currently acquired mouse theme is determined to be a changed mouse theme.

7. The control method according to claim 5, characterized in that, The step of comparing the currently acquired mouse theme data with the mouse theme data in the cache to determine whether the currently acquired mouse theme is a changed mouse theme includes: Determine the dimensions of each mouse graphic contained in the currently acquired mouse theme; Determine whether a mouse theme containing a mouse graphic of the same size exists in the cache; If it does not exist, then the currently acquired mouse theme is determined to be a changed mouse theme; If they exist, it is further determined whether the feature values ​​of each mouse graphic in the mouse theme containing mouse graphics of the same size correspond to the feature values ​​of each mouse graphic contained in the currently acquired mouse theme. If they are the same, it is determined that the acquired mouse theme is an unchanged mouse theme. If they are not the same, it is determined that the acquired mouse theme is a changed mouse theme.

8. The control method according to claim 4, characterized in that, The process of writing the changed mouse theme into the cache includes: Generate the mouse theme symbol corresponding to the changed mouse theme and the graphic symbol of each mouse graphic contained in the changed mouse theme; The generated mouse theme symbol, mouse graphic symbol, and each mouse graphic contained in the changed mouse theme are written into the cache.

9. The control method according to claim 1, characterized in that, After the sending end disconnects from the receiving end, the mouse theme data in the cache may or may not be cleared according to a pre-set rule.

10. The control method according to any one of claims 1-9, characterized in that, The mouse theme marker is generated using the following method: The data of the mouse topic is hashed using the MD5 message digest algorithm, and the result is used as the topic token of the mouse topic. or, The image features of each mouse graphic contained in the mouse theme are extracted. The extracted image features of each mouse graphic are then subjected to mathematical operations with the size data of the corresponding mouse graphic to obtain multiple mathematical operation results. The multiple mathematical operation results are then concatenated, and the concatenated result is used as the theme symbol of the mouse theme.

11. A method for controlling mouse display in a remote desktop system, characterized in that, The method is applied at the receiving end and includes: Establish a connection with the sender; The receiving end sends mouse actions, as well as the corresponding subject symbols and graphic symbols for the mouse actions; The receiving end determines the mouse graphic corresponding to the theme symbol and the graphic symbol from the local mouse theme, and draws the mouse pointer according to the mouse graphic corresponding to the theme symbol and the graphic symbol; at the same time, it performs actions on the mouse pointer according to the action information. Each mouse theme contains multiple mouse graphics. Different mouse themes are marked with different mouse theme symbols, and different mouse graphics are marked with different mouse graphic symbols. When the mouse graphic is an animation, the mouse graphic is marked with a set of graphic frames and frame interval information corresponding to the animation. After establishing a connection with the sending end, the method further includes: synchronizing the mouse theme with the sending end in the following manner: After establishing a connection with the receiving end, a mouse state synchronization monitoring service is started. The monitoring service performs mouse theme synchronization and runs simultaneously on both the sending end and the receiving end. The receiver sends the mouse theme token of its local mouse theme to the sender so that the sender can determine whether the mouse themes on both sides are different based on the received mouse theme token. If the comparison results at the sending end are different, the target mouse theme data sent by the sending end is received and saved locally.

12. A remote desktop system, characterized in that, The system is applied at the sending end and includes: The mouse action detection module is used to detect mouse actions after a connection is established with the receiving end. The symbol determination module is used to determine the mouse graphic used by the mouse action from the mouse theme data in the cache when a mouse action is detected, and to determine the mouse theme symbol and mouse graphic symbol corresponding to the mouse graphic. The sending module is used to send the mouse theme mark and mouse graphic mark corresponding to the mouse graphic and the action information corresponding to the mouse action to the receiving end, so that the receiving end can draw the mouse pointer according to the mouse theme mark and the mouse graphic mark, and perform actions on the mouse pointer according to the action information corresponding to the mouse action. Each mouse theme contains multiple mouse graphics. Different mouse themes are marked with different mouse theme symbols, and different mouse graphics are marked with different mouse graphic symbols. When the mouse graphic is an animation, the mouse graphic is marked with a set of graphic frames and frame interval information corresponding to the animation. Before performing mouse action detection, synchronize the mouse themes of the sending and receiving ends using the following method: After establishing a connection with the receiving end, a mouse state synchronization monitoring service is started. The monitoring service performs mouse theme synchronization and runs simultaneously on both the sending end and the receiving end. The mouse theme data in the cache is compared with the mouse theme at the receiving end to determine the target mouse theme that exists in the cache but does not exist at the receiving end. The target mouse theme data is sent to the receiving end.

13. A remote desktop system, characterized in that, The system is applied at the receiving end and includes: The connection module is used to establish a connection with the sending end; The receiving module is used to receive mouse actions sent by the sending end, as well as the subject symbols and graphic symbols corresponding to the mouse actions; The mouse action module is used to determine the mouse graphic corresponding to the theme symbol and the graphic symbol from the local mouse theme of the receiving end, draw the mouse pointer according to the mouse graphic corresponding to the theme symbol and the graphic symbol, and perform actions on the mouse pointer according to the action information. Each mouse theme contains multiple mouse graphics. Different mouse themes are marked with different mouse theme symbols, and different mouse graphics are marked with different mouse graphic symbols. When the mouse graphic is an animation, the mouse graphic is marked with a set of graphic frames and frame interval information corresponding to the animation. After establishing a connection with the sender, synchronize the mouse theme with the sender using the following methods: After establishing a connection with the receiving end, a mouse state synchronization monitoring service is started. The monitoring service performs mouse theme synchronization and runs simultaneously on both the sending end and the receiving end. The receiver sends the mouse theme token of its local mouse theme to the sender so that the sender can determine whether the mouse themes on both sides are different based on the received mouse theme token. If the comparison results at the sending end are different, the target mouse theme data sent by the sending end is received and saved locally.

14. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed, can implement the steps of the mouse display control method in any one of the remote desktop systems of claims 1-10.

Citation Information

Patent Citations

  • Data transmission method, device and system

    CN107911353A