CN112732214B - Control method, electronic device, and readable storage medium - Google Patents
Control method, electronic device, and readable storage medium Download PDFInfo
- Publication number
- CN112732214B CN112732214B CN202110089530.8A CN202110089530A CN112732214B CN 112732214 B CN112732214 B CN 112732214B CN 202110089530 A CN202110089530 A CN 202110089530A CN 112732214 B CN112732214 B CN 112732214B
- Authority
- CN
- China
- Prior art keywords
- electronic device
- progress bar
- input
- electronic equipment
- bar displayed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000004891 communication Methods 0.000 claims abstract description 18
- 241001422033 Thestylus Species 0.000 claims description 38
- 230000033001 locomotion Effects 0.000 claims description 25
- 238000001514 detection method Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 15
- 230000008569 process Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 6
- 230000036544 posture Effects 0.000 description 5
- 230000004044 response Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 2
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1454—Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0412—Digitisers structurally integrated in a display
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & 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 control method, electronic equipment and a readable storage medium, and belongs to the technical field of electronic products. The control method comprises the following steps: receiving a first input to a touch area of a first electronic device; under the condition that the relative positions of the first progress bar displayed in the first electronic equipment and the second electronic equipment are matched, the first electronic equipment controls the first progress bar displayed in the second electronic equipment to move; or, in the case that the relative positions of the first progress bar displayed in the first electronic device and the second electronic device do not match, the first electronic device controls the second progress bar displayed in the second electronic device to move; wherein the first electronic device is in communication connection with the second electronic device. The scheme provided by the embodiment of the application can at least solve the problem of poor control effect of the existing control method.
Description
Technical Field
The present application relates to the field of electronic product technologies, and in particular, to a control method, an electronic device, and a readable storage medium.
Background
At present, in the control process of the electronic equipment, the electronic equipment is mainly controlled based on the touch operation of a user on the display screen, and by adopting the mode, the user is required to directly operate on the display screen, so that the content displayed on the display screen is shielded to a certain extent in the operation process of the user, and the user is further influenced to watch the content displayed on the display screen. Therefore, in the prior art, a non-direct contact control mode such as voice input appears, however, the voice input can only send a preset simple control command to the electronic equipment generally, and for a relatively complex operation, for example, inputting a sliding operation into the electronic equipment, the operation cannot be completed through the voice input generally. Therefore, the existing control method has the problem of poor control effect.
Disclosure of Invention
The embodiment of the application provides a control method, an electronic device and a readable storage medium, so as to solve the problem that the existing control method is poor in control effect.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a control method, which is applied to a first electronic device, and the method includes:
receiving a first input to a touch area of the first electronic device;
under the condition that the relative positions of the first electronic equipment and a first progress bar displayed in second electronic equipment are matched, the first electronic equipment controls the first progress bar displayed in the second electronic equipment to move; or,
under the condition that the relative positions of the first progress bar displayed in the first electronic equipment and the second electronic equipment are not matched, the first electronic equipment controls the second progress bar displayed in the second electronic equipment to move;
wherein the first electronic device is in communication connection with the second electronic device.
In a second aspect, an embodiment of the present application provides a control method, which is applied to a first electronic device, and the method includes:
receiving a first input to a touch area of the first electronic device;
acquiring input parameters of the first input;
the first electronic equipment controls a target progress bar displayed in second electronic equipment to move, and the target progress bar is a progress bar corresponding to the input parameters;
wherein the first electronic device is in communication connection with the second electronic device.
In a third aspect, an embodiment of the present application provides a first electronic device, including:
the first receiving module is used for receiving a first input to a touch area of the first electronic equipment;
the first control module is used for controlling the movement of the first progress bar displayed in the second electronic equipment under the condition that the relative positions of the first progress bar displayed in the first electronic equipment and the second electronic equipment are matched; or,
the first control module is used for controlling the movement of a second progress bar displayed in a second electronic device under the condition that the relative positions of the first progress bar displayed in the first electronic device and the first progress bar displayed in the second electronic device are not matched;
wherein the first electronic device is in communication connection with the second electronic device.
In a fourth aspect, an embodiment of the present application provides a first electronic device, including:
the second receiving module is used for receiving a first input to a touch area of the first electronic equipment;
the acquisition module is used for acquiring the input parameters of the first input;
the second control module is specifically used for controlling the movement of a target progress bar displayed in second electronic equipment, wherein the target progress bar is a progress bar corresponding to the input parameters;
wherein the first electronic device is in communication connection with the second electronic device.
In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions implement the steps of the control method when executed by the processor.
In a sixth aspect, the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and the program or the instruction, when executed by a processor, implements the steps of the control method.
In a seventh aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions, and the program or instructions, when executed by the processor, implement the steps of the control method.
In the embodiment of the application, a control input to the second electronic device is received through a touch area of the first electronic device, and meanwhile, an object controlled by the control input is determined based on a relative position of the first progress bar displayed in the first electronic device and the second electronic device, so that the progress bar displayed in the second electronic device is controlled in response to the control input. Compared with the prior art, the content displayed in the second electronic equipment can be controlled without directly operating on the second electronic equipment, so that the control effect on the electronic equipment is improved.
Drawings
Fig. 1 is a schematic flowchart of a control method provided in an embodiment of the present application;
FIG. 2 is a diagram of a display state of an electronic device according to an embodiment of the present application;
FIG. 3 is a second state diagram of the electronic device according to the second embodiment of the present application;
FIG. 4 is a third diagram of a display state of an electronic device according to an embodiment of the present application;
FIG. 5 is a fourth illustration of a display state diagram of an electronic device according to an embodiment of the present application;
FIG. 6 is a schematic flow chart of another control method provided by the embodiments of the present application;
fig. 7 is a schematic structural diagram of a first electronic device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another first electronic device provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a schematic hardware structure 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 some, but not all, embodiments of the present application. 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 terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The control method, the electronic device, and the readable storage medium provided in the embodiments of the present application are described in detail with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a control method provided in an embodiment of the present application, where the method includes the following steps:
step S101, receiving a first input to a touch area of the first electronic device;
the first electronic device may be an electronic device that includes a touch area and has a communication function, and may be, for example, a stylus pen, a smart watch, a smart band, various mobile terminals, and the like that include a touch area.
The first input may be a conventional touch input, and may be, for example, a slide input, a click input, a double-click input, a press input, or the like.
Step S102, under the condition that the relative positions of a first progress bar displayed in the first electronic device and a first progress bar displayed in a second electronic device are matched, the first electronic device controls the first progress bar displayed in the second electronic device to move; or,
under the condition that the relative positions of the first progress bar displayed in the first electronic equipment and the second electronic equipment are not matched, the first electronic equipment controls the second progress bar displayed in the second electronic equipment to move;
wherein the first electronic device is in communication connection with the second electronic device.
The second electronic device may include a display screen and has an electronic device through which communication passes, and may be a mobile terminal such as a mobile phone and a tablet computer.
The first progress bar may be a progress bar of a target application program displayed in the second electronic device. The first progress bar may be a control for adjusting content output by the target application, and for example, may be a progress bar for adjusting a playing progress of a video output by a video application, a display scale progress bar for adjusting a display scale of content output by the target application, a progress bar for adjusting a volume of audio output by the audio application, or a progress bar for adjusting a display progress of a document output by a document application.
Specifically, whether a first input received by the first electronic device is an input for adjusting the first progress bar may be determined by determining a relative position between the first electronic device and the first progress bar, and when the relative position between the first electronic device and the first progress bar is matched, it is determined that the first input received by the first electronic device is an input for adjusting the first progress bar, at this time, the first electronic device may generate a first control instruction for controlling the first progress bar based on the first input, and send the first control instruction to the second electronic device, so that the second electronic device controls the first progress bar to move in response to the received first control instruction, and controls the output content of the target application program to be updated based on the movement of the first progress bar.
The second progress bar and the first progress bar may be different adjustment controls in the target application, for example, the first progress bar may be a progress bar for controlling a playing progress of the currently played multimedia content, the second progress bar may be a progress bar for controlling an output volume of the currently played multimedia content, or the second progress bar may be a progress bar for adjusting a display position of the played multimedia content in a horizontal direction on the display screen, or the second progress bar may be a progress bar for adjusting a screen size of the played multimedia content, and the like.
In this embodiment, when a first input is received, it is determined whether the first input is an input for controlling the first progress bar based on a relative position between the first electronic device and the first progress bar, and when it is determined that the first input is an input for controlling the first progress bar, a first control instruction is sent to the second electronic device to control the movement of the first progress bar and control the output content of the target application program to be updated based on the movement of the first progress bar. And under the condition that the relative position between the first electronic equipment and the first progress bar is not matched, controlling the second progress bar based on the first input, so that different adjusting controls in the target application program are controlled based on different postures of the first electronic equipment. Compared with the prior art, the content displayed in the second electronic equipment can be controlled without directly operating on the second electronic equipment, so that the control effect on the second electronic equipment is improved.
Optionally, before the first electronic device controls the first progress bar displayed in the second electronic device to move, the method further includes:
detecting touch pressure of the first input acting on the touch area;
the first electronic device controls a first progress bar displayed in the second electronic device to move, including:
the first electronic equipment controls a first progress bar displayed in the second electronic equipment to move at a speed corresponding to the touch pressure; or,
the first electronic device controls the motion of a second progress bar displayed in the second electronic device, and the method comprises the following steps:
the first electronic equipment controls a second progress bar displayed in the second electronic equipment to move at a speed corresponding to the touch pressure;
wherein different touch pressures correspond to different speeds.
The touch area of the first electronic device may further be provided with a pressure sensor for detecting a touch pressure of a user. Therefore, different control instructions can be correspondingly generated based on different touch pressures in the first input process performed by the user, so that the diversity of the first electronic equipment in controlling the second electronic equipment is improved, and the control effect of the first electronic equipment on the second electronic equipment is further improved.
After determining that the first input is an input for controlling the target progress bar based on the relative position between the first electronic device and the first progress bar, the control process for controlling the target progress bar may be further refined based on the touch pressure of the user in the process of inputting in the touch area. The target progress bar is a first progress bar under the condition that the relative positions of the first electronic device and the first progress bar are matched, and the target progress bar is a second progress bar under the condition that the relative positions of the first electronic device and the first progress bar are not matched.
Wherein the magnitude of the movement speed of the control target progress bar may be determined based on the magnitude of the touch pressure of the first input. Specifically, the movement speed of the target progress bar may be in a preset functional relationship with the touch pressure of the first input, for example, when the touch pressure is higher, the movement speed of the target progress bar is higher, and conversely, when the touch pressure is lower, the movement speed of the target progress bar is correspondingly lower.
In one embodiment of the present application, the first input may be a sliding operation of a user in the touch area, and when the first input is a sliding input, a moving direction of a control target progress bar may be determined based on the sliding direction of the first input, for example, the moving direction of the target progress bar may be kept consistent with the sliding direction of the first input.
In the embodiment, in the process of controlling the target progress bar based on the first electronic device, the target progress bar is controlled to move at different speeds through different touch pressures based on the user, so that the user can conveniently adjust the sensitivity of the movement of the target progress bar in the process of controlling the target progress bar, and the control effect of controlling the second electronic device by the first electronic device is further improved.
Optionally, the receiving a first input to a touch area of the first electronic device includes:
receiving a first input to a touch area of the first electronic device, and determining a relative position of a first progress bar displayed in the first electronic device and a second electronic device.
Specifically, whether a first input received by the first electronic device is an input for adjusting the first progress bar may be determined by determining a relative position between the first electronic device and the first progress bar, and when the relative position between the first electronic device and the first progress bar matches, it is determined that the first input received by the first electronic device is an input for adjusting the first progress bar, at this time, the first electronic device may generate a first control instruction for controlling the first progress bar based on the first input, and send the first control instruction to the second electronic device, so that the second electronic device controls the first progress bar to move in response to the received first control instruction, and controls output content of the target application to be updated based on the movement of the first progress bar. And conversely, when the relative position between the first electronic equipment and the first progress bar is not matched, determining that the first input received by the first electronic equipment is the input for adjusting the second progress bar.
When first input is received, the first electronic device can acquire current posture information of the second electronic device and acquire a display position of the first progress bar in the second electronic device, so that the current position state of the first progress bar is determined; meanwhile, the first electronic device can also acquire own attitude information to determine the own position state. Therefore, the relative position between the first electronic device and the first progress bar can be determined based on the determined current position state of the first progress bar and the position state of the first electronic device, and when the relative position between the first electronic device and the first progress bar meets a preset condition, the relative position between the first electronic device and the first progress bar is determined to be matched.
It should be understood that a preset condition for judging whether the relative position between the first electronic device and the first progress bar is matched or not may be preset, for example, when the placing direction of the first electronic device is consistent with the direction of the progress bar, it is determined that the relative position between the first electronic device and the first progress bar is matched. In addition, gravity sensors may be respectively disposed in the first electronic device and the second electronic device to respectively detect the posture information of the first electronic device and the second electronic device.
In this embodiment, when a first input is received, it is determined whether the first input is an input for controlling the first progress bar by using a relative position between the first electronic device and the first progress bar, and in a case where it is determined that the first input is an input for controlling the first progress bar, a first control instruction is sent to the second electronic device to control the movement of the first progress bar and control the output content of the target application program to be updated based on the movement of the first progress bar. Under the condition that the relative positions of the first electronic equipment and the first progress bar are not matched, the second progress bar is controlled based on the first input, so that different adjusting controls in the target application program are controlled based on different postures of the first electronic equipment, and the diversity of the first electronic equipment in controlling the second electronic equipment is further improved.
Optionally, the first electronic device is a stylus 220, and the determining the relative position of the first progress bar 210 displayed in the first electronic device and the second electronic device includes:
detecting the size of an included angle between the direction indicated by the stylus 220 and the direction indicated by the first progress bar 210 displayed in the second electronic device;
and determining that the relative positions of the stylus 220 and the first progress bar 210 are matched under the condition that the size of the included angle is smaller than or equal to a preset value.
The stylus 220 may be an active stylus 220 having a touch module, for example, referring to fig. 2, the touch module forms the touch area 221 on the surface of the stylus 220. Accordingly, the first input may be a touch operation input by the user in the touch area 221, and may be, for example, a sliding operation, a clicking operation, a pressing operation, and the like. It should be understood that the user may also click or slide on the display screen of the second electronic device using the stylus 220 to control the second electronic device. For example, referring to fig. 3, a document displayed by the second electronic device in fig. 3 includes a first progress bar 210, and when the first progress bar 210 needs to be slid, the first progress bar 210 can be slid back and forth along a direction indicated by a double-headed arrow in the touch area 221 in fig. 3, and at this time, the first progress bar 210 moves along the direction indicated by the double-headed arrow in fig. 3, so as to adjust the first progress bar 210.
The touch pen 220 can be in communication connection with the second electronic device through common wireless connection modes such as bluetooth and WIFI, so as to realize data transmission between the touch pen 220 and the second electronic device.
In the process of controlling the second electronic device through the stylus pen 220, since the stylus pen 220 supports a click very well, which is determined by the product characteristics thereof, when a click operation needs to be input, the display screen of the second electronic device can be clicked directly through the pen point of the stylus pen 220. Since the stylus 220 slides directly on the second electronic device, the poor control effect is easily caused by the poor contact between the pen tip and the display screen, when the sliding operation needs to be input to the second electronic device, the corresponding touch operation may be performed in the touch area 221 of the stylus 220, so that the stylus 220 sends the sliding control instruction to the second electronic device, thereby implementing the sliding operation input to the second electronic device based on the stylus 220. For example, when the progress bar of the currently played multimedia content needs to be adjusted, since the progress bar is directly dragged by the stylus 220, the operation is slow, and the accuracy of the adjustment operation is poor, the user can slide back and forth in the touch area 221 of the stylus 220 to control the progress bar to slide back and forth, thereby improving the control effect on the second electronic device.
Specifically, upon receiving the first input, the stylus 220 may acquire current posture information of the second electronic device, and acquire a display position of the first progress bar 210 in the second electronic device, so as to determine a direction indicated by the first progress bar 210, where the direction indicated by the first progress bar 210 may be a movement direction of the first progress bar 210, for example, please refer to fig. 2, and the movement direction of the first progress bar 210 is along a length direction of the mobile phone. The direction pointed by the stylus 220 may refer to a length direction of the stylus 220, i.e. a pointing direction of the stylus 220, for example, please refer to fig. 2, the direction pointed by the stylus 220 is along the length direction of the mobile phone, and an included angle between the stylus 220 and the first progress bar 210 is 0 °. Referring to fig. 5, the direction indicated by the stylus 220 is the width direction of the second electronic device, and at this time, an included angle between the stylus 220 and the first progress bar 210 is 90 °.
The above-mentioned preset value may be any value from 0 to 45 °. It should be understood that, when the size of the included angle is greater than the preset value, it is determined that the relative positions of the stylus 220 and the first progress bar 210 are not matched. For example, referring to fig. 5, an included angle between the first stylus 220 and the first progress bar 210 in fig. 5 is 90 °, at this time, the relative positions of the stylus 220 and the first progress bar 210 do not match, and when the user inputs on the touch area 221 through a sliding operation in the horizontal direction as shown in fig. 5, the second progress bar 230 moves back and forth along the direction indicated by the bidirectional arrow in the second electronic device in fig. 5, so as to adjust the position of the content displayed in the second electronic device.
In this embodiment, a user may control the second electronic device through the touch area 221 of the stylus 220, so that, in some input scenarios, when the control effect of controlling the second electronic device through the pen tip of the stylus 220 is poor, the second electronic device may be controlled through the touch area 221 of the stylus 220, and since the stylus 220 does not need to contact the second electronic device in the process of controlling the second electronic device through the touch area 221, the problem of poor control effect caused by poor contact between the stylus 220 and the second electronic device may be effectively alleviated. Meanwhile, whether the relative position between the stylus 220 and the first progress bar 210 is matched or not is determined by judging the size of the included angle between the stylus 220 and the first progress bar 210, so that the first progress bar 210 is controlled only when the position of the stylus 220 and the position of the first progress bar 210 are matched and the first input is received, and the accuracy of control is further improved.
Referring to fig. 6, a control method provided for another embodiment of the present application is applied to a first electronic device, and the method includes:
step S601, receiving a first input to a touch area of the first electronic device;
step S602, acquiring the input parameters of the first input;
step S603, the first electronic equipment controls a target progress bar displayed in second electronic equipment to move, and the target progress bar is a progress bar corresponding to the input parameters;
wherein the first electronic device is in communication connection with the second electronic device.
The input parameters may be parameters such as touch duration, pressing strength, and different gestures. For example, when a plurality of progress bars are displayed in the second electronic device, different touch durations may be set to correspond to different progress bars in the plurality of progress bars. The following further explains the control process of the second electronic device based on the input parameter of the first input, taking the input parameter as the touch pressure of the first input as an example:
receiving a first input to a touch area of the first electronic device;
acquiring touch pressure of the first input;
sending a second control instruction to the second electronic device under the condition that the touch pressure is within a first preset range, wherein the second control instruction is used for controlling the first progress bar to move and controlling the output content of the target application program to be updated based on the movement of the first progress bar;
and sending a third control instruction to the second electronic device under the condition that the touch pressure is within a second preset range, wherein the third control instruction is used for controlling a third progress bar to move and controlling the output content of a target application program in the second electronic device to be updated based on the movement of the third progress bar.
The first preset range and the second preset range may not have an intersection, for example, a threshold may be set, and the first preset range may be: the pressure is greater than 0 and less than the threshold, and the second preset range may be a range in which the pressure is greater than or equal to the threshold.
The third progress bar and the first progress bar may be different adjustment controls in the target application, for example, the first progress bar may be a progress bar for controlling a playing progress of the currently played multimedia content, the third progress bar may be a progress bar for controlling an output volume of the currently played multimedia content, or the third progress bar may be a progress bar for adjusting a display position of the played multimedia content in a horizontal direction on the display screen, or the third progress bar may be a progress bar for adjusting a screen size of the played multimedia content, or the like. For example, referring to fig. 4, when the user inputs the sliding input as described in fig. 4 in the touch area and the touch pressure is within the second predetermined range, the third progress bar moves along the horizontal direction shown in fig. 4.
It should be noted that the touch actions of the first inputs generating the second control command and the third control command may be the same, and the difference is that the touch pressures are different, for example, the first inputs generating the second control command and the third control command may be both the sliding operations of the user in the touch area.
In this embodiment, different progress bars displayed in the second electronic device are controlled based on different input parameters of the user when performing the first input, so as to further improve the diversity of the first electronic device in controlling the second electronic device.
Referring to fig. 7, an embodiment of the present application further provides a first electronic device 700, including:
a first receiving module 701, configured to receive a first input to a touch area of the first electronic device 700;
a first control module 702, configured to control a motion of a first progress bar displayed in a second electronic device when a relative position of the first electronic device 700 matches a relative position of the first progress bar displayed in the second electronic device; or,
the first control module 702 is configured to control a second progress bar displayed in a second electronic device to move when the relative positions of the first electronic device 700 and the first progress bar displayed in the second electronic device are not matched;
wherein the first electronic device 700 is communicatively coupled to the second electronic device.
Optionally, the first electronic device 700 further includes:
the detection module is used for detecting the touch pressure of the first input acting on the touch area;
the first control module 702 is specifically configured to control a first progress bar displayed in the second electronic device to move at a speed corresponding to the touch pressure; or,
the first control module 702 is specifically configured to control a second progress bar displayed in the second electronic device to move at a speed corresponding to the touch pressure;
wherein different touch pressures correspond to different speeds.
Optionally, the first receiving module 701 is specifically configured to receive a first input to a touch area of the first electronic device 700, and determine a relative position of a first progress bar displayed in the first electronic device 700 and a second electronic device.
Optionally, the first electronic device 700 is a stylus, and the first receiving module includes:
the detection submodule is used for detecting the size of an included angle between the direction indicated by the stylus and the direction indicated by the first progress bar displayed in the second electronic equipment;
and the determining submodule is used for determining that the relative positions of the stylus and the first progress bar are matched under the condition that the size of the included angle is smaller than or equal to a preset value.
In this embodiment, a control input to the second electronic device is received through the touch area of the first electronic device, and meanwhile, an object controlled by the control input is determined based on the relative position of the first progress bar displayed in the first electronic device and the second electronic device, so as to control the progress bar displayed by the second electronic device in response to the control input. Compared with the prior art, the content displayed in the second electronic equipment can be controlled without directly operating on the second electronic equipment, so that the control effect on the electronic equipment is improved.
Referring to fig. 8, an embodiment of the present application further provides a first electronic device 800, including:
a second receiving module 801, configured to receive a first input to a touch area of the first electronic device;
an obtaining module 802, configured to obtain an input parameter of the first input;
a second control module 803, specifically configured to control a target progress bar displayed in a second electronic device to move, where the target progress bar is a progress bar corresponding to the input parameter;
wherein the first electronic device is in communication connection with the second electronic device.
In this embodiment, different progress bars displayed in the second electronic device are controlled based on different input parameters of the user when performing the first input, so as to further improve the diversity of the first electronic device in controlling the second electronic device.
The first electronic device in the embodiment of the present application may be a stylus pen. The first electronic device provided in the embodiment of the present application can implement each process implemented by the method embodiments in fig. 1 to fig. 6, and is not described here again to avoid repetition.
Optionally, as shown in fig. 9, an electronic device 900 is further provided in the embodiment of the present application, and includes a processor 901, a memory 902, and a program or an instruction that is stored in the memory 902 and is executable on the processor 901, where when the program or the instruction is executed by the processor 901, the processes in the foregoing control method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above control method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.
Claims (8)
1. A control method applied to a first electronic device is characterized by comprising the following steps:
receiving a first input to a touch area of the first electronic device;
under the condition that the relative positions of the first electronic equipment and a first progress bar displayed in second electronic equipment are matched, the first electronic equipment controls the first progress bar displayed in the second electronic equipment to move; or,
under the condition that the relative positions of the first progress bar displayed in the first electronic equipment and the second electronic equipment are not matched, the first electronic equipment controls the second progress bar displayed in the second electronic equipment to move;
wherein the first electronic device is in communication connection with the second electronic device;
the receiving a first input to a touch area of the first electronic device includes:
receiving a first input to a touch area of the first electronic device, and determining a relative position of a first progress bar displayed in the first electronic device and a second electronic device;
the receiving a first input to a touch area of the first electronic device, and determining a relative position of a first progress bar displayed in the first electronic device and a second electronic device includes:
when the first input is received, the first electronic device obtains the current posture information of the second electronic device, obtains the display position of the first progress bar in the second electronic device, determines the current position state of the first progress bar, meanwhile, the first electronic device obtains the posture information of the first electronic device, determines the position state of the first electronic device, and determines the relative position between the first electronic device and the first progress bar based on the determined current position state of the first progress bar and the position state of the first electronic device.
2. The method according to claim 1, wherein before the first electronic device controls the movement of the first progress bar displayed in the second electronic device or before the first electronic device controls the movement of the second progress bar displayed in the second electronic device, the method further comprises:
detecting a touch pressure of the first input acting on the touch area;
the first electronic device controls a first progress bar displayed in the second electronic device to move, including:
the first electronic equipment controls a first progress bar displayed in the second electronic equipment to move at a speed corresponding to the touch pressure; or,
the first electronic device controls the motion of a second progress bar displayed in the second electronic device, and the method comprises the following steps:
the first electronic equipment controls a second progress bar displayed in the second electronic equipment to move at a speed corresponding to the touch pressure;
wherein different touch pressures correspond to different speeds.
3. The method of claim 1, wherein the first electronic device is a stylus, and wherein determining the relative position of the first progress bar displayed in the first electronic device and the second electronic device comprises:
detecting the size of an included angle between the direction indicated by the stylus and the direction indicated by a first progress bar displayed in second electronic equipment;
and determining that the relative positions of the stylus and the first progress bar are matched under the condition that the size of the included angle is smaller than or equal to a preset value.
4. A first electronic device, comprising:
the first receiving module is used for receiving a first input to a touch area of the first electronic equipment;
the first control module is used for controlling the movement of the first progress bar displayed in the second electronic equipment under the condition that the relative positions of the first progress bar displayed in the first electronic equipment and the second electronic equipment are matched; or,
the first control module is used for controlling the movement of a second progress bar displayed in a second electronic device under the condition that the relative positions of the first progress bar displayed in the first electronic device and the first progress bar displayed in the second electronic device are not matched;
wherein the first electronic device is in communication connection with the second electronic device;
the first receiving module is specifically configured to receive a first input to a touch area of the first electronic device, and determine a relative position of a first progress bar displayed in the first electronic device and a second electronic device;
the first receiving module is specifically configured to, when the first input is received, obtain, by the first electronic device, current posture information of the second electronic device, obtain a display position of the first progress bar in the second electronic device, determine a current position state of the first progress bar, obtain, by the first electronic device, posture information of the first electronic device, determine a position state of the first electronic device, and determine, based on the determined current position state of the first progress bar and the determined position state of the first electronic device, a relative position between the first electronic device and the first progress bar.
5. The first electronic device of claim 4, further comprising:
the detection module is used for detecting the touch pressure of the first input acting on the touch area;
the first control module is specifically configured to control a first progress bar displayed in the second electronic device to move at a speed corresponding to the touch pressure; or,
the first control module is specifically configured to control a second progress bar displayed in the second electronic device to move at a speed corresponding to the touch pressure;
wherein different touch pressures correspond to different speeds.
6. The first electronic device of claim 4, wherein the first electronic device is a stylus, and the first receiving module comprises:
the detection submodule is used for detecting the size of an included angle between the direction indicated by the stylus and the direction indicated by the first progress bar displayed in the second electronic equipment;
and the determining submodule is used for determining that the relative positions of the stylus and the first progress bar are matched under the condition that the size of the included angle is smaller than or equal to a preset value.
7. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the control method according to any one of claims 1 to 3.
8. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the control method according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110089530.8A CN112732214B (en) | 2021-01-22 | 2021-01-22 | Control method, electronic device, and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110089530.8A CN112732214B (en) | 2021-01-22 | 2021-01-22 | Control method, electronic device, and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112732214A CN112732214A (en) | 2021-04-30 |
CN112732214B true CN112732214B (en) | 2023-01-06 |
Family
ID=75593813
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110089530.8A Active CN112732214B (en) | 2021-01-22 | 2021-01-22 | Control method, electronic device, and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112732214B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104898822A (en) * | 2014-03-03 | 2015-09-09 | 联想(北京)有限公司 | Control method and electronic equipment |
CN111240567A (en) * | 2020-01-08 | 2020-06-05 | 维沃移动通信有限公司 | Display screen angle adjusting method and electronic equipment |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7619616B2 (en) * | 2004-12-21 | 2009-11-17 | Microsoft Corporation | Pressure sensitive controls |
CN101639752B (en) * | 2008-07-28 | 2011-05-18 | 汉王科技股份有限公司 | Method and device for inputting electromagnetic induction scrolling information |
US8988398B2 (en) * | 2011-02-11 | 2015-03-24 | Microsoft Corporation | Multi-touch input device with orientation sensing |
KR20150099324A (en) * | 2014-02-21 | 2015-08-31 | 삼성전자주식회사 | Method for romote control between electronic devices and system therefor |
CN112162689B (en) * | 2020-09-18 | 2022-03-04 | 维沃移动通信有限公司 | Input method and device and electronic equipment |
CN112162684A (en) * | 2020-09-25 | 2021-01-01 | 维沃移动通信有限公司 | Parameter adjusting method and device and electronic equipment |
-
2021
- 2021-01-22 CN CN202110089530.8A patent/CN112732214B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104898822A (en) * | 2014-03-03 | 2015-09-09 | 联想(北京)有限公司 | Control method and electronic equipment |
CN111240567A (en) * | 2020-01-08 | 2020-06-05 | 维沃移动通信有限公司 | Display screen angle adjusting method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN112732214A (en) | 2021-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108762954B (en) | Object sharing method and mobile terminal | |
CN109905754B (en) | Virtual gift receiving method and device and storage equipment | |
CN108737904B (en) | Video data processing method and mobile terminal | |
CN107817939B (en) | Image processing method and mobile terminal | |
CN108491149B (en) | Split screen display method and terminal | |
CN108920069B (en) | Touch operation method and device, mobile terminal and storage medium | |
CN108616771B (en) | Video playing method and mobile terminal | |
CN110471588B (en) | Application icon sorting method and device and mobile terminal | |
CN106445340B (en) | Method and device for displaying stereoscopic image by double-screen terminal | |
US20140282204A1 (en) | Key input method and apparatus using random number in virtual keyboard | |
CN108958629B (en) | Split screen quitting method and device, storage medium and electronic equipment | |
CN107741814B (en) | Display control method and mobile terminal | |
CN111610904B (en) | Icon arrangement method, electronic device and storage medium | |
CN111124223A (en) | Application interface switching method and electronic equipment | |
CN111124571A (en) | Interface display method and electronic equipment | |
CN107957841B (en) | Rolling screen capture method and device | |
CN108696642B (en) | Method for arranging icons and mobile terminal | |
CN108052258B (en) | Terminal task processing method, task processing device and mobile terminal | |
US10101894B2 (en) | Information input user interface | |
CN110333803B (en) | Multimedia object selection method and terminal equipment | |
CN115017340A (en) | Multimedia resource generation method and device, electronic equipment and storage medium | |
CN107728898B (en) | Information processing method and mobile terminal | |
CN111447598B (en) | Interaction method and display device | |
CN111158552B (en) | Position adjusting method and device | |
CN110456959B (en) | Terminal control method and terminal |
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 |