Method and apparatus for generating combined instruction during application operation, and storage medium
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorChumou Guo
Life of this patent
Estimating the term…
Abstract
Disclosed are a method and an apparatus for generating a combined instruction during an application operation. The method includes: generating an instruction recording layer corresponding to a target application, the instruction recording layer covering a target interface corresponding to the target application; receiving trigger operations for the target interface via the instruction recording layer, and generating a combined instruction corresponding to the target interface according to a trigger sequence and trigger locations of the trigger operations; and issuing the trigger operations to the target application, to cause the target application to execute operations corresponding to the trigger operations.
Claims17
A method for generating a combined instruction during an application operation, comprising:
- generating an instruction recording layer corresponding to a target application, the instruction recording layer covering a target interface corresponding to the target application;
- receiving trigger operations for the target interface via the instruction recording layer, and generating a combined instruction corresponding to the target interface according to a trigger sequence and trigger locations of the trigger operations;
- and
- issuing the trigger operations to the target application, to cause the target application to execute operations corresponding to the trigger operations,
- wherein receiving the trigger operations for the target interface via the instruction recording layer, and generating the combined instruction corresponding to the target interface according to the trigger sequence and trigger locations of the trigger operations comprises:
- determining trigger coordinates corresponding to the trigger operations based on a coordinate system corresponding to the target interface in a case of detecting the trigger operations by the instruction recording layer;
- and
- recording the trigger coordinates according to the trigger sequence of the trigger operations as the combined instruction corresponding to the target interface.
An apparatus for generating a combined instruction during an application operation, comprising:
- one or more processors;
- a memory storing instructions executable by the one or more processors;
- wherein the one or more processors are configured to:
- generate an instruction recording layer corresponding to a target application, the instruction recording layer covering a target interface corresponding to the target application;
- receive trigger operations for the target interface via the instruction recording layer, and generate a combined instruction corresponding to the target interface according to a trigger sequence and trigger locations of the trigger operations;
- and
- issue the trigger operations to the target application, to cause the target application to execute operations corresponding to the trigger operations,
- wherein the one or more processors are configured to:
- determine trigger coordinates corresponding to the trigger operations based on a coordinate system corresponding to the target interface in a case of the instructions recording layer detecting the trigger operations;
- and
- record the trigger coordinates according to the trigger sequence of the trigger operations as the combined instruction corresponding to the target interface.
A non-transitory computer-readable storage medium having computer instructions stored thereon, wherein when the instructions are executed by a processor, the processor is caused to implement a method for generating a combined instruction during an application operation, and the method comprises:
- generating an instruction recording layer corresponding to a target application, the instruction recording layer covering a target interface corresponding to the target application;
- receiving trigger operations for the target interface via the instruction recording layer, and generating a combined instruction corresponding to the target interface according to a trigger sequence and trigger locations of the trigger operations;
- and
- issuing the trigger operations to the target application, to cause the target application to execute operations corresponding to the trigger operations,
- wherein receiving the trigger operations for the target interface via the instruction recording layer, and generating the combined instruction corresponding to the target interface according to the trigger sequence and trigger locations of the trigger operations comprise:
- determining trigger coordinates corresponding to the trigger operations based on a coordinate system corresponding to the target interface in a case of the instruction recording layer detecting the trigger operations;
- and
- recording the trigger coordinates according to the trigger sequence of the trigger operations as the combined instruction corresponding to the target interface.
Dependencies are inferred from the claim text.