CN108984092B - Device control method, device, storage medium and electronic device - Google Patents

Device control method, device, storage medium and electronic device Download PDF

Info

Publication number
CN108984092B
CN108984092B CN201810682445.0A CN201810682445A CN108984092B CN 108984092 B CN108984092 B CN 108984092B CN 201810682445 A CN201810682445 A CN 201810682445A CN 108984092 B CN108984092 B CN 108984092B
Authority
CN
China
Prior art keywords
instruction group
instruction
target instruction
preset
candidate
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
Application number
CN201810682445.0A
Other languages
Chinese (zh)
Other versions
CN108984092A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810682445.0A priority Critical patent/CN108984092B/en
Publication of CN108984092A publication Critical patent/CN108984092A/en
Application granted granted Critical
Publication of CN108984092B publication Critical patent/CN108984092B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a device control method, a device, a storage medium and an electronic device, wherein the device control method is applied to the electronic device comprising a screen, and comprises the following steps: acquiring a track of at least two fingers sliding on the screen in the same direction and touch duration of each track point in the track; determining a target instruction group from a plurality of candidate instruction groups according to the touch duration; determining a target instruction from the target instruction group according to the track; the electronic equipment is correspondingly controlled according to the target instruction, so that various equipment functions can be started in a multi-finger sliding mode without entering a related operation interface, and the method is simple and high in flexibility.

Description

