CN112684965A - Dynamic wallpaper state changing method and device, electronic equipment and storage medium - Google Patents

Dynamic wallpaper state changing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112684965A
CN112684965A CN202011581801.3A CN202011581801A CN112684965A CN 112684965 A CN112684965 A CN 112684965A CN 202011581801 A CN202011581801 A CN 202011581801A CN 112684965 A CN112684965 A CN 112684965A
Authority
CN
China
Prior art keywords
area
screenshot
dynamic wallpaper
state
desktop
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.)
Pending
Application number
CN202011581801.3A
Other languages
Chinese (zh)
Inventor
焦若珺
胡晓东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Mihoyo Tianming Technology Co Ltd
Original Assignee
Shanghai Mihoyo Tianming Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Mihoyo Tianming Technology Co Ltd filed Critical Shanghai Mihoyo Tianming Technology Co Ltd
Priority to CN202011581801.3A priority Critical patent/CN112684965A/en
Publication of CN112684965A publication Critical patent/CN112684965A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a dynamic wallpaper state changing method, a dynamic wallpaper state changing device, electronic equipment and a storage medium, wherein the method comprises the following steps: monitoring screenshot operation and determining screenshot information of the monitored screenshot operation; determining whether the screenshot area of the screenshot operation meets the triggering condition of a desktop dynamic wallpaper area or not based on the screenshot information; and if so, controlling to change the playing state of the desktop dynamic wallpaper. The technical scheme of the embodiment of the invention realizes that the playing state of the desktop dynamic wallpaper is changed when the screenshot area meets the trigger condition of the desktop dynamic wallpaper area in the screenshot process of the user, and the interaction between the dynamic wallpaper and the user is improved.

Description

