CN116700545B - Highlighting method, system, terminal and storage medium for cursor selected object - Google Patents
Highlighting method, system, terminal and storage medium for cursor selected object Download PDFInfo
- Publication number
- CN116700545B CN116700545B CN202310979249.0A CN202310979249A CN116700545B CN 116700545 B CN116700545 B CN 116700545B CN 202310979249 A CN202310979249 A CN 202310979249A CN 116700545 B CN116700545 B CN 116700545B
- Authority
- CN
- China
- Prior art keywords
- current
- current object
- target
- cursor
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000004590 computer program Methods 0.000 claims description 15
- 238000000926 separation method Methods 0.000 claims description 8
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000004364 calculation method Methods 0.000 description 10
- 230000001960 triggered effect Effects 0.000 description 6
- 230000003139 buffering effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006386 memory function Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
- G06F9/453—Help systems
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application relates to the technical field of computers, in particular to a method, a system, a terminal and a storage medium for highlighting a cursor selected object, wherein the method comprises the following steps: respectively acquiring a current object corresponding to the current position of the cursor and a history object corresponding to the history position of the cursor, judging whether the current object is consistent with the history object, and acquiring and maintaining the current display state of the current object if the current object is consistent with the history object; if the current object is inconsistent with the historical object, acquiring a target object; judging whether the current object is consistent with the target object, if so, setting the current object to be highlighted; and if the current object is inconsistent with the target object, setting the current object to be in low-light display. The application is beneficial to reducing the phenomenon of slow cursor and improving the user experience.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, a system, a terminal, and a storage medium for highlighting a cursor selected object.
Background
The computer is commonly called as a computer, is a modern electronic computing machine for high-speed computing, not only can carry out numerical value and logic computation, but also has a memory function, is a modern intelligent electronic device capable of automatically and rapidly processing mass data according to program operation, and is applied to various fields of national economy and various aspects of social life along with development and rapid popularization of the computer.
When a user uses a computer, in order to quickly know the moving route and position of a cursor and determine whether the cursor moves onto a target object, a hover and highlight operation is usually adopted, even if the object through which the cursor passes hovers and highlights, when the mouse moves, the cursor moves along with the mouse to pass through the object, however, when the moving speed of the cursor is too high or the object data through which the cursor passes is complex or the memory is large, the phenomenon of slow movement of the cursor is caused by too high frequency of triggering hover and highlight, so that the user experience is reduced.
Disclosure of Invention
In order to help reduce the phenomenon of slow cursor and improve the user experience, the application provides a method, a system, a terminal and a storage medium for highlighting a cursor selected object.
In a first aspect, the present application provides a method for highlighting a cursor selected object, which adopts the following technical scheme:
a method of highlighting a cursor selected object, comprising:
respectively acquiring a current object corresponding to the current position of the cursor and a history object corresponding to the history position of the cursor;
judging whether the current object is consistent with the historical object or not;
if the current object is consistent with the historical object, acquiring and maintaining the current display state of the current object;
if the current object is inconsistent with the historical object, acquiring a target object;
judging whether the current object is consistent with the target object or not;
if the current object is consistent with the target object, setting the current object to be highlighted;
and if the current object is inconsistent with the target object, setting the current object to be in low-brightness display.
By adopting the technical scheme, whether the current object corresponding to the current position of the cursor is consistent with the historical object corresponding to the historical position of the cursor is judged, if the current object is consistent with the historical object, the object corresponding to the cursor is not changed, so that the current display state of the current object can be directly obtained and maintained, and if the current object is inconsistent with the historical object, the cursor position is indicated to move from one object to another object, so that a target object is required to be further obtained and whether the current object is consistent with the target object is judged;
if the current object is consistent with the target object, the current object is the object needing editing operation, so that the current object needs to be set to be highlighted, if the current object is inconsistent with the target object, the current object is not the object needing editing operation, so that the target object can be set to be low-highlighting, highlighting is not triggered when a cursor passes through the current object, highlight data calculation is not required to be carried out on the current object again, whether the current display state needs to be changed is not required to be judged, relevant operation steps and data caching are reduced, and therefore the phenomenon of slow cursor is reduced, and user experience is improved.
Optionally, if the current object is consistent with the target object, the specific step of setting the current object to be highlighted includes:
if the current object is consistent with the target object, judging whether an operation guide exists or not;
if the operation guide exists, acquiring information corresponding to the current object as current object information;
judging whether the current object information is consistent with the operation guide or not;
if the current object information is not consistent with the operation guide, setting the current object to be highlighted;
and if the current object information accords with the operation guide, setting the current object as the low-brightness display.
By adopting the technical scheme, if the current object is consistent with the target object, the current object is the object needing to be edited, whether operation guidance exists is further judged, if the operation guidance exists, the user is indicated to carry out the current operation item according to the operation guidance, the information corresponding to the current object is firstly obtained as current object information, whether the current object information is consistent with the operation guidance is judged, if the current object information is not consistent with the operation guidance, the current operation information does not meet the requirement of the operation guidance, and the current operation information is required to be edited and operated, so that the current object is required to be set to be highlighted;
if the current object information accords with the operation guidance, the current operation information is indicated to meet the requirement of the operation guidance, so that editing and operation on the current operation information are not needed, the current object can be set to be low-brightness display, when a cursor passes through the current object, highlighting can not be triggered, so that calculation of highlighting data of the current object is not needed again, whether the current display state needs to be changed or not is not needed to be judged, related operation steps and data caching are reduced, and therefore the phenomenon of slow cursor is reduced, and the user experience is improved.
Optionally, the specific step of determining whether the current object information is consistent with the operation guidance includes:
acquiring target information corresponding to the current object information based on a preset corresponding rule and the operation guide;
judging whether the current object information is consistent with the target information or not;
if the current object information is consistent with the target information, judging that the current object information is consistent with the operation guide;
and if the current object information is inconsistent with the target information, judging that the current object information is inconsistent with the operation guide.
By adopting the technical scheme, the target information corresponding to the current information is acquired according to the preset corresponding rule and the operation guide, whether the current object information is consistent with the target information or not is judged, if the current object information is consistent with the target information, the current information is not required to be edited, and therefore the current object information is judged to be consistent with the operation guide; if the current object information is inconsistent with the target information, the current information is indicated to be edited, so that the current object information is judged not to be consistent with the operation guide; and judging whether the current object information is consistent with the operation guide or not by judging whether the object information is consistent with the target information or not, so that the current display state of the current object is set according to a judging result.
Optionally, if the current object is inconsistent with the historical object, the specific step of obtaining the target object includes:
if the current object is inconsistent with the historical object, judging whether a specified highlight object exists or not based on the operation guide;
if the appointed highlight object exists, taking the highlight object as the target object;
if the appointed highlight object does not exist, acquiring a current operation step based on the preset corresponding rule, the operation guide and the current object information;
acquiring a next operation step based on the current operation step and the operation guide;
and acquiring an object corresponding to the next operation step as the target object.
By adopting the technical scheme, if the current object is inconsistent with the historical object, the object corresponding to the cursor is indicated to be changed, whether the appointed highlight object exists is further required to be judged for determining the current display state of the current object, if the appointed highlight object exists, the fact that the current object is required to be set to be highlighted when the current object is the appointed highlight object is indicated, and therefore the appointed highlight object is directly taken as a target object; if the specified highlight object does not exist, the fact that the current object does not need to be subjected to strong highlight display is indicated, so that a current operation step is further obtained according to operation guidance, preset corresponding rules and current object information, a next operation step is obtained according to the current operation step and the operation guidance, and an object corresponding to the next operation step is obtained as a target object;
according to different conditions, a target object is selected, whether the current object is consistent with the target object or not is judged, when the current object is inconsistent with the target object, highlighting display is not needed for the current object, highlighting data calculation is not needed for the current object again, whether the current display state needs to be changed or not is not needed to be judged, relevant operation steps and data caching are reduced, and therefore the cursor retardation phenomenon is reduced, and the user experience is improved.
Optionally, if the current object is inconsistent with the target object, the specific step of setting the current object to be highlighted includes:
if the current object is inconsistent with the target object, acquiring a time node of the cursor, which is separated from the previous highlight object, as a separation time node;
acquiring a disengagement time based on the disengagement time node and the current time node;
judging whether the separation time is smaller than a preset time threshold value or not;
if the disengagement time is greater than or equal to the preset time threshold, setting the current object to be highlighted;
and if the separation time is smaller than the preset time threshold, setting the current object as the low-brightness display.
By adopting the technical scheme, if the current object is inconsistent with the target object, the detachment time node is obtained, detachment time is obtained according to the detachment time node and the current time node, whether the detachment time is smaller than a preset time threshold is judged, if the detachment time is larger than or equal to the preset time threshold, the duration from the last highlighting to finish is indicated to be longer than the preset time threshold, in order not to influence the operation experience of a user, the user needs to quickly know the current object corresponding to the current position of the cursor, the current object needs to be set to be highlighted, if the detachment time is smaller than the preset time threshold, the duration from the last highlighting to finish is indicated to not be longer than the preset time threshold, the user experience sense is not greatly influenced, so that the setting of the low highlighting of the current object can be continuously maintained, the user operation is not influenced, the highlighting triggering frequency is also helped to be reduced, the related operation steps and the data cache are reduced, the phenomenon of slow cursor is helped to be reduced, and the user experience is helped to be improved.
Optionally, the method further comprises:
acquiring a target state of the current object;
judging whether the target state is an unselected state;
and if the target state is the unselected state, setting the current object as the low-brightness display.
By adopting the technical scheme, the target state of the current object is obtained, whether the target state is an unselected state is judged, if the target state is the unselected state, the current position of the cursor is indicated to correspond to any data object, namely, the current position of the cursor is located at a blank position, so that the current object is set to be in low-brightness display, the current object is not required to be in high-brightness display, the calculation of high-brightness data of the current object is not required to be carried out again, whether the current display state is required to be changed is not required to be judged, related operation steps and data caching are reduced, the phenomenon of slow cursor is reduced, and the user experience is improved.
Optionally, after the determining whether the target state is the unselected state, the method further includes:
if the target state is a selected state, judging whether the current object is in an editing state or not;
and if the current object is in the editing state, setting the current object as the highlight.
By adopting the technical scheme, if the target state is the selected state, the current position of the cursor is indicated to correspond to the data object, whether the current object is in the editing state needs to be further judged in order to further determine the current display state of the current object, and if the current object is in the editing state, the current object is indicated to be edited, so that the current object is directly forced to be set to be highlighted.
In a second aspect, the application also discloses a highlighting system of the cursor selected object, which adopts the following technical scheme:
a highlighting system for a cursor selected object, comprising:
the first acquisition module is used for respectively acquiring a current object corresponding to the current position of the cursor and a history object corresponding to the history position of the cursor;
the first judging module is used for judging whether the current object is consistent with the historical object or not;
the second acquisition module is used for acquiring and maintaining the current display state of the current object if the current object is consistent with the historical object;
the third acquisition module is used for acquiring a target object if the current object is inconsistent with the historical object;
the second judging module is used for judging whether the current object is consistent with the target object or not;
the first setting module is used for setting the current object to be highlighted if the current object is consistent with the target object;
and the second setting module is used for setting the current object to be in low-brightness display if the current object is inconsistent with the target object.
By adopting the technical scheme, if the current object is consistent with the target object, the current object is the object needing to be edited, whether operation guidance exists is further judged, if the operation guidance exists, the user is indicated to carry out the current operation item according to the operation guidance, the information corresponding to the current object is firstly obtained as current object information, whether the current object information is consistent with the operation guidance is judged, if the current object information is not consistent with the operation guidance, the current operation information does not meet the requirement of the operation guidance, and the current operation information is required to be edited and operated, so that the current object is required to be set to be highlighted;
if the current object information accords with the operation guidance, the current operation information is indicated to meet the requirement of the operation guidance, so that editing and operation on the current operation information are not needed, the current object can be set to be low-brightness display, when a cursor passes through the current object, highlighting can not be triggered, so that calculation of highlighting data of the current object is not needed again, whether the current display state needs to be changed or not is not needed to be judged, related operation steps and data caching are reduced, and therefore the phenomenon of slow cursor is reduced, and the user experience is improved.
In a third aspect, the present application provides a computer apparatus, which adopts the following technical scheme:
an intelligent terminal comprising a memory, a processor, wherein the memory is configured to store a computer program capable of running on the processor, and the processor, when loaded with the computer program, performs the method of the first aspect.
By adopting the technical scheme, the computer program is generated based on the method of the first aspect and is stored in the memory to be loaded and executed by the processor, so that the intelligent terminal is manufactured according to the memory and the processor, and the intelligent terminal is convenient for a user to use.
In a fourth aspect, the present application provides a computer readable storage medium, which adopts the following technical scheme:
a computer readable storage medium having stored therein a computer program which, when loaded by a processor, performs the method of the first aspect.
By adopting the technical scheme, the method based on the first aspect generates the computer program, and stores the computer program in the computer readable storage medium to be loaded and executed by the processor, and the computer program is convenient to read and store through the computer readable storage medium.
In summary, the application has the following beneficial technical effects:
if the current object information accords with the operation guidance, the current operation information is indicated to meet the requirement of the operation guidance, so that editing and operation on the current operation information are not needed, the current object can be set to be low-brightness display, when a cursor passes through the current object, highlighting can not be triggered, so that calculation of highlighting data of the current object is not needed again, whether the current display state needs to be changed or not is not needed to be judged, related operation steps and data caching are reduced, and therefore the phenomenon of slow cursor is reduced, and the user experience is improved.
Drawings
FIG. 1 is a main flow chart of a highlighting method of a cursor selected object according to an embodiment of the present application;
FIG. 2 is a flowchart showing the specific steps of setting the current object to be highlighted if the current object is consistent with the target object;
FIG. 3 is a flowchart showing steps for determining whether current object information corresponds to an operation guideline;
FIG. 4 is a flowchart showing steps for acquiring a target object if the current object is inconsistent with the history object;
FIG. 5 is a flowchart showing the specific steps of setting the current object to be highlighted if the current object is inconsistent with the target object;
FIG. 6 is a flowchart of the steps of determining a target state of a current object and highlighting according to the determination;
FIG. 7 is a flowchart of steps after determining whether the target state is an unselected state;
FIG. 8 is a block diagram of a highlighting system for a cursor selected object according to an embodiment of the present application.
Reference numerals illustrate:
1. a first acquisition module; 2. a first judgment module; 3. a second acquisition module; 4. a third acquisition module; 5. a second judging module; 6. a first setting module; 7. and a second setting module.
Detailed Description
In a first aspect, the present application discloses a method for highlighting a cursor selected object.
Referring to fig. 1, a method for highlighting a cursor selected object includes steps S101 to S107:
step S101: and respectively acquiring the current object corresponding to the current position of the cursor and the historical object corresponding to the historical position of the cursor.
Specifically, in this embodiment, the current position of the cursor is the position corresponding to the current frame of the cursor, the historical position of the cursor is the position corresponding to the previous frame of the current frame of the cursor, the current object is the object corresponding to the current position of the cursor, and the historical object is the object corresponding to the historical position of the cursor.
Step S102: and judging whether the current object is consistent with the historical object.
Specifically, in this embodiment, whether the cursor position and the object corresponding to the cursor position change is determined by determining whether the current object is consistent with the history object.
Step S103: and if the current object is consistent with the historical object, acquiring and maintaining the current display state of the current object.
Specifically, in this embodiment, if the current object is consistent with the history object, it indicates that the current position of the cursor does not move compared with the history position of the cursor, or the moving range of the current position of the cursor does not exceed the range of the history object, that is, the object corresponding to the history position of the cursor is the same object, so only the current display state of the current object needs to be obtained and maintained, where the current display state includes highlighting and highlighting, and it is noted that in this embodiment, the highlighting is the default display state, that is, under normal conditions, all objects are highlighting.
Step S104: and if the current object is inconsistent with the historical object, acquiring the target object.
Specifically, in this embodiment, it is indicated that the cursor position has moved from one object to another, and thus it is necessary to further acquire a target object, that is, an object that needs to be edited or an object that needs to be highlighted.
Step S105: and judging whether the current object is consistent with the target object.
Specifically, in this embodiment, the current display state of the current object is determined by determining whether the current object is consistent with the target object.
Step S106: if the current object is consistent with the target object, the current object is set to be highlighted.
Specifically, in this embodiment, if the current object is consistent with the target object, it indicates that the current object is an object that needs to be edited or needs to be highlighted, and thus the current object is set to be highlighted.
Step S107: and if the current object is inconsistent with the target object, setting the current object to be in low-light display.
Specifically, in this embodiment, if the current object is inconsistent with the target object, it indicates that the current object is not an object that needs to be edited or that does not need to be highlighted, and thus the current object is set to be highlighted.
According to the highlighting method of the cursor selected object, whether the current object corresponding to the current position of the cursor is consistent with the historical object corresponding to the historical position of the cursor is judged, if the current object is consistent with the historical object, the object corresponding to the cursor is not changed, so that the current display state of the current object can be directly obtained and maintained, and if the current object is inconsistent with the historical object, the cursor position is indicated to be moved from one object to another object, so that further obtaining of the target object and judging of whether the current object is consistent with the target object are needed.
If the current object is consistent with the target object, the current object is the object needing editing operation, so that the current object needs to be set to be highlighted, if the current object is inconsistent with the target object, the current object is not the object needing editing operation, so that the target object can be set to be low-highlighting, highlighting is not triggered when a cursor passes through the current object, highlight data calculation is not required to be carried out on the current object again, whether the current display state needs to be changed is not required to be judged, relevant operation steps and data caching are reduced, and therefore the phenomenon of slow cursor is reduced, and user experience is improved.
Referring to fig. 2, in one implementation of the present embodiment, step S106: if the current object is consistent with the target object, the specific step of setting the current object to be highlighted includes steps S201 to S205:
step S201: if the current object is consistent with the target object, judging whether an operation guide exists.
Specifically, in this embodiment, the operation guide is a guide file that guides the user to perform operations according to a specific operation sequence, for example, when editing a CAD file, word or other documents are stored in advance, and the contents recorded in the Word or other documents are the sequence in which the CAD file is edited and the contents that need to be edited.
Step S202: and if the operation guide exists, acquiring information corresponding to the current object as current object information.
Specifically, in this embodiment, the current object information is information corresponding to the current object, for example, when editing a CAD file, the current object is a text editing box, and the text stored in the text editing box is "hello, beijing-! "the current object information is" hello, beijing-! ".
Step S203: and judging whether the current object information is consistent with the operation guide.
Specifically, in this embodiment, whether the current object information accords with the operation guidance is determined, that is, whether the current object information meets the requirement of the operation guidance is determined, for example, the current object information is "hello, beijing-! "and the content corresponding to the current object information in the operation guide is also" hello, beijing-! ", it indicates that the current object information is consistent with the operation guidance.
Step S204: and if the current object information is not consistent with the operation guide, setting the current object to be highlighted.
Specifically, in this embodiment, if the current object information does not conform to the operation guidance, it indicates that the current object information does not meet the requirement of the operation guidance, and editing and operating are required for the current operation information, so that the current object needs to be set to be highlighted.
Step S205: and if the current object information accords with the operation guide, setting the current object to be in low-light display.
Specifically, in this embodiment, if the current object information corresponds to the operation guidance, it indicates that the current operation information has satisfied the requirement of the operation guidance, so that editing and operation on the current operation information is not required, and thus the current object may be set to be highlighted.
According to the highlighting method of the cursor selected object, if the current object is consistent with the target object, the current object is the object needing to be edited, whether operation guidance exists is further judged, if the operation guidance exists, the user is indicated to perform the current operation item according to the operation guidance, information corresponding to the current object is firstly obtained to serve as current object information, whether the current object information is consistent with the operation guidance is judged, if the current object information is not consistent with the operation guidance, the current operation information does not meet the requirement of the operation guidance, editing and operation are needed to be performed on the current operation information, and therefore the current object needs to be set to be highlighted.
If the current object information accords with the operation guidance, the current operation information is indicated to meet the requirement of the operation guidance, so that editing and operation on the current operation information are not needed, the current object can be set to be low-brightness display, when a cursor passes through the current object, highlighting can not be triggered, so that calculation of highlighting data of the current object is not needed again, whether the current display state needs to be changed or not is not needed to be judged, related operation steps and data caching are reduced, and therefore the phenomenon of slow cursor is reduced, and the user experience is improved.
Referring to fig. 3, in one implementation of the present embodiment, the specific step of determining whether the current object information corresponds to the operation guidance in step S203 includes steps S301 to S304:
step S301: and acquiring target information corresponding to the current object information based on a preset corresponding rule and an operation guide.
Specifically, in this embodiment, a rule corresponding to the rule that the operation guide corresponds to the current operation object is preset, for example, when the CAD file is edited according to the Word document, the content of the a part in the Word document corresponds to the content of the a part in the CAD file; the target information is the file content in the operation guide corresponding to the current object information.
Step S302: and judging whether the current object information is consistent with the target information.
Step S303: and if the current object information is consistent with the target information, judging that the current object information is consistent with the operation guide.
Step S304: and if the current object information is inconsistent with the target information, judging that the current object information is inconsistent with the operation guide.
According to the highlighting method of the cursor selected object, which is provided by the embodiment, according to the preset corresponding rule and the operation guide, the target information corresponding to the current information is obtained, whether the current object information is consistent with the target information or not is judged, if the current object information is consistent with the target information, the current information is indicated to be free from editing operation, and therefore the current object information is judged to be consistent with the operation guide; if the current object information is inconsistent with the target information, the current information is indicated to be edited, so that the current object information is judged not to be consistent with the operation guide; and judging whether the current object information is consistent with the operation guide or not by judging whether the object information is consistent with the target information or not, so that the current display state of the current object is set according to a judging result.
Referring to fig. 4, in one implementation manner of the present embodiment, if the current object is inconsistent with the history object in step S104, the specific step of obtaining the target object includes steps S401 to S405:
step S401: if the current object is inconsistent with the historical object, judging whether a specified highlight object exists or not based on the operation guide.
Specifically, in this embodiment, a highlight object, that is, a pre-designated strong highlight object is designated, and if the current object is the designated highlight object, the current document is forcibly set to be highlighted.
Step S402: if the specified highlight object exists, the specified highlight object is taken as a target object.
Specifically, in the present embodiment, if the specified highlight object exists, it is indicated that the forced highlight object specified in advance exists, and therefore the specified highlight object is directly taken as the target object.
Step S403: and if the specified highlight object does not exist, acquiring the current operation step based on the preset corresponding rule, the operation guide and the current object information.
Specifically, in this embodiment, if the specified highlight object does not exist, the current operation step is found in the operation guidance according to the preset correspondence rule, and the current operation step is the operation step corresponding to the current object information in the operation guidance.
Step S404: based on the current operation step and the operation guidance, the next operation step is acquired.
Specifically, in this embodiment, in the next operation step, that is, in the operation guidance, the next operation step of the current operation step.
Step S405: and acquiring an object corresponding to the next operation step as a target object.
In the method for highlighting the cursor selected object provided in this embodiment, if the current object is inconsistent with the history object, it indicates that the object corresponding to the cursor has been changed, in order to determine the current display state of the current object, it needs to further determine whether a specified highlight object exists, if the specified highlight object exists, it indicates that when the current object is the specified highlight object, the current object must be set to be highlighted, so that the specified highlight object is directly used as the target object; if the specified highlight object does not exist, the fact that the current object does not need to be subjected to strong highlight display is indicated, so that the current operation step is further obtained according to the operation guide, the preset corresponding rule and the current object information, the next operation step is obtained according to the current operation step and the operation guide, and the object corresponding to the next operation step is obtained to serve as a target object.
According to different conditions, a target object is selected, whether the current object is consistent with the target object or not is judged, when the current object is inconsistent with the target object, highlighting display is not needed for the current object, highlighting data calculation is not needed for the current object again, whether the current display state needs to be changed or not is not needed to be judged, relevant operation steps and data caching are reduced, and therefore the cursor retardation phenomenon is reduced, and the user experience is improved.
Referring to fig. 5, in one implementation manner of the present embodiment, if the current object is inconsistent with the target object in step S107, the specific steps of setting the current object to be highlighted include steps S501 to S505:
step S501: and if the current object is inconsistent with the target object, acquiring a time node of the cursor, which is separated from the previous highlighted object, as a separation time node.
Specifically, in this embodiment, the departure time node, i.e., the time node when the cursor leaves the previous highlighted object, is, for example, 7 hours, 0 minutes and 0 seconds when the cursor leaves the previous highlighted object, and the departure time node is, for example, 7 hours, 0 minutes and 0 seconds.
Step S502: and acquiring the detachment time based on the detachment time node and the current time node.
Specifically, in this embodiment, the detachment time, that is, the time difference obtained by subtracting the detachment time node from the current time node, for example, the current time node is 7 hours 0 minutes 5 seconds, and the detachment time node is 7 hours 0 minutes 0 seconds, and the detachment time is 7 hours 0 minutes 5 seconds minus 7 hours 0 minutes 0 seconds, that is, the detachment time is 5 seconds.
Step S503: and judging whether the detachment time is smaller than a preset time threshold value.
Specifically, in this embodiment, the preset time threshold may be set to 5 seconds or other times.
Step S504: and if the detachment time is greater than or equal to a preset time threshold, setting the current object to be highlighted.
Specifically, in this embodiment, for example, the detachment time is 5 seconds, the preset time threshold is 5 seconds, and the detachment time is greater than or equal to the preset time threshold, then the current object is set to be highlighted.
Step S505: and if the separation time is smaller than the preset time threshold, setting the current object to be in low-brightness display.
Specifically, in this embodiment, for example, the detachment time is 4 seconds, the preset time threshold is 5 seconds, and the detachment time is less than the preset time threshold, the current object is set to be in low-light display.
According to the method for highlighting the cursor selected object, if the current object is inconsistent with the target object, the detachment time node is obtained, detachment time is obtained according to the detachment time node and the current time node, whether the detachment time is smaller than the preset time threshold is judged, if the detachment time is larger than or equal to the preset time threshold, the duration from the last highlighting to finish is indicated to be longer than the preset time threshold, in order not to influence the operation experience of a user, the user needs to quickly know the current object corresponding to the current position of the cursor, the current object needs to be set to be highlighted, if the detachment time is smaller than the preset time threshold, the duration from the last highlighting to finish is indicated to not be longer than the preset time threshold, and the user experience is not greatly influenced, so that the setting of the current object to be low-highlighted can be continuously maintained, the user operation is not only influenced, the highlighting triggering frequency is also reduced, the related operation steps and the data caching are reduced, and the delay phenomenon of the cursor is further reduced, and the user experience is improved.
Referring to fig. 6, in one implementation manner of the present embodiment, step S601 to step S603 are further included:
step S601: the target state of the current object is obtained.
Specifically, in this embodiment, the target state is the state of the current object, including the selected state and the unselected state.
Step S602: it is determined whether the target state is an unselected state.
Specifically, in this embodiment, whether the target state is an unselected state is determined, that is, whether the current position of the cursor corresponds to a data object is determined, and the data object can be edited by the unselected state, that is, the current position of the cursor does not correspond to the data object.
Step S603: if the target state is an unselected state, the current object is set to be highlighted.
Specifically, in this embodiment, if the target state is an unselected state, that is, the current position of the cursor does not correspond to the data object, for example, in the CAD file, the current position of the cursor does not belong to any blank position of the text.
According to the method for highlighting the cursor selected object, the target state of the current object is obtained, whether the target state is the unselected state is judged, if the target state is the unselected state, the current position of the cursor is indicated to correspond to any data object, namely, the current position of the cursor is located at a blank position, so that the current object is set to be in low-brightness display, the current object is not required to be in high-brightness display, the calculation of high-brightness data of the current object is not required to be carried out again, whether the current display state is required to be changed is not required to be judged, relevant operation steps and data buffering are reduced, and therefore the phenomenon of slow cursor is reduced, and user experience is improved.
Referring to fig. 7, in one implementation of the present embodiment, in step S602: after determining whether the target state is the unselected state, steps S701 to S702 are further included:
step S701: if the target state is the selected state, judging whether the current object is in the editing state.
Specifically, in the present embodiment, the edit status is a status in which text is being edited.
Step S702: and if the current object is in the editing state, setting the current object to be highlighted.
In the method for highlighting the cursor selected object provided in this embodiment, if the target state is the selected state, it indicates that the current position of the cursor corresponds to the data object, and in order to further determine the current display state of the current object, it needs to further determine whether the current object is in the editing state, and if the current object is in the editing state, it indicates that the current object is being edited, so that the current object is directly forced to be set to be highlighted.
The implementation principle of the highlighting method of the cursor selected object in the embodiment of the application is as follows: respectively acquiring a current object corresponding to the current position of the cursor and a history object corresponding to the history position of the cursor, judging whether the current object is consistent with the history object, and acquiring and maintaining the current display state of the current object if the current object is consistent with the history object; if the current object is inconsistent with the historical object, acquiring a target object; judging whether the current object is consistent with the target object, if so, setting the current object to be highlighted; and if the current object is inconsistent with the target object, setting the current object to be in low-light display.
In a second aspect, the application also discloses a highlighting system of the cursor selected object.
Referring to fig. 8, a highlighting system for a cursor selected object, comprising:
the first acquisition module 1 is used for respectively acquiring a current object corresponding to the current position of the cursor and a history object corresponding to the history position of the cursor;
a first judging module 2, configured to judge whether the current object is consistent with the historical object;
the second acquisition module 3 is used for acquiring and maintaining the current display state of the current object if the current object is consistent with the historical object;
the third obtaining module 4 is configured to obtain the target object if the current object is inconsistent with the history object;
a second judging module 5, configured to judge whether the current object is consistent with the target object;
the first setting module 6 is used for setting the current object to be highlighted if the current object is consistent with the target object;
and the second setting module 7, if the current object is inconsistent with the target object, the second setting module 7 is configured to set the current object to be low-brightness display.
In a third aspect, an embodiment of the present application discloses an intelligent terminal, including a memory, and a processor, where the memory is configured to store a computer program capable of running on the processor, and when the processor loads the computer program, execute a method for highlighting a cursor selection object in the foregoing embodiment.
In a fourth aspect, an embodiment of the present application discloses a computer readable storage medium, and a computer program is stored in the computer readable storage medium, where the computer program, when loaded by a processor, performs a method for highlighting a cursor selection object according to the above embodiment.
The above embodiments are not intended to limit the scope of the present application, so: all equivalent changes in structure, shape and principle of the application should be covered in the scope of protection of the application.
Claims (6)
1. A method of highlighting a cursor selected object, comprising:
respectively acquiring a current object corresponding to the current position of the cursor and a history object corresponding to the history position of the cursor;
judging whether the current object is consistent with the historical object or not;
if the current object is consistent with the historical object, acquiring and maintaining the current display state of the current object;
if the current object is inconsistent with the historical object, judging whether a specified highlight object exists or not based on operation guidance;
if the specified highlight object exists, taking the specified highlight object as a target object;
if the appointed highlight object does not exist, acquiring a current operation step based on a preset corresponding rule, the operation guide and the current object information;
acquiring a next operation step based on the current operation step and the operation guide;
acquiring an object corresponding to the next operation step as the target object;
judging whether the current object is consistent with the target object or not;
if the current object is consistent with the target object, acquiring information corresponding to the current object as current object information;
acquiring target information corresponding to the current object information based on the preset corresponding rule and the operation guide;
judging whether the current object information is consistent with the target information or not;
if the current object information is consistent with the target information, judging that the current object information is consistent with the operation guide;
if the current object information is inconsistent with the target information, judging that the current object information is inconsistent with the operation guide;
if the current object information is not consistent with the operation guide, setting the current object to be highlighted;
if the current object information accords with the operation guide, setting the current object to be in low-brightness display;
if the current object is inconsistent with the target object, acquiring a time node of the cursor, which is separated from the previous highlight object, as a separation time node;
acquiring a disengagement time based on the disengagement time node and the current time node;
judging whether the separation time is smaller than a preset time threshold value or not;
if the disengagement time is greater than or equal to the preset time threshold, setting the current object to be highlighted;
and if the separation time is smaller than the preset time threshold, setting the current object as the low-brightness display.
2. The method of highlighting a cursor selected object of claim 1, further comprising:
acquiring a target state of the current object;
judging whether the target state is an unselected state;
and if the target state is the unselected state, setting the current object as the low-brightness display.
3. The method of claim 2, further comprising, after said determining whether said target state is an unselected state:
if the target state is a selected state, judging whether the current object is in an editing state or not;
and if the current object is in the editing state, setting the current object as the highlight.
4. A system for highlighting a cursor selected object for performing a method of highlighting a cursor selected object as claimed in claims 1 to 3, comprising:
the first acquisition module (1) is used for respectively acquiring a current object corresponding to the current position of the cursor and a history object corresponding to the history position of the cursor;
a first judging module (2) for judging whether the current object is consistent with the historical object;
the second acquisition module (3) is used for acquiring and maintaining the current display state of the current object if the current object is consistent with the historical object;
a third obtaining module (4), wherein if the current object is inconsistent with the historical object, the third obtaining module (4) is used for obtaining a target object;
a second judging module (5) for judging whether the current object is consistent with the target object;
a first setting module (6), wherein if the current object is consistent with the target object, the first setting module (6) is used for setting the current object to be highlighted;
and the second setting module (7) is used for setting the current object to be low-brightness display if the current object is inconsistent with the target object.
5. A smart terminal comprising a memory, a processor, wherein the memory is adapted to store a computer program capable of running on the processor, and wherein the processor, when loaded with the computer program, performs the method of any one of claims 1 to 3.
6. A computer readable storage medium having a computer program stored therein, characterized in that the computer program, when loaded by a processor, performs the method of any of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310979249.0A CN116700545B (en) | 2023-08-05 | 2023-08-05 | Highlighting method, system, terminal and storage medium for cursor selected object |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310979249.0A CN116700545B (en) | 2023-08-05 | 2023-08-05 | Highlighting method, system, terminal and storage medium for cursor selected object |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116700545A CN116700545A (en) | 2023-09-05 |
CN116700545B true CN116700545B (en) | 2023-12-08 |
Family
ID=87831490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310979249.0A Active CN116700545B (en) | 2023-08-05 | 2023-08-05 | Highlighting method, system, terminal and storage medium for cursor selected object |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116700545B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0448496A2 (en) * | 1990-03-12 | 1991-09-25 | International Business Machines Corporation | Dynamic selective correlation of graphic entities |
US6295069B1 (en) * | 1998-08-18 | 2001-09-25 | Alventive, Inc. | Three dimensional computer graphics tool facilitating movement of displayed object |
CN104794140A (en) * | 2014-01-22 | 2015-07-22 | 腾讯科技(深圳)有限公司 | Text highlighting method and device |
CN113204296A (en) * | 2021-04-23 | 2021-08-03 | 万翼科技有限公司 | Method, device and equipment for highlighting graphics primitive and storage medium |
CN115686314A (en) * | 2022-10-12 | 2023-02-03 | 广州中望龙腾软件股份有限公司 | Cursor-based object highlighting method, intelligent terminal and storage medium |
-
2023
- 2023-08-05 CN CN202310979249.0A patent/CN116700545B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0448496A2 (en) * | 1990-03-12 | 1991-09-25 | International Business Machines Corporation | Dynamic selective correlation of graphic entities |
US6295069B1 (en) * | 1998-08-18 | 2001-09-25 | Alventive, Inc. | Three dimensional computer graphics tool facilitating movement of displayed object |
CN104794140A (en) * | 2014-01-22 | 2015-07-22 | 腾讯科技(深圳)有限公司 | Text highlighting method and device |
CN113204296A (en) * | 2021-04-23 | 2021-08-03 | 万翼科技有限公司 | Method, device and equipment for highlighting graphics primitive and storage medium |
CN115686314A (en) * | 2022-10-12 | 2023-02-03 | 广州中望龙腾软件股份有限公司 | Cursor-based object highlighting method, intelligent terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN116700545A (en) | 2023-09-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7437674B2 (en) | Video processing methods | |
US20140115436A1 (en) | Annotation migration | |
JPH09282080A (en) | Information input method/device | |
CN111428430B (en) | Method, device, equipment and medium for acquiring circuit device information in circuit design | |
CN112561859A (en) | Monocular vision-based steel belt drilling and anchor net identification method and device for anchoring and protecting | |
KR102793221B1 (en) | Systems and methods for saving and surfacing content | |
CN106598926B (en) | Operation revocation method and device | |
CN117221822A (en) | Network optimization method, device, electronic equipment and readable storage medium | |
CN104079798A (en) | Image detection method and device as well as video monitoring system | |
US20070067348A1 (en) | Repeated Segment Manager | |
CN116700545B (en) | Highlighting method, system, terminal and storage medium for cursor selected object | |
CN115098205B (en) | Control method for realizing IA flow editing interface based on RPA and AI | |
US20080086724A1 (en) | Controller for machine tool | |
US10437230B2 (en) | Numerical controller having function of automatically selecting storage destination of machining program | |
US9075494B2 (en) | Systems and methods for performing object selection | |
US20180067785A1 (en) | Performance of data pasting-related action based on cut or copied data attribute | |
CN117390029A (en) | Table entry inserting method and device, electronic equipment and storage medium | |
CN117473984A (en) | Method and system for dividing txt document content chapters | |
CN116740144A (en) | Target tracking method, device, equipment and medium | |
CN105512339A (en) | File searcher and searching method | |
CN106293830A (en) | Component call method and device | |
CN106354750A (en) | Method and device for achieving searching | |
CN105893603A (en) | Blood-relationship analysis method and blood-relationship analysis device of field level on basis of ETL (Extract Transform Loading) | |
US20130290657A1 (en) | Storing data in containers | |
CN111461027A (en) | Vehicle detection method and device and license plate recognition method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |