CN107239351B - Pasting method and device - Google Patents
Pasting method and device Download PDFInfo
- Publication number
- CN107239351B CN107239351B CN201710376454.2A CN201710376454A CN107239351B CN 107239351 B CN107239351 B CN 107239351B CN 201710376454 A CN201710376454 A CN 201710376454A CN 107239351 B CN107239351 B CN 107239351B
- Authority
- CN
- China
- Prior art keywords
- pasting
- input box
- input
- paste
- copy
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure relates to a pasting method and device. The method comprises the following steps: writing an execution time of the copy operation in a timestamp field of a paste board in case the copy operation is detected; acquiring execution time of the copy operation from a timestamp field of the pasting board in a case where a first operation for an input box is detected; determining a time interval between an execution time of the first operation and an execution time of the copy operation; when the first operation meets the pasting condition according to the time interval, pasting the copied content corresponding to the copying operation in the input box, wherein the pasting condition comprises: the time interval is less than a time threshold. The method and the device can simplify the pasting process, greatly improve the operation convenience of pasting operation and realize quick pasting.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a pasting method and apparatus.
Background
In the process of using a terminal device such as a mobile phone, a tablet Computer, or a PC (Personal Computer), there are a lot of application scenarios that require copy and paste operations. For example, after copying the verification code from the short message, pasting the verification code in the input box; after copying the mobile phone number from the instant messaging tool, pasting the mobile phone number in the address book application or the telephone application; after copying the website, pasting the website in the input field of the browser.
In the related art, after the copy operation is performed, if a paste operation is required, an input box is usually found in the current interface, the input box is pressed for a long time to pop up a paste option in the current interface, and the paste is selected. The process of the pasting mode is complicated, and the operation convenience is low.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a pasting method and apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided a pasting method including:
writing an execution time of the copy operation in a timestamp field of a paste board in case the copy operation is detected;
acquiring execution time of the copy operation from a timestamp field of the pasting board in a case where a first operation for an input box is detected;
determining a time interval between an execution time of the first operation and an execution time of the copy operation;
when the first operation meets the paste condition according to the time interval, paste the copy content corresponding to the copy operation in the input box,
wherein the pasting conditions include: the time interval is less than a time threshold.
In one possible implementation manner, the pasting condition further includes: the type of the copied content is matched with the type allowed to be input by the input box, and the copied content comprises characters and pictures.
In one possible implementation manner, the pasting condition further includes: the character type of the copied content is matched with the character type allowed to be input by the input box.
In one possible implementation, the method further includes:
and under the condition that the copying operation is detected, displaying a pasting prompt button corresponding to the input frame according to the position of the input frame, wherein the maximum duration for displaying the pasting prompt button corresponding to the input frame is equal to the time threshold.
In one possible implementation, the first operation on the input box includes any one of the following:
a first operation performed in the input box;
and aiming at the first operation of the pasting prompt button corresponding to the input box.
According to a second aspect of the embodiments of the present disclosure, there is provided an attaching device including:
the writing module is used for writing the execution time of the copying operation into a time stamp field of the pasting board under the condition that the copying operation is detected;
an acquisition module, configured to acquire, when a first operation for an input box is detected, an execution time of the copy operation from a timestamp field of the pasting board;
a determining module for determining a time interval between an execution time of the first operation and an execution time of the copy operation;
a pasting module for pasting the copy content corresponding to the copy operation in the input frame under the condition that the first operation is determined to satisfy the pasting condition according to the time interval,
wherein the pasting conditions include: the time interval is less than a time threshold.
In one possible implementation manner, the pasting condition further includes: the source information of the copied content is matched with the attribute information of the input box.
In one possible implementation manner, the pasting condition further includes: the type of the copied content is matched with the type allowed to be input by the input box, and the copied content comprises characters and pictures.
In one possible implementation, the apparatus further includes:
and the display module is used for displaying the paste prompt button corresponding to the input frame according to the position of the input frame under the condition that the copying operation is detected, wherein the maximum duration for displaying the paste prompt button corresponding to the input frame is equal to the time threshold.
In one possible implementation, the first operation on the input box includes any one of the following:
a first operation performed in the input box;
and aiming at the first operation of the pasting prompt button corresponding to the input box.
According to a third aspect of the embodiments of the present disclosure, there is provided an attaching device including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the above method.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described method.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the copying operation is detected, the execution time of the copying operation is written into the time stamp field of the pasting board, when the first operation aiming at the input frame is detected, the execution time of the copying operation is acquired from the time stamp field of the pasting board, the time interval between the execution time of the first operation and the execution time of the copying operation is determined, and when the first operation is determined to meet the pasting condition according to the time interval, the copying content corresponding to the copying operation is pasted in the input frame, so that the pasting process can be simplified, the operation convenience of the pasting operation is greatly improved, and the quick pasting is realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of pasting according to an exemplary embodiment.
Fig. 2 is a schematic diagram illustrating a paste prompt button 22 corresponding to an input box 21 is displayed according to a position of the input box 21 in a paste method according to an exemplary embodiment.
Fig. 3 is a diagram illustrating a paste method for pasting copied contents corresponding to a copy operation in an input box 21 according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating an applicator device according to an exemplary embodiment.
Fig. 5 shows a block diagram of an applicator device according to an example of an exemplary embodiment.
Fig. 6 is a block diagram illustrating an apparatus 800 for pasting according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
FIG. 1 is a flow chart illustrating a method of pasting according to an exemplary embodiment. The method may be applied to a terminal device such as a mobile phone, a tablet computer, a notebook computer, or a PC, and is not limited herein. As shown in fig. 1, the method includes steps S11 to S14.
In step S11, in the case where the copy operation is detected, the execution time of the copy operation is written in the time stamp field of the pasting board.
As an example of this embodiment, the terminal device may add a timestamp field in a pasting board of the system, and the timestamp field may be used to record the execution time of the last copy operation. For example, in a case that an operating system of the terminal device is an Android (Android) operating system, the terminal device may modify in a bottom layer frame of the Android operating system, and add a timestamp field in a sticker of the bottom layer frame. By adding the field in the bottom layer code, the response speed is high in the recording time of the pasting board.
As an example of the present embodiment, the terminal device may transmit the execution time of the copy operation to the pasting board after acquiring the execution time of the copy operation to write the execution time of the copy operation in the timestamp field of the pasting board.
As an example of this embodiment, when the terminal device detects a copy operation, the terminal device may acquire copy content corresponding to the copy operation and may transmit the copy content corresponding to the copy operation to the sticker sheet so that the sticker sheet records the copy content corresponding to the copy operation.
In step S12, in the case where the first operation for the input box is detected, the execution time of the copy operation is acquired from the time stamp field of the pasting board.
The first operation may be any one of a single-click operation, a double-click operation, a long-press operation, and a drag operation.
It should be noted that, although the first operation is described above by taking the single-click operation, the double-click operation, the long-press operation, and the drag operation as examples, those skilled in the art will appreciate that the present disclosure is not limited thereto. Those skilled in the art can flexibly set the first operation according to the actual application scenario.
In one possible implementation, the first operation on the input box may include: a first operation performed in the input box. For example, when the first operation is a single-click operation, the terminal device may further acquire the execution time of the copy operation from the time stamp field of the sticker sheet when detecting the single-click operation performed in the input box, that is, when detecting that the user has single-click the input box. For another example, when the first operation is a long press operation, the terminal device may further acquire the execution time of the copy operation from the time stamp field of the sticker sheet if it detects the long press operation performed in the input box, that is, if it detects that the user has pressed the input box.
In step S13, a time interval between the execution time of the first operation and the execution time of the copy operation is determined.
In step S14, in a case where it is determined from the time interval that the first operation satisfies a paste condition including: the time interval is less than the time threshold.
In a possible implementation manner, in a case that the pasting condition is that the time interval is smaller than the time threshold, if the time interval between the execution time of the first operation and the execution time of the copy operation is smaller than the time threshold, the terminal device may determine that the first operation satisfies the pasting condition, so that the terminal device may determine that the user needs to paste the copy content corresponding to the copy operation in the input box. For example, the time threshold may be 10 seconds, which is not limited herein.
As an example of the present embodiment, the terminal device may acquire the copy content corresponding to the copy operation from the pasting board and paste the copy content corresponding to the copy operation in the input box in a case where it is determined that the first operation satisfies the paste condition according to the time interval.
In this embodiment, after the user performs the copy operation, the user can complete the pasting operation only by performing one-step operation (i.e., the first operation on the input box), so that the pasting process can be simplified, the convenience of the pasting operation is greatly improved, and the quick pasting operation is realized.
In one possible implementation, the pasting condition may further include: the source information of the copied contents is matched with the attribute information of the input box.
As an example of the implementation manner, in the case that the copied content is originated from a short message, a service provider sending the short message may be determined according to a sender number of the short message or the content of the short message, and the service provider sending the short message may be determined as the source information of the copied content.
As an example of this implementation, a service provider corresponding to the input box may be determined according to an App (Application) or a website to which the input box belongs, and the service provider corresponding to the input box may be determined as attribute information of the input box.
For example, in a case where the copied content is originated from the short message, the service provider sending the short message is the takeout platform a, and the service provider corresponding to the App to which the input box belongs is also the takeout platform a, it may be determined that the source information of the copied content matches the attribute information of the input box.
In a possible implementation manner, in a case that the pasting condition is that the time interval is smaller than the time threshold and the source information of the copy content matches the attribute information of the input box, if the time interval between the execution time of the first operation and the execution time of the copy operation is smaller than the time threshold and the source information of the copy content matches the attribute information of the input box, the terminal device may determine that the first operation satisfies the pasting condition, so that the terminal device may determine that the user needs to paste the copy content corresponding to the copy operation in the input box.
In one possible implementation, the pasting condition may further include: the character type of the copied contents is matched with the character type allowed to be input by the input box. For example, if the character type of the copied contents is a number and the character type allowed to be input in the input box is also a number, it may be determined that the character type of the copied contents matches the character type allowed to be input in the input box.
In a possible implementation manner, in a case that the pasting condition is that the time interval is smaller than the time threshold, and the character type of the copy content matches the character type allowed to be input by the input box, if the time interval between the execution time of the first operation and the execution time of the copy operation is smaller than the time threshold, and the character type of the copy content matches the character type allowed to be input by the input box, the terminal device may determine that the first operation satisfies the pasting condition, so that the terminal device may determine that the user needs to paste the copy content corresponding to the copy operation in the input box.
In another possible implementation manner, under the condition that the paste condition is that the time interval is smaller than the time threshold, the source information of the copy content is matched with the attribute information of the input box, and the character type of the copy content is matched with the character type allowed to be input by the input box, if the time interval between the execution time of the first operation and the execution time of the copy operation is smaller than the time threshold, the source information of the copy content is matched with the attribute information of the input box, and the character type of the copy content is matched with the character type allowed to be input by the input box, the terminal device may determine that the first operation satisfies the paste condition, and thus the terminal device may determine that the user needs to paste the copy content corresponding to the copy operation in the input box.
In one possible implementation, the method may further include: and when the copying operation is detected, displaying a paste prompt button corresponding to the input frame according to the position of the input frame. Fig. 2 is a schematic diagram illustrating a paste prompt button 22 corresponding to an input box 21 is displayed according to a position of the input box 21 in a paste method according to an exemplary embodiment.
As an example of this implementation, a paste prompt button corresponding to the input box may be displayed inside the input box.
As another example of this implementation, the paste prompt button corresponding to the input box may be partially displayed inside the input box and partially displayed outside the input box.
As another example of this implementation, a paste prompt button corresponding to the input box may be displayed outside the input box. For example, the display may be performed above, below, leftward, rightward, above-left, below-left, above-right, or below-right of the input box, and the like, but is not limited thereto. In this example, the distance of the paste prompt button corresponding to the input box from the input box may be less than a distance threshold. For example, the distance threshold may be 5 pixels, which is not limited herein.
It should be noted that, although the manner of displaying the paste prompt button corresponding to the input box according to the position of the input box is described in the above three examples, those skilled in the art can understand that the present disclosure should not be limited thereto. A person skilled in the art can flexibly set the display position of the paste prompt button corresponding to the input box according to the actual application scenario, as long as the display position can represent the corresponding relationship between the paste prompt button corresponding to the input box and the input box.
As an example of this implementation, the paste prompt button corresponding to the input box may display paste prompt information, for example, the paste prompt information may include the text information "do it need to paste? Or "paste".
As an example of this implementation, the button icon of the paste prompt button corresponding to the input box may be in a bubble style. Wherein, the pasting prompt button of the bubble type can display the pasting prompt information.
As an example of this implementation, when a copy operation is detected, if only one input box exists in the current interface, the paste prompt button corresponding to the input box may be displayed according to the position of the input box.
As another example of this implementation, when a copy operation is detected, if there are multiple input boxes in the current interface, a paste prompt button corresponding to each input box may be displayed according to the position of each input box.
As another example of the implementation manner, when a copy operation is detected, if a plurality of input boxes exist in the current interface, an input box matching the feature information of the copy content corresponding to the copy operation may be determined from the respective input boxes, and the paste prompt button corresponding to the first input box may be displayed according to the position of the matched input box.
Wherein the characteristic information of the copied content may include at least one of: a type of the copied contents, a character type of the copied contents, and a character length of the copied contents.
As one example of this implementation, the characteristic information of the copy content may include a type of the copy content. For example, in a case where the duplicated content includes at least one of "http", "www", "wap", "com", "cn", "net", and ". org", the type of the duplicated content may be determined to be a web address. In a case where the current interface is a browser interface, it may be determined that the input box matching the feature information of the copied content is an address input field of the browser.
As another example of this implementation, the characteristic information of the copy content may include a character length of the copy content. For example, if the character length of the copied content is 6 bits, a verification code input box exists in the current interface, and the length of the character allowed to be input by the verification code input box is 6 bits, the input box matched with the feature information of the copied content may be determined as the verification code input box.
As another example of the implementation, the characteristic information of the copy content may include a character type and a character length of the copy content. For example, if each character of the copied content is a number, the length of the character of the copied content is 11 bits, and the current interface is a contact detail interface in the address book, the input box matched with the feature information of the copied content may be determined to be a mobile phone number input field in the contact detail interface.
In one possible implementation, the maximum duration of the paste prompt button corresponding to the display input box may be equal to a time threshold. In this implementation, the time duration for displaying the paste prompt button corresponding to the input box may be equal to the time difference between the current time and the execution time of the copy operation. If the first operation for the input frame is not detected when the time length for displaying the paste prompt button corresponding to the input frame reaches the time threshold, it can be indicated to a great extent that the user does not need to perform the paste operation in the input frame. Therefore, under the condition that the time length for displaying the paste prompt button corresponding to the input frame reaches the time threshold, the terminal device can control the paste prompt button corresponding to the input frame to disappear, and therefore under the condition that a user does not need to perform paste operation in the input frame, the paste prompt button corresponding to the input frame can be prevented from shielding the current interface.
In one possible implementation, the first operation on the input box may include: and aiming at the first operation of pasting a prompt button corresponding to the input box.
As an example of this implementation, when the first operation is a single-click operation, the terminal device may further acquire an execution time of the copy operation from a timestamp field of the sticker sheet if it detects the single-click operation on the paste hint button corresponding to the input box, that is, if it detects that the user has single-clicked the paste hint button corresponding to the input box.
As another example of the implementation, in a case where the first operation is a drag operation and a paste hint button corresponding to the input box is displayed outside the input box, if the drag operation for the paste hint button corresponding to the input box is detected and the first distance is smaller than the second distance, the execution time of the copy operation may be further acquired from the timestamp field of the pasting pad. The first distance may be a distance between the dragged pasting prompt button and the input box, and the second distance may be a distance between the pasting prompt button and the input box before dragging.
As an example of this implementation, when the button icon of the paste prompt button corresponding to the input frame is in the bubble type, and the terminal device detects the first operation on the paste prompt button corresponding to the input frame, the paste prompt button in the bubble type may be controlled to disappear, so that it is possible to avoid the paste prompt button corresponding to the input frame from blocking the current interface after the paste operation is performed.
In a possible implementation manner, the paste prompt button corresponding to the input box may be controlled to disappear when it is detected that the paste prompt button corresponding to the input box is dragged and the first distance is greater than the second distance. The first distance may be a distance between the dragged pasting prompt button and the input box, and the second distance may be a distance between the pasting prompt button and the input box before dragging. This implementation can no longer show the suggestion button of pasting that the input frame corresponds under the condition that detects the suggestion button of pasting that the input frame corresponds and is dragged to the direction of keeping away from the input frame to under the condition that the user need not paste the operation in this input frame, no longer show the suggestion button of pasting that the input frame corresponds, thereby can avoid pasting the suggestion button and shelter from current interface under the condition that the user need not paste the operation in this input frame.
Fig. 3 is a diagram illustrating a paste method for pasting copied contents corresponding to a copy operation in an input box 21 according to an exemplary embodiment. As shown in fig. 3, the copy content corresponding to the copy operation is "875852". In a case where the first operation for the input box is detected and it is determined that the first operation satisfies the paste condition according to the time interval between the execution time of the first operation and the execution time of the copy operation, the copy content "875852" corresponding to the copy operation is pasted in the input box 21.
Fig. 4 is a block diagram illustrating an applicator device according to an exemplary embodiment. Referring to fig. 4, the apparatus includes a writing module 41, an obtaining module 42, a determining module 43, and a pasting module 44. The writing module 41 is configured to write the execution time of the copy operation in the time stamp field of the pasting board in a case where the copy operation is detected. The acquisition module 42 is configured to acquire an execution time of the copy operation from the time stamp field of the paste board in a case where the first operation for the input box is detected. The determination module 43 is configured to determine a time interval between the execution time of the first operation and the execution time of the copy operation. The pasting module 44 is configured to paste the copy content corresponding to the copy operation in the input box if it is determined that the first operation satisfies a paste condition according to the time interval, where the paste condition includes: the time interval is less than a time threshold.
In one possible implementation, the pasting condition further includes: the source information of the copied contents is matched with the attribute information of the input box.
In one possible implementation, the pasting condition further includes: the character type of the copied contents is matched with the character type allowed to be input by the input box.
Fig. 5 shows a block diagram of an applicator device according to an example of an exemplary embodiment. As shown in fig. 5:
in a possible implementation, the apparatus further comprises a display module 45. The display module 45 is configured to display a paste prompt button corresponding to the input frame according to the position of the input frame when the copy operation is detected, wherein the maximum duration of displaying the paste prompt button corresponding to the input frame is equal to the time threshold.
In one possible implementation, the first operation on the input box includes any one of the following: a first operation performed in the input box; and aiming at the first operation of pasting a prompt button corresponding to the input box.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The embodiment can simplify the pasting process, greatly improves the convenience of pasting operation, and realizes quick pasting.
Fig. 6 is a block diagram illustrating an apparatus 800 for pasting according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. A method of affixing, comprising:
writing an execution time of the copy operation in a timestamp field of a paste board in case the copy operation is detected;
acquiring execution time of the copy operation from a timestamp field of the pasting board in a case where a first operation for an input box is detected;
determining a time interval between an execution time of the first operation and an execution time of the copy operation;
when the first operation meets the paste condition according to the time interval, paste the copy content corresponding to the copy operation in the input box,
wherein the pasting conditions include: the time interval is less than a time threshold;
the pasting condition further comprises: and the source information of the copied content is matched with the attribute information of the input box, the source information is used for representing the service provider information corresponding to the copied content, and the attribute information is used for representing the service provider information corresponding to the input box.
2. The method of claim 1, wherein the pasting conditions further comprise: the type of the copied content is matched with the type allowed to be input by the input box, and the copied content comprises characters and pictures.
3. The method of claim 1, further comprising:
and under the condition that the copying operation is detected, displaying a pasting prompt button corresponding to the input frame according to the position of the input frame, wherein the maximum duration for displaying the pasting prompt button corresponding to the input frame is equal to the time threshold.
4. The method of claim 1, wherein the first operation on the input box comprises any one of:
a first operation performed in the input box;
and aiming at the first operation of the pasting prompt button corresponding to the input box.
5. An applicator device, comprising:
the writing module is used for writing the execution time of the copying operation into a time stamp field of the pasting board under the condition that the copying operation is detected;
an acquisition module, configured to acquire, when a first operation for an input box is detected, an execution time of the copy operation from a timestamp field of the pasting board;
a determining module for determining a time interval between an execution time of the first operation and an execution time of the copy operation;
a pasting module for pasting the copy content corresponding to the copy operation in the input frame under the condition that the first operation is determined to satisfy the pasting condition according to the time interval,
wherein the pasting conditions include: the time interval is less than a time threshold;
the pasting condition further comprises: and matching the source information of the copied content with the attribute information of the input box, wherein the source information is used for representing the service provider information corresponding to the copied content, and the attribute information is used for representing the service provider information corresponding to the application program to which the input box belongs.
6. The apparatus of claim 5, wherein the paste condition further comprises: the type of the copied content is matched with the type allowed to be input by the input box, and the copied content comprises characters and pictures.
7. The apparatus of claim 5, further comprising:
and the display module is used for displaying the paste prompt button corresponding to the input frame according to the position of the input frame under the condition that the copying operation is detected, wherein the maximum duration for displaying the paste prompt button corresponding to the input frame is equal to the time threshold.
8. The apparatus of claim 5, wherein the first operation for the input box comprises any one of:
a first operation performed in the input box;
and aiming at the first operation of the pasting prompt button corresponding to the input box.
9. An applicator device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710376454.2A CN107239351B (en) | 2017-05-25 | 2017-05-25 | Pasting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710376454.2A CN107239351B (en) | 2017-05-25 | 2017-05-25 | Pasting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107239351A CN107239351A (en) | 2017-10-10 |
CN107239351B true CN107239351B (en) | 2020-11-10 |
Family
ID=59985637
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710376454.2A Active CN107239351B (en) | 2017-05-25 | 2017-05-25 | Pasting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107239351B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107765958A (en) * | 2017-10-30 | 2018-03-06 | 中国联合网络通信集团有限公司 | One kind replicates method of attaching and system and user terminal |
CN108170539A (en) * | 2017-12-08 | 2018-06-15 | 北京小米移动软件有限公司 | Information processing method and equipment |
CN110008043A (en) * | 2019-04-09 | 2019-07-12 | 中国联合网络通信集团有限公司 | Method of attaching and affixing system |
CN110381209A (en) * | 2019-07-22 | 2019-10-25 | 网易(杭州)网络有限公司 | Processing method, device and the storage medium of pasting boards message |
CN110502173A (en) * | 2019-08-19 | 2019-11-26 | Oppo(重庆)智能科技有限公司 | A kind of interface content processing method, device and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105808058A (en) * | 2016-03-04 | 2016-07-27 | 陈包容 | Intelligent display method and apparatus for pasting prompt |
CN105871690A (en) * | 2016-03-31 | 2016-08-17 | 阿里巴巴集团控股有限公司 | Instant messaging realization method and device |
CN106126025A (en) * | 2016-06-23 | 2016-11-16 | 北京小米移动软件有限公司 | Replicate the exchange method and device pasted |
CN106484259A (en) * | 2016-09-30 | 2017-03-08 | 北京小米移动软件有限公司 | Input method, device and equipment |
CN106527851A (en) * | 2016-10-31 | 2017-03-22 | 维沃移动通信有限公司 | Information previewing method and mobile terminal |
-
2017
- 2017-05-25 CN CN201710376454.2A patent/CN107239351B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105808058A (en) * | 2016-03-04 | 2016-07-27 | 陈包容 | Intelligent display method and apparatus for pasting prompt |
CN105871690A (en) * | 2016-03-31 | 2016-08-17 | 阿里巴巴集团控股有限公司 | Instant messaging realization method and device |
CN106126025A (en) * | 2016-06-23 | 2016-11-16 | 北京小米移动软件有限公司 | Replicate the exchange method and device pasted |
CN106484259A (en) * | 2016-09-30 | 2017-03-08 | 北京小米移动软件有限公司 | Input method, device and equipment |
CN106527851A (en) * | 2016-10-31 | 2017-03-22 | 维沃移动通信有限公司 | Information previewing method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107239351A (en) | 2017-10-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107239351B (en) | Pasting method and device | |
CN107066172B (en) | File transmission method and device of mobile terminal | |
CN106126025B (en) | Interactive method and device for copying and pasting | |
CN104317402B (en) | Description information display method and device and electronic equipment | |
CN106775202B (en) | Information transmission method and device | |
CN105426094B (en) | Information pasting method and device | |
CN108763104B (en) | Method and device for pre-reading file page and storage medium | |
CN110968364B (en) | Method and device for adding shortcut plugins and intelligent device | |
CN110085066B (en) | Method and device for displaying reading information and electronic equipment | |
CN107729098B (en) | User interface display method and device | |
CN108984098B (en) | Information display control method and device based on social software | |
CN105808304B (en) | Code deployment method, device and system | |
CN107222576B (en) | Photo album synchronization method and device | |
CN105095296B (en) | File management method and device | |
CN107885571B (en) | Display page control method and device | |
CN108829473B (en) | Event response method, device and storage medium | |
CN107241439B (en) | Message pushing method and device for H5 page | |
CN107885464B (en) | Data storage method, device and computer readable storage medium | |
CN107967233B (en) | Electronic work display method and device | |
EP3185515B1 (en) | Method and device for inputting information | |
CN111049732B (en) | Push message display method and device, electronic equipment and medium | |
CN110457084B (en) | Loading method and device | |
CN110196747B (en) | Information processing method and device | |
CN114025317A (en) | Multimedia resource propagation method, device, server, terminal and storage medium | |
CN108469913B (en) | Method, apparatus and storage medium for modifying input information |
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 |