Dynamic wallpaper state changing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a dynamic wallpaper state changing method and device, electronic equipment and a storage medium.
Background
Desktop wallpaper of a computer is generally a static picture or a dynamic video, the static picture can be replaced at a fixed time according to a preset mode, and the dynamic video can be played circularly according to the fixed mode. However, both static pictures and dynamic videos are presented to the user in a fixed mode, and feedback on the operation of the user on the computer cannot be achieved, for example, when the user performs screenshot operation, desktop wallpaper does not change, and user experience is poor.
Disclosure of Invention
The embodiment of the invention provides a dynamic wallpaper state changing method and device, electronic equipment and a storage medium, so as to realize interaction between dynamic wallpaper and a user and improve user experience.
In a first aspect, an embodiment of the present invention provides a method for changing a dynamic wallpaper state, where the method includes:
monitoring screenshot operation and determining screenshot information of the monitored screenshot operation;
determining whether the screenshot area of the screenshot operation meets the triggering condition of a desktop dynamic wallpaper area or not based on the screenshot information;
and if so, controlling to change the playing state of the desktop dynamic wallpaper.
In a second aspect, an embodiment of the present invention further provides a device for changing a dynamic wallpaper state, where the device includes:
the screenshot information determining module is used for monitoring screenshot operation and determining the screenshot information of the monitored screenshot operation;
the trigger condition determining module is used for determining whether the screenshot area of the screenshot operation meets the trigger condition of the desktop dynamic wallpaper area or not based on the screenshot information;
and the playing state changing module is used for controlling and changing the playing state of the desktop dynamic wallpaper if the desktop dynamic wallpaper is in the playing state.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method for dynamic wallpaper state change as in any of the embodiments of the invention.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for dynamic wallpaper state change according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, the screenshot operation is continuously monitored, when the screenshot operation is monitored, the screenshot information of the screenshot operation is obtained, whether the screenshot area corresponding to the screenshot operation meets the triggering condition of the desktop dynamic wallpaper area or not is determined according to the screenshot information, and if so, the playing state of the desktop dynamic wallpaper is controlled to be changed. The technical scheme of the embodiment of the invention realizes that the playing state of the desktop dynamic wallpaper is changed when the screenshot area meets the trigger condition of the desktop dynamic wallpaper area in the screenshot process of the user, and the interaction between the dynamic wallpaper and the user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a flowchart illustrating a dynamic wallpaper state change method according to a first embodiment of the invention;
fig. 2 is a flowchart illustrating a dynamic wallpaper state change method according to a second embodiment of the invention;
FIG. 3 is an example of a screenshot area in a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a dynamic wallpaper state change method according to a third embodiment of the invention;
fig. 5 is a schematic structural diagram of a dynamic wallpaper state changing apparatus according to a fourth embodiment of the invention;
fig. 6 is a schematic structural diagram of an electronic device in a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart illustrating a dynamic wallpaper state changing method according to an embodiment of the present invention, where the method is applicable to a situation where a playing state of a dynamic wallpaper on a display interface is changed, and the method may be executed by a dynamic wallpaper state changing apparatus, and the apparatus may be implemented in a form of software and/or hardware.
As illustrated in fig. 1, the method of the embodiment of the present invention includes the steps of:
and S110, monitoring screenshot operation and determining screenshot information of the monitored screenshot operation.
The screenshot operation includes, but is not limited to, a screenshot operation on any window and/or desktop on the desktop. The monitoring screenshot operation comprises the following steps: and monitoring screenshot operation triggered by any one of a mouse, a keyboard, a touch screen and a software internal interface. The software internal interface refers to an internal interface of a certain screenshot software, and when the screenshot software is used for screenshot, screenshot operation is obtained through the internal interface. The screenshot information refers to information obtained by the screenshot operation, and includes, but is not limited to, screenshot position information, screenshot image information, screenshot window information, screenshot time information, and the like. The initial monitoring time for monitoring the screenshot operation includes, but is not limited to, a power-on action, a time corresponding to a trigger action of a certain function key, and the like. And continuously monitoring screenshot operation, and when the screenshot operation is monitored, acquiring screenshot information generated by the screenshot operation.
S120, determining whether the screenshot area of the screenshot operation meets the triggering condition of the desktop dynamic wallpaper area or not based on the screenshot information. If yes, go to step S130, otherwise, go back to step S110.
The screenshot area refers to an area covered by the screenshot box corresponding to the screenshot operation, and may cover any area of the desktop, the dynamic desktop wallpaper is a desktop wallpaper with dynamic changes, for example, the dynamic changes may be, but are not limited to, rain, snow, a color change of the wallpaper as a whole or the layout, a motion of a person or an animal, and the like, and the motion change of the person or the animal may be, but is not limited to, a dynamic change of the person or the animal, dancing, speaking, walking, and the like. The desktop dynamic wallpaper area refers to a changeable area of preset dynamic wallpaper, and the area can be in any size or any shape, and of course, the area can be visible or invisible. For example, the desktop dynamic wallpaper area is a target object area in the dynamic wallpaper, for example, the target object is a cartoon character, deer horn, and dynamically changes into walking, dancing, and the like of the character, and the target object area is an overall outline area of the target object or a target object bounding box area, wherein the target object is an object with dynamic changes, for example, a character, an animal, a plant, and the like. The trigger conditions of the desktop dynamic wallpaper area include, but are not limited to, that the screenshot area includes all desktop dynamic wallpaper areas, that the desktop dynamic wallpaper area includes a plurality of sub-areas, that the screenshot area includes a certain sub-area of the desktop dynamic wallpaper area, that the screenshot area includes any desktop dynamic wallpaper area (for example, any sub-area) has an overlapping portion, and the like. And determining whether the screenshot area meets the triggering condition of the desktop dynamic wallpaper area according to the screenshot information so as to determine whether the playing state of the desktop dynamic wallpaper is changed.
And S130, controlling and changing the playing state of the desktop dynamic wallpaper.
The playing state of the desktop dynamic wallpaper is at least two preset playing states, and the playing state of the desktop dynamic wallpaper can be the playing state of the whole desktop dynamic wallpaper area. For example, the dynamic desktop wallpaper changes into rain, snow, wind and the like, or the dancing state and the resting state of the target object in the dynamic desktop wallpaper, and the playing state of the dynamic desktop wallpaper is controlled to change from rain to snow. Changing the playing state of the desktop dynamic wallpaper may be switching the current playing state to another playing state, where the another playing state may be determined randomly or according to the sequence of the playing states; changing the playing state of the desktop dynamic wallpaper may also switch the playing frequency of the image frame sequence in the current playing state, the audio data in the playing state, and the like.
In some embodiments, the desktop dynamic wallpaper area may be set to different sub-areas, different playing states may be set in different areas of the desktop dynamic wallpaper, and the playing state corresponding to the sub-area may be triggered according to the difference of the sub-areas triggering the desktop dynamic wallpaper. For example, the desktop dynamic wallpaper area is a target object area in the dynamic wallpaper, for example, the target object is a character, the plurality of sub-areas include a head, a hand, a leg, an abdomen, and the like of the character, and each sub-area corresponds to a different playing state of the desktop dynamic wallpaper. Or setting different playing states according to the time for triggering the desktop dynamic wallpaper area, and the like, and setting different time periods, wherein each time period sets different playing states for the desktop dynamic wallpaper. For example, the 24 hours are averagely divided into 6 time periods, each time period corresponds to one playing state, when screenshot information is obtained, time information in the screenshot information is obtained, and the playing state of the desktop dynamic wallpaper is determined according to the time information. When the screenshot area determined according to the screenshot information meets the condition of triggering the desktop dynamic wall area, the playing state of the desktop dynamic wallpaper is controlled to be changed, the playing state can be changed into the playing state corresponding to the sub-area according to the fact that the screenshot area comprises the sub-area of the desktop dynamic wallpaper area, optionally, the playing state corresponding to the sub-area can be the change of the whole desktop wallpaper area, or can be the change of the playing state in the sub-area. The playing state of the desktop dynamic wallpaper can be changed according to a preset sequence, the playing state can be randomly switched, the playing state corresponding to the sub-area of the desktop dynamic wallpaper can be determined according to the screenshot area, and the like.
According to the technical scheme of the embodiment of the invention, the screenshot operation is continuously monitored, when the screenshot operation is monitored, the screenshot information of the screenshot operation is obtained, whether the screenshot area corresponding to the screenshot operation meets the triggering condition of the desktop dynamic wallpaper area or not is determined according to the screenshot information, and if so, the playing state of the desktop dynamic wallpaper is controlled to be changed. The technical scheme of the embodiment of the invention realizes that the playing state of the desktop dynamic wallpaper is changed when the screenshot area meets the trigger condition of the desktop dynamic wallpaper area in the screenshot process of the user, and the interaction between the dynamic wallpaper and the user is improved.
On the basis of the alternative of the above embodiment, after step 120, the method further comprises: determining whether the desktop dynamic wallpaper area is in a full-coverage state; and if so, keeping the current playing state of the desktop dynamic wallpaper.
The full coverage state of the desktop dynamic wallpaper area refers to a state that the desktop dynamic wallpaper area is completely covered after being overlapped by at least one window on the desktop in a window area, for example, the at least one window covers the desktop dynamic wallpaper area for the window area in a maximized form, or the desktop dynamic wallpaper area is covered by the whole window area after the at least one window is overlapped in a small window form in the window area. The mode of determining whether the desktop dynamic wallpaper area is in the full-coverage state may be a mode of comparing a window area of at least one window with the desktop dynamic wallpaper area, when the number of windows is multiple, the window areas of the multiple windows are overlapped to determine an overall window area obtained by adding the multiple windows, and when the overall window area covers the desktop dynamic wallpaper area, the desktop dynamic wallpaper area is determined to be in the full-coverage state. When the desktop dynamic wallpaper area is in the full-coverage state, the user cannot observe the playing state change of the desktop dynamic wallpaper, so that the current playing state of the desktop dynamic wallpaper can be kept and determined.
On the basis of the alternatives of the above embodiment, after step 130, the method further comprises: and controlling the playing state of the desktop dynamic wallpaper to be switched to the original playing state.
The original playing state refers to a state before the playing state of the desktop dynamic wallpaper is changed, and when the playing state of the desktop dynamic wallpaper is changed, and the desktop dynamic wallpaper is played based on the changed playing state of the desktop dynamic wallpaper and then is switched to the original playing state. The playing times or time of the playing state of the desktop dynamic wallpaper after being changed can be set according to the actual situation, and is not limited specifically here. Of course, the dynamic wallpaper of the desktop may be played always according to the changed playing state.
Example two
Fig. 2 is a flowchart of a dynamic wallpaper state change method provided by an embodiment of the present invention, which is a refinement of steps 120 and 130 on the basis of an alternative scheme of the foregoing embodiment, where, optionally, when capturing the coordinate information of the area marking box, step 120 includes: and determining whether any position point in the desktop dynamic wallpaper area is located in the screenshot area or not based on the coordinate information of the screenshot area mark frame and the coordinate information of the desktop dynamic wallpaper area. Step 130 comprises: calling at least one play action of the desktop dynamic wallpaper; and controlling the desktop dynamic wallpaper to switch the current playing state to the at least one playing action. Technical terms identical or similar to those of the above embodiments will not be described again.
As shown in fig. 2, the method for changing a dynamic wallpaper state according to an embodiment of the present invention includes the following steps:
s210, monitoring screenshot operation, and determining screenshot information of the monitored screenshot operation.
S220, determining whether any position point in the desktop dynamic wallpaper area is located in the screenshot area or not based on the coordinate information of the screenshot area mark frame and the coordinate information of the desktop dynamic wallpaper area. If yes, go to step S230, otherwise go to step S240.
Wherein, the screenshot information includes: and (5) coordinate information of a marking frame of the screenshot area. The screenshot area mark box refers to a frame of an image acquired during screenshot operation and is represented in a mark box form, and the shape of the mark box includes, but is not limited to, a square, a circle and the like. When the marking frame is square, the coordinate information is the coordinate information of four corners, and when the marking frame is round, the coordinate information of the marking frame is the center coordinate and the radius length. The coordinate information of the mark frame expresses position information of the mark frame. Any position point in the desktop dynamic wallpaper area includes, but is not limited to, a sub-area in the desktop dynamic wallpaper area, and may be a sub-area formed by at least one pixel point. Determining whether any position point in the desktop dynamic wallpaper area is located in the screenshot area or not based on the coordinate information of the screenshot area mark frame and the coordinate information of the desktop dynamic wallpaper area, optionally determining the size and the position of the mark frame according to the coordinate information of the screenshot area mark frame, similarly, determining the size and the position of the desktop dynamic wallpaper area according to the desktop dynamic wallpaper area, and determining whether any position point in the desktop dynamic wallpaper area is contained in the screenshot area mark frame according to the coordinate information.
S230, calling at least one play action of the desktop dynamic wallpaper; and controlling the desktop dynamic wallpaper to switch the at least one play action in the current play state.
The playing action may be the playing action of the whole desktop dynamic wallpaper or the local playing action of the desktop dynamic wallpaper. For example, the playing action of the dynamic desktop wallpaper as a whole can be rain, rain stop, cloud scattering, sunshine and the like. The playing action of the local part of the desktop dynamic wallpaper can be the walking and dancing of the person in the desktop dynamic wallpaper, or the blinking, speaking, smiling, hand lifting and the like of the person. The playing state includes at least one playing action, and the playing state may be a playing action or may include a plurality of playing actions, for example, the playing state is a sensitive covering of a character, including a plurality of playing actions, covering a face, flushing, lowering a head, and the like. Optionally, the playing actions are ordered, the order among the playing actions, the playing times of the playing actions, the playing time, the playing times and the playing time of the playing state, and the like are preset, at least one playing action included in the playing state is stored, and the playing state and the corresponding playing action are stored. Optionally, all the play actions may be pre-stored in the resource file, including a name of the play action, an image frame sequence corresponding to the play action, and the like, and when a play state needs to be set, at least one play action may be called from the resource file. Optionally, the set playing state is also stored, and the set playing state includes a name of the playing state, a preset desktop dynamic wallpaper area triggering the playing state, a playing action corresponding to the playing state, and the like, and may be stored in the resource file. The order between the play actions may be distinguished according to the order in which the play actions are stored or the manner in which numbers are set for the play actions. And after the screenshot area is determined to meet the triggering condition of the desktop dynamic wallpaper area, calling a playing state corresponding to the desktop dynamic wallpaper area from the resource file for playing. Of course, all playback actions and the set playback state may be stored in different areas. The storage area may be a hard disk (mobile hard disk, solid state hard disk, mechanical hard disk, etc.), an optical disk, a U disk, etc.
Optionally, the desktop dynamic wallpaper area includes at least one state trigger area; the invoking of the at least one play action of the desktop dynamic wallpaper includes: determining a state trigger area triggered by the screenshot area based on the screenshot information; and calling at least one play action corresponding to each state trigger area.
The state trigger area refers to an area in which the playing state of the desktop dynamic wallpaper is changed when the screenshot area contains the area. Status trigger areas include, but are not limited to, local areas or global areas in the desktop dynamic wallpaper area. The screenshot information determines a status trigger area triggered by the screenshot area, e.g., the screenshot area contains the status trigger area. It should be noted that when the area of the screenshot area, which includes the state trigger area, is larger than the pre-area range, it is determined that the screenshot area includes the state trigger area. As shown in fig. 3, the dynamic desktop wallpaper area in the drawing includes four state trigger areas corresponding to four different playing states, only one screenshot area is provided in the drawing, the screenshot area includes a state trigger area of a character head, and at least one playing action corresponding to the playing state of the character head state trigger area is invoked for playing. And when the screenshot area is determined to contain the state trigger area, calling at least one playing action corresponding to each state trigger area to change the playing state of the desktop dynamic wallpaper. Optionally, after invoking at least one play action corresponding to each state trigger area, the method further includes: and if the current playing state is different from the corresponding playing state of the state trigger area, the playing state of the desktop dynamic wallpaper is changed according to at least one playing action of the playing state corresponding to the state trigger area.
Optionally, the desktop dynamic wallpaper area is divided into a plurality of state trigger areas which are not included, a playing sequence of the desktop dynamic wallpaper corresponding to each state trigger area is preset, and when the screenshot area includes at least two state trigger areas, the desktop dynamic wallpaper is played according to the playing sequence of the desktop dynamic wallpaper corresponding to the preset state trigger areas. For example, when the screenshot area includes two state trigger areas a and b, the playback state corresponding to the state trigger area a is first switched to according to the preset playback sequence, and when all of at least one playback action corresponding to the playback state of the state trigger area a is played, the playback state corresponding to the state trigger area b is switched to. Optionally, the desktop dynamic wallpaper area includes a plurality of state trigger areas having a containment relationship, for example, the desktop dynamic wallpaper area includes a state trigger area 1, and the state trigger area 1 is divided into two parts, one part is a state trigger area 2, and the other part is a state trigger area 3, and each state trigger area corresponds to a playing state of the respective desktop dynamic wallpaper. When the screenshot area comprises the state trigger areas 2 and 3, namely the state trigger area 1, calling the playing state corresponding to the state trigger area 1, namely at least one playing action, and changing the playing state of the desktop dynamic wallpaper.
And S240, keeping the current playing state of the desktop dynamic wallpaper.
When any position point in the desktop dynamic wallpaper area is not in the picture-cutting area, the current playing state of the desktop dynamic wallpaper can be maintained.
According to the technical scheme of the embodiment of the invention, the screenshot operation is monitored, the screenshot information of the monitored screenshot operation is determined, whether any position point in the desktop dynamic wallpaper area is located in the screenshot area is determined based on the coordinate information of the screenshot area mark frame and the coordinate information of the desktop dynamic wallpaper area, if yes, at least one playing action of the desktop dynamic wallpaper is called, and the desktop dynamic wallpaper is controlled to switch over at least one playing action in the current playing state, so that the change of the playing state of the desktop dynamic wallpaper is completed. According to the technical scheme of the embodiment of the invention, whether the screenshot area contains the desktop dynamic wallpaper area can be accurately obtained by comparing the coordinate information of the screenshot area marking frame with the coordinate information of the desktop dynamic wallpaper area. And calling at least one playing action corresponding to the playing state to enable the playing effect of the desktop dynamic wallpaper to be better, enable the playing visual impression of the desktop dynamic wallpaper to be better, and improve the interaction between the dynamic wallpaper and a user.
EXAMPLE III
Fig. 4 is a flowchart illustrating a dynamic wallpaper state changing method according to an embodiment of the invention. The embodiment of the invention is a preferable embodiment of an alternative scheme of the above embodiments, the dynamic wallpaper of the desktop in the embodiment of the invention is the wallpaper of a person, and the dynamic wallpaper area of the desktop is the area where the person is located.
Optionally, the screenshot operation is monitored by a desktop monitoring module. And storing the coordinate information of the desktop dynamic wallpaper area, the coordinate information of the state trigger area of each desktop dynamic wallpaper area, the playing state corresponding to the state trigger area and the like through a state machine. For example, the status trigger area is the head area of a person, the playing status name is a shame, and the corresponding playing actions are flushing, lowering the head, raising the hands and covering the face, and the like. The resource file includes a playing state, at least one playing action corresponding to the playing state, a playing order of the at least one playing action corresponding to each playing state, an image frame sequence corresponding to the playing action, a time and a frequency of playing the image frame sequence, etc., and the resource file may be stored in the mobile hard disk or in the computer, where a storage location of the resource file is not specifically limited herein. And controlling the playing state of the desktop dynamic wallpaper through the playing state control module. Optionally, the play states and play actions in the resource file have a one-to-one correspondence relationship with the play states and play actions in the state machine, and the one-to-one correspondence relationship between the play states in the state machine and the play states and play actions in the resource file may be represented in the form of a mapping table.
Specifically, screenshot operation is continuously monitored through a desktop monitoring module, when screenshot keyboard hot key triggering is monitored, a desktop area is obtained according to mouse information, screenshot area coordinate information is converted into desktop dynamic wallpaper coordinate information, the obtained coordinate information is sent to a state machine, and the coordinate information of the screenshot area is compared with the coordinate information of the desktop dynamic wallpaper area through the state machine to determine whether the screenshot area completely covers the desktop dynamic wallpaper area. And when the desktop dynamic wallpaper area is completely covered, no subsequent operation is carried out, and the current playing state of the desktop dynamic wallpaper is kept. When the desktop dynamic wallpaper area is not completely covered, the coordinate information of the screenshot area is compared with the coordinate information of each state trigger area to determine whether the screenshot area comprises the state trigger area of the desktop dynamic wallpaper area, if so, the corresponding playing state of the state trigger area and at least one playing action corresponding to the playing state are sent to the playing state control module through the state machine, and the corresponding playing state, at least one playing action with order and the image frame sequence corresponding to each playing action in the resource file are obtained from the mapping table through the playing state control module according to the playing state. And playing the information such as the playing action corresponding to the acquired playing state in sequence according to the sequence of the playing action so as to complete the change of the playing state of the desktop dynamic wallpaper.
According to the technical scheme of the embodiment of the invention, the screenshot operation is determined to be started according to hot key triggering in a keyboard, the screenshot area is determined according to mouse information, coordinate information of the screenshot area is obtained, whether the screenshot area completely covers a desktop dynamic wallpaper area is determined according to the coordinate information of the screenshot area, if yes, the coordinate information of the screenshot area is compared with the coordinate information of each state triggering area, the state triggering area contained in the screenshot area is determined, the playing state corresponding to the state triggering area and at least one corresponding playing action are determined, and the playing state of the desktop dynamic wallpaper is changed, so that a user can watch the change of the desktop dynamic wallpaper during the screenshot operation, the visual impression of the user is improved, and the experience degree of the user is improved.
Example four
Fig. 5 is a schematic structural diagram of a dynamic wallpaper state change device according to an embodiment of the present invention, where the dynamic wallpaper state change device according to an embodiment of the present invention can execute a dynamic wallpaper state change method according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. The device includes: screenshot information determination module 510, trigger condition determination module 520, and play state change module 530, wherein:
a screenshot information determining module 510, configured to monitor a screenshot operation and determine screenshot information of the monitored screenshot operation;
a trigger condition determining module 520, configured to determine, based on the screenshot information, whether a screenshot area of the screenshot operation meets a trigger condition of a desktop dynamic wallpaper area;
and a playing state changing module 530, configured to control to change the playing state of the desktop dynamic wallpaper if the desktop dynamic wallpaper is in the desktop dynamic wallpaper.
Further, the screenshot information includes: coordinate information of a screenshot area marking frame; the trigger condition determining module 520 includes:
and the position point determining submodule is used for determining whether any position point in the desktop dynamic wallpaper area is positioned in the screenshot area or not based on the coordinate information of the screenshot area marking frame and the coordinate information of the desktop dynamic wallpaper area.
Further, the playing state changing module 530 includes:
the playing action calling submodule is used for calling at least one playing action of the desktop dynamic wallpaper;
and the playing action switching submodule is used for controlling the desktop dynamic wallpaper to switch the current playing state to the at least one playing action.
Further, the apparatus further comprises:
and the original playing state switching module is used for controlling the playing state of the desktop dynamic wallpaper to be switched to the original playing state.
Further, the apparatus further comprises:
a current playing state keeping module, configured to determine whether the desktop dynamic wallpaper area is in a full-coverage state; and if so, keeping the current playing state of the desktop dynamic wallpaper.
According to the technical scheme of the embodiment of the invention, the screenshot operation is continuously monitored, when the screenshot operation is monitored, the screenshot information of the screenshot operation is obtained, whether the screenshot area corresponding to the screenshot operation meets the triggering condition of the desktop dynamic wallpaper area or not is determined according to the screenshot information, and if so, the playing state of the desktop dynamic wallpaper is controlled to be changed. According to the technical scheme of the embodiment of the invention, the playing state of the desktop dynamic wallpaper is changed when the screenshot area meets the trigger condition of the desktop dynamic wallpaper area in the screenshot process of the user, so that the user experience is improved.
It should be noted that, the units and modules included in the system are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
EXAMPLE five
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary device 60 suitable for use in implementing embodiments of the present invention. The device 60 shown in fig. 6 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 6, device 60 is embodied in a general purpose computing device. The components of the device 60 may include, but are not limited to: one or more processors or processing units 601, a system memory 602, and a bus 603 that couples various system components including the system memory 602 and the processing unit 601.
Bus 603 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 60 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 60 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 602 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)604 and/or cache memory 605. The device 60 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 606 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 603 by one or more data media interfaces. Memory 602 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 608 having a set (at least one) of program modules 607 may be stored, for example, in memory 602, such program modules 607 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 607 generally perform the functions and/or methods of the described embodiments of the invention.
Device 60 may also communicate with one or more external devices 609 (e.g., keyboard, pointing device, display 610, etc.), with one or more devices that enable a user to interact with device 60, and/or with any devices (e.g., network card, modem, etc.) that enable device 60 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 611. Also, device 60 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via network adapter 612. As shown, a network adapter 612 communicates with the other modules of device 60 via bus 603. It should be appreciated that although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with device 60, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 601 executes various functional applications and data processing by running a program stored in the system memory 602, for example, to implement the dynamic wallpaper changing method provided by the embodiment of the present invention.
EXAMPLE six
Embodiments of the present invention also provide a storage medium containing computer-executable instructions that, when executed by a computer processor, are configured to perform a method for dynamic wallpaper change.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A dynamic wallpaper state change method is characterized by comprising the following steps:
monitoring screenshot operation and determining screenshot information of the monitored screenshot operation;
determining whether the screenshot area of the screenshot operation meets the triggering condition of a desktop dynamic wallpaper area or not based on the screenshot information;
and if so, controlling to change the playing state of the desktop dynamic wallpaper.
2. The method of claim 1, wherein the screenshot information comprises: coordinate information of a screenshot area marking frame;
the step of determining whether the screenshot area of the screenshot operation meets the triggering condition of the desktop dynamic wallpaper area or not based on the screenshot information comprises the following steps:
and determining whether any position point in the desktop dynamic wallpaper area is located in the screenshot area or not based on the coordinate information of the screenshot area mark frame and the coordinate information of the desktop dynamic wallpaper area.
3. The method of claim 1, wherein the controlling to alter the playing state of the desktop dynamic wallpaper comprises:
calling at least one play action of the desktop dynamic wallpaper;
and controlling the desktop dynamic wallpaper to switch the current playing state to the at least one playing action.
4. The method of claim 3, wherein the desktop dynamic wallpaper area comprises at least one state trigger area;
the invoking of the at least one play action of the desktop dynamic wallpaper includes:
determining a state trigger area triggered by the screenshot area based on the screenshot information;
and calling at least one play action corresponding to each state trigger area.
5. The method as claimed in claim 3, wherein after controlling the desktop dynamic wallpaper to switch the current playing state to the at least one playing action, the method further comprises:
and controlling the playing state of the desktop dynamic wallpaper to be switched to the original playing state.
6. The method as claimed in claim 1, wherein after determining that the screenshot area of the screenshot operation satisfies a trigger condition of a desktop dynamic wallpaper area, the method further comprises:
determining whether the desktop dynamic wallpaper area is in a full-coverage state;
and if so, keeping the current playing state of the desktop dynamic wallpaper.
7. The method of claim 1, wherein the monitoring screenshot operation comprises:
and monitoring screenshot operation triggered by any one of a mouse, a keyboard, a touch screen and a software internal interface.
8. A dynamic wallpaper state change apparatus, comprising:
the screenshot information determining module is used for monitoring screenshot operation and determining the screenshot information of the monitored screenshot operation;
the trigger condition determining module is used for determining whether the screenshot area of the screenshot operation meets the trigger condition of the desktop dynamic wallpaper area or not based on the screenshot information;
and the playing state changing module is used for controlling and changing the playing state of the desktop dynamic wallpaper if the desktop dynamic wallpaper is in the playing state.
9. An electronic device, characterized in that the device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a dynamic wallpaper state change method as recited in any one of claims 1-7.
10. A storage medium containing computer executable instructions for performing the dynamic wallpaper state change method as recited in any one of claims 1-7 when executed by a computer processor.
CN202011581801.3A 2020-12-28 2020-12-28 Dynamic wallpaper state changing method and device, electronic equipment and storage medium Pending CN112684965A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011581801.3A CN112684965A (en) 2020-12-28 2020-12-28 Dynamic wallpaper state changing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011581801.3A CN112684965A (en) 2020-12-28 2020-12-28 Dynamic wallpaper state changing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112684965A true CN112684965A (en) 2021-04-20