Device control method, device, storage medium and electronic device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a device control method and apparatus, a storage medium, and an electronic device.
Background
With the development of terminal technology, mobile terminals, especially intelligent terminals, have increasingly powerful functions, and are becoming an indispensable part of people's lives.
In the using process of the intelligent terminal, a user often uses various functions, such as a screen locking function, a screen splitting function, a sound adjusting function, a screen rotating function, a memory cleaning function and the like, generally, if the user needs to execute a certain function, the user needs to enter a related interface and execute the function through the related interface, and for different functions, the user may need to enter different interfaces, so that the operation is complex and the flexibility is poor.
Disclosure of Invention
The embodiment of the application provides a device control method, a device, a storage medium and an electronic device, various functions of the device do not need to be executed through an interface, and the method is simple.
The embodiment of the application provides a device control method, which is applied to electronic equipment, wherein the electronic equipment comprises a screen, and the device control method comprises the following steps:
acquiring the locus of the equidirectional sliding of at least two fingers on the screen and the touch duration of each track point in the locus;
determining a target instruction group from a plurality of candidate instruction groups according to the touch duration of the starting point and the touch duration of the ending point;
determining a target instruction from the target instruction group according to the track;
and correspondingly controlling the electronic equipment according to the target instruction.
An embodiment of the present application further provides an apparatus control device, which is applied to an electronic device, where the electronic device includes a screen, and the apparatus control device includes:
the acquisition module is used for acquiring the tracks of the at least two fingers sliding on the screen in the same direction and the touch duration of each track point in the tracks;
the first determining module is used for determining a target instruction group from a plurality of candidate instruction groups according to the touch duration;
the second determining module is used for determining a target instruction from the target instruction group according to the track;
and the control module is used for correspondingly controlling the electronic equipment according to the target instruction.
The embodiment of the application also provides a computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute any one of the above device control methods.
An embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used in any one of the steps of the device control method described above.
The device control method, the device, the storage medium and the electronic device are applied to the electronic device comprising a screen, a target instruction group is determined from a plurality of candidate instruction groups according to the touch duration by obtaining the trajectories of at least two fingers sliding in the same direction on the screen and the touch duration of each track point in the trajectories, then the target instruction is determined from the target instruction group according to the trajectories, and the electronic device is correspondingly controlled according to the target instruction, so that various device functions can be started in a multi-finger sliding mode without entering a related operation interface, the method is simple, the flexibility is high, and the user experience is good.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic view of an application scenario of an apparatus control system according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of an apparatus control method according to an embodiment of the present application.
Fig. 3 is another schematic flow chart of the device control method according to the embodiment of the present application.
Fig. 4 is a schematic view of various sliding directions provided in the embodiments of the present application.
Fig. 5 is a schematic diagram of file transmission and window adjustment provided in an embodiment of the present application.
Fig. 6 is a flowchart illustrating step 209 according to an embodiment of the present application.
Fig. 7 is another flowchart of step 209 provided in this embodiment of the present application.
Fig. 8 is another flowchart of step 209 provided in this embodiment of the present application.
Fig. 9 is another flowchart of step 209 provided in this embodiment of the present application.
Fig. 10 is a schematic structural diagram of an apparatus control device according to an embodiment of the present application.
Fig. 11 is another schematic structural diagram of the device control apparatus according to the embodiment of the present application.
Fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a device control method and device, a storage medium and an electronic device.
Referring to fig. 1, fig. 1 provides a schematic view of an application scenario of a device control system, where the device control system may include any one of the device control apparatuses provided in the embodiments of the present application, and the device control apparatus may be integrated in an electronic device, and the electronic device may include a device with a touch function, such as a smart phone and a tablet computer.
The electronic equipment can acquire a track formed by sliding at least two fingers on the screen in the same direction and touch duration of each track point in the track, wherein the track points comprise a starting point and an end point, a target instruction group is determined from a plurality of candidate instruction groups according to the touch duration of the starting point and the touch duration of the end point, then a target instruction is determined from the target instruction group according to the track, and the electronic equipment is correspondingly controlled according to the target instruction.
For example, the set of candidate instructions may include at least a first set of candidate instructions that may include instructions for indicating an adjustment to a device parameter and a second set of candidate instructions that may include instructions for indicating a state switch to a device mode. The preset time period may be set manually, for example, 3 seconds or 4 seconds, which is slightly longer than the time required for normally ending the motion, and is used for representing a pause state, generally, a touch time period of any track point is shorter than the preset time period, which represents that the finger does not pause at the track point, and a touch time period greater than or equal to the preset time period represents that the finger has a pause state at the track point.
In fig. 1, when the electronic device is in the unlocked state, if it is detected that two fingers of the user slide in the same direction on the screen, it may be determined which candidate instruction group is selected according to a pause condition at the starting point and the ending point, for example, a first candidate instruction group is selected if the user pauses only at the starting point, a second candidate instruction group is selected if the user pauses only at the ending point, or both the ending point and the starting point are not paused, and then a single instruction may be further determined from the candidate instruction groups according to the trajectory, for example, when the trajectory is a slide-down, an instruction for increasing a volume value or a brightness value is selected in the first candidate instruction group, and in the second candidate instruction group, if the user slides only at the ending point, an instruction for switching the state of the cleaning mode is selected, for example, the cleaning mode is switched from the non-cleaning state to the cleaning state, if the cleaning mode is switched at the end point. When the trajectory is a slide-up, an instruction to reduce the volume value or the brightness value is selected in the first candidate instruction group, and an instruction to switch the state of the notification mode, such as switching the notification mode from the notification-allowed state to the notification-prohibited state, is selected in the second candidate instruction group.
As shown in fig. 2, fig. 2 is a schematic flowchart of a device control method provided in an embodiment of the present application, and is applied to an electronic device, where the electronic device includes a screen, and a specific flow may be as follows:
101. and acquiring the locus of the co-sliding of at least two fingers on the screen and the touch duration of each track point in the locus.
In this embodiment, when the electronic device is in a normal use state (that is, in an unlocked state), the sliding information of the finger on the screen may be detected in real time, where the sliding information includes a sliding point position and a corresponding touch time, and a corresponding sliding track is generated according to the sliding information, where the sliding track generally refers to a regular or irregular line segment formed from a starting point to an end point, such as a straight line segment, a broken line segment, a curved line segment, and the like. The unidirectional sliding refers to sliding in the same direction, and generally, a sliding track formed when a plurality of fingers slide in the same direction is a plurality of line segments with the same shape.
102. And determining a target instruction group from a plurality of candidate instruction groups according to the touch duration.
For example, the trace point may include a starting point and an ending point, and the candidate instruction group may include a first candidate instruction group and a second candidate instruction group, in this case, the step 102 may specifically include:
judging whether the touch time length of the starting point is not less than a preset time length or not;
if so, acquiring a first candidate instruction group as a target instruction group when the touch duration of the terminal point is less than a preset duration, wherein the first candidate instruction group comprises an instruction for instructing and controlling the electronic equipment to carry out parameter adjustment;
if not, when the touch duration of the terminal point is less than the preset duration, a second candidate instruction group is obtained as a target instruction group, and the second candidate instruction group comprises an instruction for indicating and controlling the electronic equipment to switch states.
In this embodiment, the preset time period may be set manually, for example, 3 seconds or 4 seconds, which is slightly longer than the time required for normally ending the motion, so as to embody a pause state. When the touch duration of a certain track point is greater than or equal to the preset duration, it represents that the user's finger pauses at the position, and different pause modes can correspondingly start application functions of different types, and when the finger slides, the electronic device can detect the pause condition of each track point in real time, for example, when the user's finger stops at the starting point, a small-range instruction group can be preliminarily determined, for example, a series of instructions belonging to a parameter adjustment type or a state switching type are determined, and the parameter can include brightness or volume, and the like.
In another embodiment, the candidate instruction group may further include a third candidate instruction group, and in this case, after determining whether the touch duration of the starting point is not less than a preset duration, the apparatus control method may further include:
when the touch duration of the starting point is not less than the preset duration, detecting whether a plurality of application windows are displayed in a foreground interface;
if so, acquiring a third candidate instruction group as a target instruction group, wherein the third candidate instruction group comprises an instruction for instructing to process the corresponding application window;
if not, when the touch duration of the terminal point is less than the preset duration, a first candidate instruction group is obtained as a target instruction group.
In this embodiment, the processing of the corresponding application window may include adjusting the size of the corresponding application window, transmitting a file to the corresponding application window, and the like. When the finger starts to slide after the starting point stops, if the current interface is a split-screen interface (that is, at least two application windows are displayed simultaneously), it can be considered that the user wants to process the application windows, and if the current interface is not the split-screen interface, it can be considered that the user wants to adjust the device parameters.
103. Target instructions are determined from the set of target instructions based on the trajectory.
In this embodiment, what kind of functions in the electronic device need to be started can be determined by the two dimensions of the touch duration and the track, for example, different pause conditions, different sliding directions, different sliding distances, and the like of the track point can correspond to different instructions.
(A) When the target instruction set is the first candidate instruction set
In an embodiment, the step 103 may specifically include:
when the track indication slides along a first preset direction and the sliding distance is not less than a first preset distance, acquiring an instruction for increasing the volume value and/or the brightness value from the first candidate instruction group as a target instruction;
when the track instruction slides along the direction opposite to the first preset direction and the sliding distance is not less than a first preset distance, acquiring an instruction for reducing the volume value and/or the brightness value from the first candidate instruction group as a target instruction.
In this embodiment, both the first preset direction and the first preset distance may be set manually, for example, the first preset direction may be above or below, and the first preset distance may be a fixed value, or may be determined according to the length or width of the screen, for example, two thirds of the length or width of the screen. When the finger stops and slides along the first preset direction for a first preset distance, the instruction for adjusting the numerical parameter such as the volume or the brightness to be larger can be obtained, and when the finger stops and slides along the opposite direction of the first preset direction for the first preset distance, the instruction for adjusting the numerical parameter such as the volume or the brightness to be smaller can be obtained.
(B) When the target instruction set is the second candidate instruction set
In an embodiment, the step 103 may specifically include:
judging whether the track meets a first preset condition, wherein the first preset condition is that the track slides along a second preset direction, and the sliding distance is not less than a second preset distance;
if so, acquiring an instruction for indicating the state switching of a cleaning mode from the second candidate instruction group as a target instruction when the touch duration of the terminal is not less than the preset duration, wherein the cleaning mode comprises a cleaning state and a non-cleaning state; or,
and when the touch duration of the endpoint is less than the preset duration, acquiring an instruction for indicating state switching of a screen locking mode, a notification mode, a sound mode and/or a screen rotation mode from the second candidate instruction group as a target instruction, wherein the screen locking mode comprises a locking state and an unlocking state, the notification mode comprises a notification permission state and a notification prohibition state, the sound mode comprises a mute state and a ring state, and the screen rotation mode comprises a rotation prohibition state and a rotation permission state.
In this embodiment, the second preset direction and the second preset distance may be set manually. When the finger slides along the second preset direction for a second preset distance to stop, the memory cleaning operation can be started or stopped. When the finger slides for a second preset distance along a second preset direction, the state of other modes can be switched, for example, the state of one or more of a screen locking mode, a notification mode, a sound mode, a screen rotation mode, and the like is switched, and in the switching process, it is required to determine which state the electronic device is currently in first and switch the electronic device to another state.
In another embodiment, the step 103 may specifically include:
judging whether the track indicates sliding along the curve or not, wherein the foreground display interface does not belong to preset application;
if yes, acquiring an instruction for indicating the state switching of a screen display mode from the second candidate instruction group, and taking the instruction as a target instruction, wherein the screen display mode comprises a horizontal display state and a vertical display state.
In this embodiment, the preset application may be an application related to image viewing, and when the trajectory includes a plurality of sliding directions and the variation rule of the sliding directions is fixed, it may be considered as sliding along a curve, and generally, only when the finger rotates, the finger forms a trajectory of the sliding along the curve. Specifically, in the image viewing interface, the user's finger rotation may initiate an image rotation function, and in the non-image viewing interface, the user's finger rotation may initiate a screen rotation function.
In another embodiment, when the touch duration of the endpoint is less than the preset duration, the step 103 may specifically include:
judging whether the track meets a second preset condition, wherein the second preset condition is that the track slides along a third preset direction, and the sliding distance is not less than a third preset distance;
if yes, when the foreground display interface is a preset interface, a first instruction, a second instruction or a third instruction is obtained from the second candidate instruction group and serves as a target instruction, the first instruction is used for indicating to close the foreground display interface, the second instruction is used for indicating to conduct split screen operation on the foreground display interface, and the third instruction is used for indicating to switch the foreground display interface to a notification preview interface.
In this embodiment, the third preset direction and the third preset distance may be set manually. The preset interface can be any application interface which does not comprise a screen main interface or an interface of a split screen application. The notification preview interface is mainly used for displaying various missed calls, missed messages and other reminding notifications. The split screen operation mainly refers to that a screen is divided into at least two display windows, and different display windows are independently operated.
When the finger slides a third preset distance along a third preset direction, if the foreground display interface is any application interface not including the screen main interface, closing the foreground application (equivalent to switching to a closed state) or displaying the notification preview interface can be realized, wherein the switching mode of switching the foreground display interface to the notification preview interface can be downslide (downslide) or leftslide (right slide), if the foreground display interface is an application interface supporting split screen, split screen operation (equivalent to switching to a split screen state) can be realized, and in the split screen process, the user can select other single or multiple applications which need to be displayed on the screen at the same time by himself or by default of the system.
In another embodiment, when the touch duration of the endpoint is less than the preset duration, the step 103 may specifically include:
judging whether the track slides along a fourth preset direction or not, wherein a foreground display interface is an application interface;
if so, calculating the sliding speed according to the touch duration and the total length of the track;
and when the sliding speed is not less than the preset speed, acquiring an instruction for instructing switching of foreground application from the second candidate instruction group as a target instruction.
In this embodiment, the touch duration of each track point can be accumulated to obtain the total duration, and then the ratio between the total track length and the total duration is calculated to obtain the sliding speed. The preset speed mainly refers to the sweeping speed on the screen, the fourth preset direction and the preset speed can be both artificially set, and the fourth preset direction can be the left direction and the right direction or the upper direction and the lower direction. Switching the foreground application may include switching the foreground application with the background application, or switching the foreground application with the designated application.
(C) When the target instruction group is the third candidate instruction group
In an embodiment, the step 103 may specifically include:
when the position of the starting point in the track is overlapped with the position of the boundary line in the application window, acquiring an instruction for instructing the size adjustment of the corresponding application window from the third candidate instruction group as a target instruction; or,
and when the position of the starting point in the track is overlapped with the position of the file in the application window, and the starting point and the end point are positioned in different window applications, acquiring an instruction for instructing the file transmission of the corresponding application window from the third candidate instruction group as a target instruction.
In this embodiment, for a foreground interface on which a plurality of application windows are simultaneously displayed, when a finger slides after a start point pauses, if the pause position is a position where a boundary line of the application window is located, the window adjustment function may be started, and if the pause position is a position where a certain file is located in the application window, and a start point and an end point of the sliding are located in different application windows, the file transfer function may be started.
104. And correspondingly controlling the electronic equipment according to the target instruction.
For example, when the target instruction is used to instruct to switch the foreground application, the step 104 may specifically include:
determining a background application running in the electronic equipment and the starting time of the background application;
determining a target application from the background application according to the starting time;
and switching the foreground application to the target application.
In this embodiment, the background applications may be sorted from left to right or from top to bottom according to the start time, when the electronic device slides in a certain direction (for example, left or top), the background application whose start time is before the foreground application may be used as the target application, and when the electronic device slides in the opposite direction, the background application whose start time is after the foreground application may be used as the target application.
For example, when the target instruction is used to instruct to perform file transfer on a corresponding application window, the step 104 may specifically include:
and transmitting the file corresponding to the starting point into the application window corresponding to the end point.
In this embodiment, data transmission between two applications can be implemented according to different applications corresponding to the starting point and the ending point.
For example, when the target instruction is used to instruct to resize the corresponding application window, the step 104 may specifically include:
dragging the boundary line corresponding to the starting point to the end point.
In this embodiment, when a finger of a user is placed on the window boundary line, the boundary line may be dragged to move along the trajectory, thereby implementing an operation of adjusting the size and position of the application window.
It should be noted that the first preset direction, the second preset direction, the third preset direction and the fourth preset direction may be the same direction or different directions, and the first preset distance, the second preset distance and the third preset distance may be the same distance or different distances, which may specifically be determined according to user requirements.
As can be seen from the above, the device control method provided in this embodiment is applied to an electronic device including a screen, and is implemented by obtaining a trajectory in which at least two fingers slide in the same direction on the screen and a touch duration of each track point in the trajectory, determining a target instruction group from multiple candidate instruction groups according to the touch duration, then determining a target instruction from the target instruction group according to the trajectory, and performing corresponding control on the electronic device according to the target instruction, so that various device functions can be started in a multi-finger sliding manner without entering a related operation interface.
In the present embodiment, a description will be made from the viewpoint of the device control apparatus, and a detailed description will be specifically given taking an example in which the device control apparatus is integrated in an electronic device including a screen.
Referring to fig. 3, a specific flow of an apparatus control method may be as follows:
201. the electronic equipment acquires a track of at least two fingers sliding on the screen in the same direction and touch duration of each track point in the track, wherein the track point comprises a starting point and an end point.
For example, when the screen of the electronic device is in a sensing state (that is, the screen is in an unlocked state), if the user wants to start a certain function, the two or more fingers can slide on the screen in the same direction, and the electronic device can acquire the corresponding track and the touch duration of the track point in the sliding process.
202. The electronic device determines whether the touch duration of the starting point is not less than a preset duration, if so, the following step 203 is executed, and if not, the following step 204 is executed.
For example, the preset time period may be 3 seconds or 4 seconds, which is set manually. In the process of finger sliding, which type of instruction needs to be selected may be determined according to a sliding condition and an application running condition, where the sliding condition relates to a touch time of a starting point, a sliding direction, and the like, and the sliding direction may generally include up-down sliding, left-right sliding, rotating, and the like, and specifically refer to fig. 4.
203. The electronic device detects whether a plurality of application windows are displayed in a foreground interface, if so, a third candidate instruction group is obtained as a target instruction group, the third candidate instruction group comprises an instruction for instructing to process the corresponding application window, and the following step 205 and step 206 are executed, otherwise, when the touch duration of the terminal point is less than the preset duration, a first candidate instruction group is obtained as a target instruction group, the first candidate instruction group comprises an instruction for instructing to control the electronic device to perform parameter adjustment, and the following step 207 and step 208 are executed.
For example, the first candidate instruction group or the third candidate instruction group may be selected when the finger is slid after the start point is stopped, for example, when the current stage interface is the split screen interface of the application, the third candidate instruction group may be selected, and when the current stage interface is not the split screen interface of the application, the first candidate instruction group may be selected, and different candidate instruction groups correspond to different types of instructions.
205. And when the position of the starting point in the track is overlapped with the position of the boundary line in the application window, the electronic equipment acquires an instruction for instructing the size adjustment of the corresponding application window from the third candidate instruction group as a target instruction.
206. And when the position of the starting point in the track is overlapped with the position of the file in the application window, and the starting point and the end point are positioned in different window applications, the electronic equipment acquires an instruction for instructing the file transmission of the corresponding application window from the third candidate instruction group as a target instruction.
For example, referring to fig. 5, when the foreground interface is divided into two application windows a and B, if the user's finger stops on the boundary line of the application window a (i.e. the finger shown by the solid line in the figure) in the initial stage of sliding, the boundary line may be dragged to move so as to adjust the size of the application window a, and if the user's finger stops on a certain file in the application window a (i.e. the PDF file pointed by the finger shown by the dotted line in the figure), the cross-application transmission of the file may be implemented.
207. When the track indicates sliding along a first preset direction and the sliding distance is not smaller than a first preset distance, the electronic equipment acquires an instruction for increasing the volume value and/or the brightness value from the first candidate instruction group as a target instruction.
208. When the track instruction slides along the direction opposite to the first preset direction and the sliding distance is not less than a first preset distance, the electronic equipment acquires an instruction for reducing the volume value and/or the brightness value from the first candidate instruction group as a target instruction.
For example, the first predetermined direction may be a downward sliding direction or an upward sliding direction, and the first predetermined distance may be determined according to the length of the display screen, for example, when the user's finger stops sliding downward (or upward sliding) for a specified distance, the volume or brightness may be increased, and when the user's finger stops sliding upward (or downward sliding) for a specified distance, the volume or brightness may be decreased.
204. When the touch duration of the endpoint is less than the preset duration, the electronic device obtains a second candidate instruction group as a target instruction group, where the second candidate instruction group includes an instruction for instructing the electronic device to perform state switching, and performs step 209 described below.
209. The electronic device determines a target instruction from the second candidate instruction group according to the trajectory.
For example, referring to fig. 6, the step 209 may specifically include:
the electronic equipment judges whether the track meets a first preset condition, wherein the first preset condition is that the track slides along a second preset direction, and the sliding distance is not less than a second preset distance;
if not, the step 201 can be executed again;
if so, acquiring an instruction for indicating the state switching of a cleaning mode from the second candidate instruction group as a target instruction when the touch duration of the terminal is not less than the preset duration, wherein the cleaning mode comprises a cleaning state and a non-cleaning state; or,
and when the touch duration of the endpoint is less than the preset duration, acquiring an instruction for indicating state switching of a screen locking mode, a notification mode, a sound mode and/or a screen rotation mode from the second candidate instruction group as a target instruction, wherein the screen locking mode comprises a locking state and an unlocking state, the notification mode comprises a notification permission state and a notification prohibition state, the sound mode comprises a mute state and a ring state, and the screen rotation mode comprises a rotation prohibition state and a rotation permission state.
For example, the second preset condition and the second preset distance may be the same as or different from the first preset condition and the first preset distance, for example, when the user stops after the finger slides down for a specified distance, memory cleaning may be performed, when the user slides down for a specified distance, the user may lock the screen, or switch the notification permission state and the notification prohibition state (i.e., the do-not-disturb state) in the notification mode, or switch the mute state and the ring state in the sound mode, or switch the rotation prohibition state and the rotation permission state in the screen rotation mode.
For example, referring to fig. 7, the step 209 may specifically include:
the electronic equipment judges whether the track indicates sliding along the curve or not, and a foreground display interface does not belong to a preset application;
if not, the step 201 can be executed again;
if yes, acquiring an instruction for indicating the state switching of a screen display mode from the second candidate instruction group, and taking the instruction as a target instruction, wherein the screen display mode comprises a horizontal display state and a vertical display state.
For example, the predetermined application may be an image browsing application. When the user fingers rotate, if the foreground display interface is any interface except the image viewing interface, the screen can be switched from the transverse screen to the vertical screen, or the vertical screen is switched to the transverse screen.
For example, referring to fig. 8, the step 209 may specifically include:
when the touch duration of the terminal point is less than the preset duration, the electronic equipment judges whether the track meets a second preset condition, wherein the second preset condition is that the track slides along a third preset direction, and the sliding distance is not less than a third preset distance;
if not, the step 201 can be executed again;
if yes, when the foreground display interface is a preset interface, a first instruction, a second instruction or a third instruction is obtained from the second candidate instruction group and serves as a target instruction, the first instruction is used for indicating to close the foreground display interface, the second instruction is used for indicating to conduct split screen operation on the foreground display interface, and the third instruction is used for indicating to switch the foreground display interface to a notification preview interface.
For example, the third preset condition and the third preset distance may be the same as or different from the first preset condition and the first preset distance, for example, when the finger of the user slides down for a specified distance, if the preset interface is an application interface, the application may be closed, or the application interface may be switched to a notification center, and if the preset interface is an application interface supporting split-screen, the application may be split-screen.
For example, referring to fig. 9, the step 209 may specifically include:
when the touch duration of the terminal point is less than the preset duration, judging whether the track slides along a fourth preset direction, wherein a foreground display interface is an application interface;
if so, calculating the sliding speed according to the touch duration and the total length of the track;
and when the sliding speed is not less than the preset speed, acquiring an instruction for instructing switching of foreground application from the second candidate instruction group as a target instruction.
For example, the fourth predetermined direction may be a left-slide or a right-slide, and when the finger slides left or right at a certain speed, the foreground application may be switched to another application.
210. And the electronic equipment correspondingly controls the electronic equipment according to the target instruction.
For example, when the foreground application needs to be switched, the foreground application can be switched to the previous started application or the next started application or the designated application according to the starting time. When the window file needs to be transmitted, the file can be transmitted in the two application windows according to the different application windows corresponding to the starting point and the end point. When the application window needs to be resized, the boundary line may be dragged from the start position to the end position.
According to the method described in the foregoing embodiment, the present embodiment will be further described from the perspective of a device control apparatus, which may be specifically implemented as an independent entity, or may be implemented by being integrated in an electronic device, such as a terminal, where the terminal may include a mobile phone, a tablet computer, and the like.
Referring to fig. 10, fig. 10 specifically illustrates an apparatus control device provided in the embodiment of the present application, which is applied to an electronic apparatus, and the apparatus control device may include: an obtaining module 10, a first determining module 20, a second determining module 30, and a control module 40, wherein:
(1) acquisition module 10
The acquiring module 10 is configured to acquire a trajectory of at least two fingers sliding in the same direction on the screen and a touch duration of each track point in the trajectory.
In this embodiment, when the electronic device is in a normal use state (that is, in an unlocked state), the sliding information of the finger on the screen may be detected in real time, where the sliding information includes a sliding point position and a corresponding touch time, and a corresponding sliding track is generated according to the sliding information, where the sliding track generally refers to a regular or irregular line segment formed from a starting point to an end point, such as a straight line segment, a broken line segment, a curved line segment, and the like. The unidirectional sliding refers to sliding in the same direction, and generally, a sliding track formed when a plurality of fingers slide in the same direction is a plurality of line segments with the same shape.
(2) First determination module 20
And the first determining module 20 is configured to determine a target instruction group from a plurality of candidate instruction groups according to the touch duration.
For example, the trace point includes a start point and an end point, the candidate instruction group may include a first candidate instruction group and a second candidate instruction group, please refer to fig. 11, the first determining module 20 includes:
the judgment submodule 21 is configured to judge whether the touch duration of the starting point is not less than a preset duration;
the first obtaining sub-module 22 is configured to, if the touch duration of the endpoint is less than the preset duration, obtain a first candidate instruction group as a target instruction group, where the first candidate instruction group includes an instruction for instructing the electronic device to perform parameter adjustment;
and the second obtaining sub-module 23 is configured to, if not, obtain a second candidate instruction group as a target instruction group when the touch duration of the endpoint is smaller than the preset duration, where the second candidate instruction group includes an instruction for instructing to control the electronic device to perform state switching.
In this embodiment, the preset time period may be set manually, for example, 3 seconds or 4 seconds, which is slightly longer than the time required for normally ending the motion, so as to embody a pause state. When the touch duration of a certain track point is greater than or equal to the preset duration, it represents that the user's finger pauses at the position, and different pause modes can correspondingly start application functions of different types, and when the finger slides, the electronic device can detect the pause condition of each track point in real time, for example, when the user's finger stops at the starting point, a small-range instruction group can be preliminarily determined, for example, a series of instructions belonging to a parameter adjustment type or a state switching type are determined, and the parameter can include brightness or volume, and the like.
In another embodiment, the set of candidate instructions may further include a third set of candidate instructions, and the first determining module further includes a third obtaining sub-module 24 for:
after the judgment submodule judges whether the touch duration of the starting point is not less than the preset duration, when the touch duration of the starting point is not less than the preset duration, whether a plurality of application windows are displayed in a foreground interface is detected;
if so, acquiring a third candidate instruction group as a target instruction group, wherein the third candidate instruction group comprises an instruction for instructing to process the corresponding application window;
if not, when the touch duration of the terminal is less than the preset duration, triggering the second obtaining sub-module to execute the operation of obtaining the first candidate instruction group as the target instruction group.
In this embodiment, the processing of the corresponding application window may include adjusting the size of the corresponding application window, transmitting a file to the corresponding application window, and the like. When the finger starts to slide after the starting point stops, if the current interface is a split-screen interface (that is, at least two application windows are displayed simultaneously), it can be considered that the user wants to process the application windows, and if the current interface is not the split-screen interface, it can be considered that the user wants to adjust the device parameters.
(3) Second determination module 30
A second determining module 30, configured to determine a target instruction from the target instruction group according to the trajectory.
In this embodiment, the second determining module 30 may determine what kind of function in the electronic device needs to be started by using two dimensions, i.e., the touch duration and the track, for example, different pause conditions, different sliding directions, different sliding distances, and the like of the track point may correspond to different instructions.
(A) When the target instruction set is the first candidate instruction set
In an embodiment, the second determining module 30 may be specifically configured to:
when the track indication slides along a first preset direction and the sliding distance is not less than a first preset distance, acquiring an instruction for increasing the volume value and/or the brightness value from the first candidate instruction group as a target instruction;
when the track instruction slides along the direction opposite to the first preset direction and the sliding distance is not less than a first preset distance, acquiring an instruction for reducing the volume value and/or the brightness value from the first candidate instruction group as a target instruction.
In this embodiment, both the first preset direction and the first preset distance may be set manually, for example, the first preset direction may be above or below, and the first preset distance may be a fixed value, or may be determined according to the length or width of the screen, for example, two thirds of the length or width of the screen. When the finger stops and slides along the first preset direction for a first preset distance, the instruction for adjusting the numerical parameter such as the volume or the brightness to be larger can be obtained, and when the finger stops and slides along the opposite direction of the first preset direction for the first preset distance, the instruction for adjusting the numerical parameter such as the volume or the brightness to be smaller can be obtained.
(B) When the target instruction set is the second candidate instruction set
In an embodiment, the second determining module 30 may be specifically configured to:
judging whether the track meets a first preset condition, wherein the first preset condition is that the track slides along a second preset direction, and the sliding distance is not less than a second preset distance;
if so, acquiring an instruction for indicating the state switching of a cleaning mode from the second candidate instruction group as a target instruction when the touch duration of the terminal is not less than the preset duration, wherein the cleaning mode comprises a cleaning state and a non-cleaning state; or,
and when the touch duration of the endpoint is less than the preset duration, acquiring an instruction for indicating state switching of a screen locking mode, a notification mode, a sound mode and/or a screen rotation mode from the second candidate instruction group as a target instruction, wherein the screen locking mode comprises a locking state and an unlocking state, the notification mode comprises a notification permission state and a notification prohibition state, the sound mode comprises a mute state and a ring state, and the screen rotation mode comprises a rotation prohibition state and a rotation permission state.
In this embodiment, the second preset direction and the second preset distance may be set manually. When the finger slides in the second preset direction for the second preset distance to stop, the second determining module 30 may start the memory cleaning operation or stop the memory cleaning operation being executed. When the finger slides for a second preset distance along a second preset direction, the second determining module 30 may perform state switching on other modes, for example, state switching on one or more of a screen locking mode, a notification mode, a sound mode, a screen rotation mode, and the like, and in the switching process, it is required to determine which state the electronic device is currently in first and switch the electronic device to another state.
In another embodiment, the second determining module 30 may be specifically configured to:
judging whether the track indicates sliding along the curve or not, wherein the foreground display interface does not belong to preset application;
if yes, acquiring an instruction for indicating the state switching of a screen display mode from the second candidate instruction group, and taking the instruction as a target instruction, wherein the screen display mode comprises a horizontal display state and a vertical display state.
In this embodiment, the preset application may be an application related to image viewing, and when the trajectory includes a plurality of sliding directions and the variation rule of the sliding directions is fixed, it may be considered as sliding along a curve, and generally, only when the finger rotates, the finger forms a trajectory of the sliding along the curve. Specifically, in the image viewing interface, the user's finger rotation may initiate an image rotation function, and in the non-image viewing interface, the user's finger rotation may initiate a screen rotation function.
In another embodiment, when the touch duration of the endpoint is less than a preset duration, the second determining module 30 may specifically be configured to:
judging whether the track meets a second preset condition, wherein the second preset condition is that the track slides along a third preset direction, and the sliding distance is not less than a third preset distance;
if yes, when the foreground display interface is a preset interface, a first instruction, a second instruction or a third instruction is obtained from the second candidate instruction group and serves as a target instruction, the first instruction is used for indicating to close the foreground display interface, the second instruction is used for indicating to conduct split screen operation on the foreground display interface, and the third instruction is used for indicating to switch the foreground display interface to a notification preview interface.
In this embodiment, the third preset direction and the third preset distance may be set manually. The preset interface can be any application interface which does not comprise a screen main interface or an interface of a split screen application. The notification preview interface is mainly used for displaying various missed calls, missed messages and other reminding notifications. The split screen operation mainly refers to that a screen is divided into at least two display windows, and different display windows are independently operated.
When the finger slides a third preset distance along a third preset direction, if the foreground display interface is any application interface not including the screen main interface, closing the foreground application (equivalent to switching to a closed state) or displaying the notification preview interface can be realized, wherein the switching mode of switching the foreground display interface to the notification preview interface can be downslide (downslide) or leftslide (right slide), if the foreground display interface is an application interface supporting split screen, split screen operation (equivalent to switching to a split screen state) can be realized, and in the split screen process, the user can select other single or multiple applications which need to be displayed on the screen at the same time by himself or by default of the system.
In another embodiment, when the touch duration of the endpoint is less than a preset duration, the second determining module 30 may specifically be configured to:
judging whether the track slides along a fourth preset direction or not, wherein a foreground display interface is an application interface;
if so, calculating the sliding speed according to the touch duration and the total length of the track;
and when the sliding speed is not less than the preset speed, acquiring an instruction for instructing switching of foreground application from the second candidate instruction group as a target instruction.
In this embodiment, the determining module 30 may accumulate the touch duration of each trace point to obtain the total duration, and then calculate a ratio between the total length of the trace and the total duration to obtain the sliding speed. The preset speed mainly refers to the sweeping speed on the screen, the fourth preset direction and the preset speed can be both artificially set, and the fourth preset direction can be the left direction and the right direction or the upper direction and the lower direction. Switching the foreground application may include switching the foreground application with the background application, or switching the foreground application with the designated application.
(C) When the target instruction group is the third candidate instruction group
In an embodiment, the second determining module 30 may be specifically configured to:
when the position of the starting point in the track is overlapped with the position of the boundary line in the application window, acquiring an instruction for instructing the size adjustment of the corresponding application window from the third candidate instruction group as a target instruction; or,
and when the position of the starting point in the track is overlapped with the position of the file in the application window, and the starting point and the end point are positioned in different window applications, acquiring an instruction for instructing the file transmission of the corresponding application window from the third candidate instruction group as a target instruction.
In this embodiment, for a foreground interface on which a plurality of application windows are simultaneously displayed, when a finger slides after a start point pauses, if the pause is a position where a boundary line of the application window is located, the second determining module 30 may start a window adjusting function, and if the pause is a position where a certain file is located in the application window, and a start point and an end point of the sliding are located in different application windows, the second determining module 30 may start a file transfer function.
(4) Control module 40
And the control module 40 is used for correspondingly controlling the electronic equipment according to the target instruction.
For example, when the target instruction is used to instruct to switch the foreground application, the control module 40 may specifically be configured to:
determining a background application running in the electronic equipment and the starting time of the background application;
determining a target application from the background application according to the starting time;
and switching the foreground application to the target application.
In this embodiment, the control module 40 may sequence the background applications from left to right or from top to bottom according to the start time, and when the electronic device slides in a certain direction (for example, left or top), the background application whose start time is before the foreground application may be used as the target application, and when the electronic device slides in the opposite direction, the background application whose start time is after the foreground application may be used as the target application.
For example, when the target instruction is used to instruct to perform file transfer on a corresponding application window, the control module 40 may specifically be configured to:
and transmitting the file corresponding to the starting point into the application window corresponding to the end point.
In this embodiment, the control module 40 may implement data transmission between two applications according to different applications corresponding to the starting point and the ending point.
For example, when the target instruction is used to instruct to resize the corresponding application window, the control module 40 may specifically be configured to:
dragging the boundary line corresponding to the starting point to the end point.
In this embodiment, when a finger of a user is placed on the window boundary line, the control module 40 may drag the boundary line to move along the trajectory, thereby implementing an operation of adjusting the size and the position of the application window.
It should be noted that the first preset direction, the second preset direction, the third preset direction and the fourth preset direction may be the same direction or different directions, and the first preset distance, the second preset distance and the third preset distance may be the same distance or different distances, which may specifically be determined according to user requirements.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the device control apparatus provided in this embodiment is applied to an electronic device, and the acquisition module 10 acquires a trajectory of at least two fingers sliding in the same direction on the screen and a touch duration of each track point in the trajectory, the first determination module 20 determines a target instruction group from a plurality of candidate instruction groups according to the touch duration, then the second determination module 30 determines a target instruction from the target instruction group according to the trajectory, and the control module 40 correspondingly controls the electronic device according to the target instruction, so that various device functions can be started in a multi-finger sliding manner without entering a related operation interface, the method is simple, the flexibility is high, an entity key is not needed, and the user experience is good.
In addition, the embodiment of the application also provides electronic equipment which can be equipment such as a smart phone and a tablet computer. As shown in fig. 12, electronic device 100 may include control circuitry, which may include storage and processing circuitry 110. The storage and processing circuit 110 may be a memory, such as a hard disk drive memory, a non-volatile memory (e.g., a flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., a static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in storage and processing circuitry 110 may be used to control the operation of electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 110 may be used to run software in the electronic device 100, such as an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 100, and the like, without limitation of embodiments of the present application.
Electronic device 100 may also include input-output circuitry 120. The input-output circuit 120 may be used to enable the electronic device 100 to input and output data, i.e., to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to an external device. The input-output circuit 120 may further include a sensor 121. The sensors 121 may include ambient light sensors, proximity sensors based on light and capacitance, touch sensors (e.g., based on optical touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
The input-output circuitry 120 may also include one or more displays 122. The display 122 may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, displays using other display technologies. The display 122 may include an array of touch sensors (i.e., the display 122 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 100 may also include an audio component 123. Audio component 123 may be used to provide audio input and output functionality for electronic device 100. The audio components 123 in the electronic device 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
The communication circuit 124 may be used to provide the electronic device 100 with the ability to communicate with external devices. The communication circuitry 124 may include analog and digital input-output interface circuitry, and wireless communication circuitry based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 124 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 124 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit 124 may include a near field communication antenna and a near field communication transceiver. The communication circuit 124 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
The electronic device 100 may further include a battery, power management circuitry, and other input-output units 125. The input-output unit 125 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.
A user may enter commands through input-output circuitry 120 to control the operation of electronic device 100, and may use output data of input-output circuitry 120 to enable receipt of status information and other outputs from electronic device 100.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the device control methods provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any device control method provided in the embodiment of the present invention, the beneficial effects that can be achieved by any device control method provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In summary, although the present application has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be determined by the appended claims.

Claims (11)

1. An apparatus control method applied to an electronic apparatus, wherein the electronic apparatus includes a screen, the apparatus control method comprising:
acquiring a track of at least two fingers sliding on the screen in the same direction, and touch duration of a starting point and touch duration of an ending point in the track;
judging whether the touch time length of the starting point is not less than a preset time length or not;
if yes, when a plurality of application windows are detected to be displayed in the foreground interface, acquiring a third candidate instruction group as a target instruction group, wherein the third candidate instruction group comprises instructions for instructing to process the corresponding application windows;
if yes, when detecting that a plurality of application windows are not displayed in a foreground interface and the touch duration of the end point is less than the preset duration, acquiring a first candidate instruction group as the target instruction group, wherein the first candidate instruction group comprises an instruction for instructing and controlling the electronic equipment to adjust parameters;
if not, when the touch duration of the terminal point is less than the preset duration, acquiring a second candidate instruction group as the target instruction group, wherein the second candidate instruction group comprises an instruction for indicating and controlling the electronic equipment to switch states;
determining a target instruction from the target instruction group according to the track;
and correspondingly controlling the electronic equipment according to the target instruction.
2. The device control method according to claim 1, wherein, when the target instruction group is the first candidate instruction group, the determining a target instruction from the target instruction group according to the trajectory includes:
when the track indicates sliding along a first preset direction and the sliding distance is not smaller than a first preset distance, acquiring an instruction indicating increasing the volume value and/or the brightness value from the first candidate instruction group as the target instruction;
when the track indicates sliding along the direction opposite to the first preset direction and the sliding distance is not smaller than the first preset distance, acquiring an instruction indicating reduction of the volume value and/or the brightness value from the first candidate instruction group as the target instruction.
3. The device control method according to claim 1, wherein, when the target instruction group is the second candidate instruction group, the determining a target instruction from the target instruction group according to the trajectory includes:
judging whether the track meets a first preset condition, wherein the first preset condition is that the track slides along a second preset direction, and the sliding distance is not less than a second preset distance;
if yes, when the touch duration of the endpoint is less than the preset duration, acquiring an instruction for indicating state switching of a screen locking mode, a notification mode, a sound mode and/or a screen rotation mode from the second candidate instruction group as the target instruction, wherein the screen locking mode comprises a locking state and an unlocking state, the notification mode comprises a notification allowing state and a notification forbidding state, the sound mode comprises a ringing state and a mute state, and the screen rotation mode comprises a rotation allowing state and a rotation forbidding state.
4. The device control method according to claim 1, wherein, when the target instruction group is the second candidate instruction group, the determining a target instruction from the target instruction group according to the trajectory includes:
judging whether the track indicates sliding along a curve and a foreground display interface does not belong to a preset application;
and if so, acquiring an instruction for indicating the state switching of a screen display mode from the second candidate instruction group as the target instruction, wherein the screen display mode comprises horizontal display and vertical display.
5. The device control method according to claim 1, wherein when the target instruction group is the second candidate instruction group and the touch duration of the endpoint is less than the preset duration, the determining a target instruction from the target instruction group according to the trajectory includes:
judging whether the track meets a second preset condition, wherein the second preset condition is that the track slides along a third preset direction, and the sliding distance is not less than a third preset distance;
if yes, when the display interface of the front desk is a preset interface, a first instruction, a second instruction or a third instruction is obtained from the second candidate instruction group and serves as the target instruction, the first instruction is used for indicating to close the display interface of the front desk, the second instruction is used for indicating to conduct split screen operation on the display interface of the front desk, and the third instruction is used for indicating to switch the display interface of the front desk to a notification preview interface.
6. The device control method according to claim 1, wherein when the target instruction group is the second candidate instruction group and the touch duration of the endpoint is less than the preset duration, the determining a target instruction from the target instruction group according to the trajectory includes:
judging whether the track indicates sliding along a fourth preset direction or not, wherein a foreground display interface is an application interface;
if so, calculating the sliding speed according to the touch duration and the total length of the track;
and when the sliding speed is not less than the preset speed, acquiring an instruction for instructing switching of foreground application from the second candidate instruction group as the target instruction.
7. The device control method according to claim 1, wherein, when the target instruction group is the third candidate instruction group, the determining a target instruction from the target instruction group according to the trajectory includes:
when the position of the starting point in the track is overlapped with the position of the boundary line on the application window, acquiring an instruction for instructing the size adjustment of the corresponding application window from the third candidate instruction group as the target instruction;
the correspondingly controlling the electronic equipment according to the target instruction comprises the following steps: dragging the boundary line at the starting point to the end point.
8. The device control method according to claim 1, wherein, when the target instruction group is the third candidate instruction group, the determining a target instruction from the target instruction group according to the trajectory includes:
when the position of the starting point in the track is overlapped with the position of a file in an application window and the starting point and the end point are positioned in different application windows, acquiring an instruction for instructing file transmission on the corresponding application window from the third candidate instruction group as the target instruction;
the correspondingly controlling the electronic equipment according to the target instruction comprises the following steps: and transmitting the file in the application window corresponding to the starting point into the application window corresponding to the end point.
9. An apparatus control device applied to an electronic apparatus, wherein the electronic apparatus includes a screen, the apparatus control device comprising:
the acquisition module is used for acquiring a track of sliding of at least two fingers on the screen in the same direction, and touch duration of a starting point and touch duration of a finishing point in the track;
the judging module is used for judging whether the touch time length of the starting point is not less than a preset time length or not;
the first obtaining module is used for obtaining a third candidate instruction group as a target instruction group when a plurality of application windows are detected to be displayed in a foreground interface if the plurality of application windows are detected to be displayed in the foreground interface, wherein the third candidate instruction group comprises an instruction for instructing processing of the corresponding application windows;
a second obtaining module, configured to, if yes, obtain a first candidate instruction group as the target instruction group when it is detected that a plurality of application windows are not displayed in a foreground interface and a touch duration of the endpoint is less than the preset duration, where the first candidate instruction group includes an instruction for instructing the electronic device to perform parameter adjustment;
a third obtaining module, configured to, if not, obtain a second candidate instruction group as the target instruction group when the touch duration of the endpoint is less than the preset duration, where the second candidate instruction group includes an instruction for instructing to control the electronic device to perform state switching;
the determining module is used for determining a target instruction from the target instruction group according to the track;
and the control module is used for correspondingly controlling the electronic equipment according to the target instruction.
10. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the device control method of any one of claims 1 to 8.
11. An electronic device comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the device control method of any one of claims 1 to 8.
CN201810682445.0A 2018-06-27 2018-06-27 Device control method, device, storage medium and electronic device Active CN108984092B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810682445.0A CN108984092B (en) 2018-06-27 2018-06-27 Device control method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810682445.0A CN108984092B (en) 2018-06-27 2018-06-27 Device control method, device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN108984092A CN108984092A (en) 2018-12-11
CN108984092B true CN108984092B (en) 2020-12-22

Family

ID=64538704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810682445.0A Active CN108984092B (en) 2018-06-27 2018-06-27 Device control method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN108984092B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656416B (en) * 2018-12-28 2022-04-15 腾讯音乐娱乐科技(深圳)有限公司 Control method and device based on multimedia data and related equipment
CN109635546B (en) * 2018-12-30 2021-10-22 联想(北京)有限公司 Processing method and device
CN110083266B (en) * 2019-04-02 2022-05-13 上海墨案智能科技有限公司 Information processing method, device and storage medium
CN110209330B (en) * 2019-05-28 2022-03-08 Oppo广东移动通信有限公司 Control method of progress bar, terminal and computer storage medium
CN114458123B (en) * 2022-04-12 2022-06-14 国汽智控(北京)科技有限公司 Vehicle window control method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541390A (en) * 2010-12-07 2012-07-04 联想(北京)有限公司 Electronic equipment and method for movably displaying object
CN104714740A (en) * 2013-12-11 2015-06-17 联想(北京)有限公司 Preset parameter adjusting method, adjusting device and electronic equipment
CN105867766A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Sound volume adjustment method and terminal
CN105872211A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Screen brightness adjusting method and terminal
CN107168621A (en) * 2017-04-28 2017-09-15 努比亚技术有限公司 A kind of view control method by sliding and mobile terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090267909A1 (en) * 2008-04-27 2009-10-29 Htc Corporation Electronic device and user interface display method thereof
CN102073437A (en) * 2009-11-23 2011-05-25 英业达股份有限公司 Method for controlling touch electronic device
US20130307788A1 (en) * 2012-05-16 2013-11-21 Motorola Solutions, Inc. Device and method for automated use of force sensing touch panels
KR20140073398A (en) * 2012-12-06 2014-06-16 삼성전자주식회사 Display apparatus and method for controlling thereof
CN104298455B (en) * 2013-07-15 2018-04-27 联想(北京)有限公司 A kind of shortcut command generation method and electronic equipment
CN104731507B (en) * 2015-03-31 2016-11-23 努比亚技术有限公司 The application changing method of mobile terminal and mobile terminal
CN105430168A (en) * 2015-10-30 2016-03-23 努比亚技术有限公司 Mobile terminal and file sharing method
CN106909297B (en) * 2016-08-19 2020-11-20 创新先进技术有限公司 Data communication processing method and device, electronic equipment and touch display equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541390A (en) * 2010-12-07 2012-07-04 联想(北京)有限公司 Electronic equipment and method for movably displaying object
CN104714740A (en) * 2013-12-11 2015-06-17 联想(北京)有限公司 Preset parameter adjusting method, adjusting device and electronic equipment
CN105867766A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Sound volume adjustment method and terminal
CN105872211A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Screen brightness adjusting method and terminal
CN107168621A (en) * 2017-04-28 2017-09-15 努比亚技术有限公司 A kind of view control method by sliding and mobile terminal

Also Published As

Publication number Publication date
CN108984092A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN108984092B (en) Device control method, device, storage medium and electronic device
US10397649B2 (en) Method of zooming video images and mobile display terminal
CN108701001B (en) Method for displaying graphical user interface and electronic equipment
US8519963B2 (en) Portable multifunction device, method, and graphical user interface for interpreting a finger gesture on a touch screen display
AU2010200661B2 (en) Unlocking a device by performing gestures on an unlock image
CN110413315B (en) Application program control method and electronic equipment
CN110709806A (en) Multitasking operation method and electronic equipment
CN109710139B (en) Page processing method, device, terminal and storage medium
US20080165145A1 (en) Portable Multifunction Device, Method, and Graphical User Interface for Interpreting a Finger Swipe Gesture
WO2007076211A1 (en) Indication of progress towards satisfaction of a user input condition
CN106484228B (en) Double screen switches display methods and mobile terminal
WO2020238647A1 (en) Hand gesture interaction method and terminal
WO2009076974A1 (en) Mode control for an electronic device with touch ui
CN111290794B (en) Screen awakening method and device, storage medium and mobile terminal
WO2021036603A1 (en) Application program control method and terminal
KR20130097331A (en) Apparatus and method for selecting object in device with touch screen
CN111078108A (en) Screen display method and device, storage medium and mobile terminal
CN110795189A (en) Application starting method and electronic equipment
CN109766054A (en) A kind of touch-screen equipment and its control method, medium
CN108712563B (en) Call control method and device and mobile terminal
CN105930077A (en) Method and device for adjusting size of objects displayed by screens
CN108073405A (en) A kind of application program discharging method and mobile terminal
EP2607982A1 (en) Method for changing device modes of an electronic device connected to a docking station and an electronic device configured for same
KR20100038590A (en) Touch sensor and method for recognizing a touch
CN108920073B (en) Display control method and terminal equipment

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