Family

ID=75453919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011581801.3A Pending CN112684965A (en) 2020-12-28 2020-12-28 Dynamic wallpaper state changing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112684965A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113986377A (en) * 2021-10-26 2022-01-28 维沃移动通信有限公司 Wallpaper interaction method and device and electronic equipment
CN114385293A (en) * 2021-12-29 2022-04-22 珠海豹趣科技有限公司 Dynamic wallpaper display method and device based on system video player, electronic equipment and storage medium
CN113986377B (en) * 2021-10-26 2024-10-15 维沃移动通信有限公司 Wallpaper interaction method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3163423A1 (en) * 2014-07-30 2017-05-03 Huawei Technologies Co., Ltd. Method and device for setting background of ui control and terminal
CN110908762A (en) * 2019-11-22 2020-03-24 珠海豹趣科技有限公司 Dynamic wallpaper implementation method and device
CN111880879A (en) * 2020-07-24 2020-11-03 上海米哈游天命科技有限公司 Playing method, device, equipment and storage medium of dynamic wallpaper
CN111880880A (en) * 2020-07-24 2020-11-03 上海米哈游天命科技有限公司 Interaction method, device, equipment and storage medium for dynamic wallpaper and desktop

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3163423A1 (en) * 2014-07-30 2017-05-03 Huawei Technologies Co., Ltd. Method and device for setting background of ui control and terminal
CN110908762A (en) * 2019-11-22 2020-03-24 珠海豹趣科技有限公司 Dynamic wallpaper implementation method and device
CN111880879A (en) * 2020-07-24 2020-11-03 上海米哈游天命科技有限公司 Playing method, device, equipment and storage medium of dynamic wallpaper
CN111880880A (en) * 2020-07-24 2020-11-03 上海米哈游天命科技有限公司 Interaction method, device, equipment and storage medium for dynamic wallpaper and desktop

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113986377A (en) * 2021-10-26 2022-01-28 维沃移动通信有限公司 Wallpaper interaction method and device and electronic equipment
CN113986377B (en) * 2021-10-26 2024-10-15 维沃移动通信有限公司 Wallpaper interaction method and device and electronic equipment
CN114385293A (en) * 2021-12-29 2022-04-22 珠海豹趣科技有限公司 Dynamic wallpaper display method and device based on system video player, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
EP3129871B1 (en) Generating a screenshot
US10394437B2 (en) Custom widgets based on graphical user interfaces of applications
KR102150733B1 (en) Panning animations
US20090193363A1 (en) Representing Multiple Computing Resources Within A Predefined Region Of A Graphical User Interface For Displaying A Single Icon
CN111880879B (en) Playing method, device, equipment and storage medium of dynamic wallpaper
US10452231B2 (en) Usability improvements for visual interfaces
CN111158820B (en) Control click event processing method and device, electronic equipment and storage medium
US20220392130A1 (en) Image special effect processing method and apparatus
CN112799801B (en) Method, device, equipment and medium for drawing simulated mouse pointer
CN113244612A (en) Locking mark display method and device, storage medium and electronic equipment
WO2024066752A1 (en) Display control method and apparatus, head-mounted display device, and medium
CN109873980B (en) Video monitoring method and device and terminal equipment
CN112316437B (en) Resource switching method and device, electronic equipment and storage medium
CN112684965A (en) Dynamic wallpaper state changing method and device, electronic equipment and storage medium
EP3699731A1 (en) Method and device for calling input method, and server and terminal
KR102225476B1 (en) Application control of embedded web content execution
US20230259457A1 (en) Electronic apparatus and control method thereof
CN113742716B (en) Code running method, device, electronic equipment, storage medium and program product
CN115510508A (en) Page information protection method and device and electronic equipment
CN112367295B (en) Plug-in display method and device, storage medium and electronic equipment
CN110928622B (en) Picture display state adjusting method and device and electronic equipment
US20140086550A1 (en) System, terminal device, and image capturing method
US20180300160A1 (en) Host and Component Relationship between Applications
CN115348478B (en) Equipment interactive display method and device, electronic equipment and readable storage medium
US12001752B1 (en) Voice assistance in virtual reality environments and augmented reality environments

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210420