WO2019056388A1 - Content selection method, electronic device, storage medium and computer program product - Google Patents

Content selection method, electronic device, storage medium and computer program product Download PDF

Info

Publication number
WO2019056388A1
WO2019056388A1 PCT/CN2017/103242 CN2017103242W WO2019056388A1 WO 2019056388 A1 WO2019056388 A1 WO 2019056388A1 CN 2017103242 W CN2017103242 W CN 2017103242W WO 2019056388 A1 WO2019056388 A1 WO 2019056388A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
page
content
instruction
location corresponding
Prior art date
Application number
PCT/CN2017/103242
Other languages
French (fr)
Chinese (zh)
Inventor
龚敏
Original Assignee
深圳市云中飞网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市云中飞网络科技有限公司 filed Critical 深圳市云中飞网络科技有限公司
Priority to PCT/CN2017/103242 priority Critical patent/WO2019056388A1/en
Priority to CN201780092225.6A priority patent/CN110754073A/en
Publication of WO2019056388A1 publication Critical patent/WO2019056388A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the present application relates to the field of mobile communication technologies, and in particular, to a content selection method, an electronic device, a storage medium, and a computer program product.
  • the traditional way of selecting the content to be copied is usually selected by dragging the cursor.
  • the conventional method takes a long time in the case of selecting more content.
  • the embodiment of the present application provides a content selection method, an electronic device, a storage medium, and a computer program product, which can improve the speed selected in the case of more content.
  • a content selection method including:
  • An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the program is executed by the processor, the processor performs the following steps:
  • the first touch instruction Obtaining a first touch instruction and a first page displayed when the first touch instruction occurs, and according to The first touch instruction identifies a first touch location;
  • One or more non-volatile storage media containing computer-executable instructions that, when executed by one or more processors, cause the processor to perform the following steps:
  • a computer program product comprising instructions that, when run on a computer, cause the computer to perform the following steps:
  • the first touch command generated by the first touch operation is received on the first page, and then the second touch operation is generated on the second page.
  • the content can be directly selected according to the two touch operations directly (ie, the content corresponding to the first touch position in the first page is to be in the second page)
  • the second touch position switches the entire content between the content to the selected state, thereby increasing the speed selected in the case of a large amount of content.
  • FIG. 1 is a flowchart of a content selection method provided by an embodiment
  • FIG. 2 is a schematic diagram showing the internal structure of an embodiment of an electronic device for performing the content selection method of the embodiment shown in FIG. 1;
  • FIG. 3 is a flow chart of one embodiment of a content selection method of the embodiment shown in FIG. 1;
  • FIG. 4 is a flow chart of another embodiment of a content selection method of the embodiment shown in FIG. 1;
  • FIG. 5 is a block diagram showing a part of a structure of an electronic device related to an electronic device according to an embodiment.
  • first may be referred to as a second client
  • second client may be referred to as a first client, without departing from the scope of the present application.
  • Both the first client and the second client are clients, but they are not the same client.
  • FIG. 2 shows an internal structure diagram of one embodiment of the electronic device.
  • the electronic device includes a processor and a memory connected through a system bus. Further, a network interface may also be included.
  • the processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
  • the memory is used to store data, programs, etc., and the memory stores at least one computer program, which can be executed by the processor to implement the content selection method provided in the embodiments of the present application.
  • the memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random storage memory (Random-Access-Memory, RAM).
  • the memory includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and a computer program.
  • the computer program can be executed by a processor for implementing the content selection methods provided by the various embodiments below.
  • the internal memory provides a cached operating environment for operating system computer programs in a non-volatile storage medium.
  • the network interface can be an Ethernet card or a wireless network card, etc., for communicating with external electronic devices.
  • the electronic device can be a cell phone, a tablet or a personal digital assistant or a wearable device. It will be understood by those skilled in the art that the structure shown in FIG.
  • FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied.
  • the specific electronic may include More or fewer components are shown in the figures, or some components are combined, or have different component arrangements.
  • the text selection method provided by this embodiment includes the following content.
  • Step 100 Acquire a first touch instruction and a first page displayed when the first touch instruction occurs, and identify a first touch position on the touch panel according to the first touch instruction.
  • the first touch command is an instruction generated by the electronic device after the user performs the first touch operation on the touch panel of the electronic device.
  • the type of the first touch command is a current value.
  • the first touch instruction may be an instruction generated by a first touch operation in which the touch time is greater than a set threshold. In other words, when the user presses the touch panel for a long time, it is considered that the first touch operation is performed, so that the accuracy of the selection can be improved to avoid the occurrence of misoperation.
  • the first page refers to the page currently displayed by the electronic device when the user performs the first touch operation.
  • the page is, for example, a content page of the website. Therefore, when the user desires to select content from the current page, the first touch operation can be performed at the beginning of the content to be copied.
  • the first touch location is, for example, contact coordinates.
  • the first touch location is combined with the first page to determine the initial portion of the selected content. Therefore, if one of the first touch location and the first page changes, the content is selected. The beginning will change.
  • Step 400 Acquire a second page displayed when the second touch instruction and the second touch instruction occur, and identify the second touch position according to the second touch instruction.
  • the second touch command is an instruction generated by the electronic device after the user performs the second touch operation on the touch panel of the electronic device.
  • the type of the second touch command is a current value.
  • the second touch instruction may be an instruction corresponding to the second touch operation in which the touch time is greater than the set threshold. In other words, when the user presses the touch panel for the second time, it is considered that the second touch operation is performed, so that the accuracy of the selection can be improved to avoid the occurrence of misoperation.
  • the second page refers to the page currently displayed by the electronic device when the user performs the second touch operation.
  • the page is, for example, a content page of the website.
  • the first page and the second page may be the same page or different pages.
  • the user may determine the beginning portion of the selected content according to the first touch operation of the user. After that, the user performs a page turning operation on the electronic device, and until the second page is reached, and then the second touch operation is performed on the second page, and the end portion of the selected content is determined according to the user's second touch operation. For example: suppose the page has a total of 1000 pages.
  • the page can be turned in various ways, such as scrolling the scroll bar on the right side of the page.
  • the second touch position is combined with the second page to determine the end portion of the selected content. Therefore, if one of the second touch position and the second page changes, Then the end of the selected content will change.
  • a variable for example, Flag
  • Flag the initial value of Flag
  • Step 700 Switch all content between the first touch location corresponding content in the first page to the second touch location corresponding content in the second page to a selected state.
  • the content may be directly selected according to two touch operations, thereby improving the selection of the content. The speed selected below.
  • step 100 the following steps are further included:
  • Step 310 Display a first touch mark at the first touch position.
  • displaying the first touch mark can facilitate checking whether the position to start the selection is accurate, and it is convenient to know whether the first touch operation is effectively performed.
  • the first touch mark is, for example, a cursor.
  • the position displayed by the first touch mark may surround the frontmost text covered by the first touch position (the front end text is located at the leftmost and topmost text from the perspective of the user) .
  • step 700 the following steps are further included:
  • Step 210 Switch the content that has been selected to the unselected state.
  • the content that is already in the selected state refers to the text selected according to the previous touch operation (ie, the touch operation performed before the content selection method provided by the embodiment is performed), and the previously selected content is switched to the unselected state, so as to facilitate The user reselects the new content.
  • the previously selected content is switched to the unselected state.
  • step 210 may be performed prior to performing step 310 above to improve the identifiability of the first touch mark. It can be understood that the execution order of step 210 is not limited to one case shown in FIG. 3, for example, step 210 and step 310 can also be performed simultaneously.
  • step 310 based on the premise including the above step 310, the following steps are further included before the step 700, please continue to refer to FIG. 3.
  • Step 320 When it is determined that the first adjustment operation for changing the position of the first touch mark is received, the position after the first touch mark is updated after the end of the first adjustment operation is acquired.
  • the first adjustment operation is performed, and the position where the first touch mark is located changes accordingly. Therefore, if the user believes that the first touch mark does not accurately point to the beginning portion of the content to be selected, the user can perform a first adjustment operation to fine tune the position at which the start portion of the selected content is located. When the first adjustment operation ends, the updated position of the first touch mark corresponds to the initial portion of the content that the user finally desires to select.
  • the first adjusting operation is that the user clicks on the displayed first preset flag corresponding to the first touch mark.
  • the first preset flag may be, for example, an up arrow, a down arrow, a left arrow, or a right arrow displayed in an area of the display.
  • the up arrow indicates that the first touch mark is moved upward along the long side direction (ie, the vertical direction) of the display screen.
  • the downward shift arrow represents the downward movement of the first touch mark along the long side direction of the display screen.
  • the left shift arrow represents moving the first touch mark to the left along the short side direction of the display screen (ie, the horizontal direction).
  • the right shift arrow represents moving the first touch mark to the right along the short side direction of the display screen.
  • the type of the first adjustment operation is not limited to the above case, and for example, it may also be used.
  • the user drags the first touch mark along the set direction (for example, horizontal direction or vertical direction) with the finger on the display screen.
  • step 700 is:
  • Step 710 Switch all the content between the content corresponding to the first touch mark updated in the first page to the content corresponding to the second touch position in the second page to a selected state.
  • step 320 is not limited to one case shown in FIG. 3, as long as step 320 is performed between step 310 and step 710.
  • step 400 the following steps are further included after step 400, please refer to FIG. 4.
  • Step 500 displaying a second touch mark at the second touch position.
  • displaying the second touch mark can facilitate checking whether the position at which the selection ends is accurate, and it is convenient to know whether the second touch operation is effectively performed.
  • the second touch mark is, for example, a cursor.
  • the position displayed by the second touch mark may surround the frontmost text covered by the second touch position (the front end text is located at the leftmost and topmost text from the perspective of the user) .
  • the second touch mark and the first touch mark can also be of different types in order to distinguish the start part and the end part of the content to be selected.
  • step 310 based on the above steps 500 and 310, the following steps are further included before step 310, please continue to refer to FIG. 4.
  • Step 220 hiding all displayed first touch marks and second touch marks.
  • All of the displayed first touch mark and second touch mark refer to the first touch mark and the second touch mark displayed on the display screen before the content selection method provided by the embodiment is performed. In other words, before the new content is to be selected, the first touch mark and the second touch mark displayed in the previous selection process are hidden, thereby facilitating the current accurate selection of the content.
  • step 500 based on the premise of including the above step 500, the following steps are further included before step 700, please continue to refer to FIG. 4.
  • Step 600 When it is determined that the second adjustment operation for changing the position of the second touch mark is received, the position after the second touch mark is updated after the second adjustment operation ends is acquired.
  • the second adjustment operation is performed, and the position where the second touch mark is located is changed accordingly. Therefore, if the user believes that the end portion of the content to be selected is not accurately pointed according to the second touch mark, the user can perform a second adjustment operation to fine tune the position at which the end portion of the selected content is located. After the second adjustment operation ends, the updated position of the second touch mark is the end portion of the content to be selected that the user finally desires.
  • the second adjusting operation is that the user clicks on the displayed second preset flag corresponding to the second touch mark.
  • the second preset flag may be, for example, an up arrow, a down arrow, a left arrow, or a right arrow displayed in an area of the display screen.
  • the up arrow indicates that the second touch mark is moved upward along the long side direction (ie, the vertical direction) of the display screen.
  • the down arrow indicates that the second touch mark is moved down along the long side of the display screen.
  • the left shift arrow represents moving the second touch mark to the left in the short side direction (ie, the horizontal direction) of the display screen.
  • the right shift arrow represents moving the second touch mark to the right in the short side direction of the display screen.
  • the type of the second adjustment operation is not limited to the above case, and for example, the user may drag the second touch mark in a set direction (for example, a horizontal direction or a vertical direction) with a finger on the display screen.
  • a set direction for example, a horizontal direction or a vertical direction
  • step 700 is:
  • Step 720 Switch all content between the content corresponding to the first touch location in the first page to the content corresponding to the location updated by the second touch mark in the second page to a selected state.
  • step 320 is performed before step 310 and before step 700
  • step 600 is performed before step 500 and after step 700
  • step 700 will be specifically: from the first page.
  • the first touch mark is more The new position corresponding content to the second page in the second page after the second touch mark updated position corresponding content is switched to the selected state.
  • the user separately fine-tunes the position of the beginning portion and the ending portion of the selected content.
  • step 210 in FIG. 3 may also be included in the embodiment shown in FIG. 4, and step 210 may be performed before step 100 after step 100.
  • FIG. 1 , FIG. 3 and FIG. 4 are schematic flowcharts of a method according to an embodiment of the present application. It should be understood that although the steps in the flowcharts of FIGS. 1, 3, and 4 are sequentially displayed in accordance with the indication of the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and may be performed in other sequences. Moreover, at least some of the steps in FIG. 1, FIG. 3 and FIG. 4 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times. The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
  • Embodiments of the present application also provide one or more non-volatile storage media including computer-executable instructions that, when executed by one or more processors, cause the processor to perform the above-described embodiments
  • the content selection method provided.
  • the embodiment of the present application further provides a computer program product comprising instructions, which when executed on a computer, causes the computer to execute the content selection method provided by the foregoing embodiment.
  • An embodiment of the present application also provides an electronic device. As shown in FIG. 5, for the convenience of description, only the parts related to the embodiments of the present application are shown. If the specific technical details are not disclosed, please refer to the method part of the embodiment of the present application.
  • the electronic device can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an on-board computer, a wearable device, and the like, and the electronic device is used as a mobile phone. :
  • FIG. 5 is a block diagram showing a partial structure of a mobile phone related to an electronic device according to an embodiment of the present application.
  • the mobile phone includes: a radio frequency (RF) circuit 510, a memory 520, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a wireless fidelity (WiFi) module 570, and a processor 580. And power supply 590 and other departments Pieces.
  • RF radio frequency
  • the structure of the handset shown in FIG. 5 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
  • the RF circuit 510 can be used for receiving and transmitting information during the transmission and reception of information or during the call, and can receive the downlink information of the base station and then process it to the processor 580.
  • the uplink data can also be sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 510 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Pack
  • the memory 520 can be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 520.
  • the memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as an application of a sound playing function, an application of an image playing function, etc.);
  • the data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone.
  • memory 520 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 530 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 500.
  • the input unit 530 may include a touch panel 531 and other input devices 532.
  • the touch panel 531 which may also be referred to as a touch panel, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 531 or on the touch panel. Exercise near 531 ()), and according to a preset program to drive the corresponding connection device.
  • the touch panel 531 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 580 is provided and can receive commands from the processor 580 and execute them.
  • the touch panel 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 530 may also include other input devices 532. Specifically, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.).
  • the display unit 540 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 540 can include a display panel 541.
  • the display panel 541 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 531 can cover the display panel 541. When the touch panel 531 detects a touch operation on or near it, the touch panel 531 transmits to the processor 580 to determine the type of the touch event, and then the processor 580 is The type of touch event provides a corresponding visual output on display panel 541.
  • touch panel 531 and the display panel 541 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 5, in some embodiments, the touch panel 531 and the display panel 541 may be integrated. Realize the input and output functions of the phone.
  • the handset 500 can also include at least one type of sensor 550, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of the ambient light, and the proximity sensor may close the display panel 541 and/or when the mobile phone moves to the ear. Or backlight.
  • the motion sensor may include an acceleration sensor, and the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors And so on.
  • the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors And so on.
  • Audio circuitry 560, speaker 551, and microphone 552 can provide an audio interface between the user and the handset.
  • the audio circuit 560 can transmit the converted electrical data of the received audio data to the speaker 551, and convert it into a sound signal output by the speaker 551.
  • the microphone 552 converts the collected sound signal into an electrical signal, and the audio circuit 560 is used by the audio circuit 560. After receiving, it is converted into audio data, and then processed by the audio data output processor 580, transmitted to another mobile phone via the RF circuit 510, or outputted to the memory 520 for subsequent processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 570, which provides users with wireless broadband Internet access.
  • FIG. 5 shows the WiFi module 570, it can be understood that it does not belong to the essential configuration of the mobile phone 500 and can be omitted as needed.
  • the processor 580 is the control center of the handset, and connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 520, and invoking data stored in the memory 520, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • processor 580 can include one or more processing units.
  • processor 580 can integrate an application processor and a modem processor, where the application processor primarily processes an operating system, user interface, and applications, etc.; the modem processor primarily processes wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 580.
  • the handset 500 also includes a power source 590 (such as a battery) that supplies power to the various components.
  • a power source 590 such as a battery
  • the power source can be logically coupled to the processor 580 via a power management system to enable management of charging, discharging, and power management functions through the power management system.
  • the handset 500 may also include a camera, a Bluetooth module, and the like.
  • the processor 580 included in the electronic device implements the content selection method provided by the foregoing embodiment when executing the computer program stored in the memory.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory.
  • Volatile memory can include random access memory (RAM), which acts as an external cache.
  • RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM dual data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM Link (Synchlink) DRAM
  • SLDRAM Memory Bus
  • Rambus Direct RAM
  • RDRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A content selection method, comprising: acquiring a first touch instruction and a first page displayed when the first touch instruction occurs, and identifying a first touch position according to the first touch instruction; acquiring a second touch instruction and a second page displayed when the second touch instruction occurs, and identifying a second touch position according to the second touch instruction; and switching all of the content between content corresponding to the first touch position in the first page and content corresponding to the second touch position in the second page to a selection state.

Description

内容选取方法、电子设备、存储介质及计算机程序产品Content selection method, electronic device, storage medium and computer program product 技术领域Technical field
本申请涉及移动通信技术领域,特别是涉及一种内容选取方法、电子设备、存储介质及计算机程序产品。The present application relates to the field of mobile communication technologies, and in particular, to a content selection method, an electronic device, a storage medium, and a computer program product.
背景技术Background technique
在智能手机中,经常会出现在某一地方(如从网页中)选取内容(例如文字内容)然后拷贝到其他地方(如短信回复输入框)的场景,其中一个关键的步骤是选取待拷贝的内容。In a smartphone, there are often scenes where content (such as text content) is selected in a certain place (such as a web page) and then copied to another place (such as a text message reply input box). One of the key steps is to select the copy to be copied. content.
传统选取待拷贝内容的方式通常通过拖动游标来进行选取,然而,该传统方式在选取内容较多的情况下将会耗费较长时间。The traditional way of selecting the content to be copied is usually selected by dragging the cursor. However, the conventional method takes a long time in the case of selecting more content.
发明内容Summary of the invention
本申请实施例提供一种内容选取方法、电子设备、存储介质及计算机程序产品,可以提高内容较多的情况下选取的速度。The embodiment of the present application provides a content selection method, an electronic device, a storage medium, and a computer program product, which can improve the speed selected in the case of more content.
一种内容选取方法,包括:A content selection method, including:
获取第一触摸指令及所述第一触摸指令发生时显示的第一页面,并根据所述第一触摸指令识别第一触摸位置;Acquiring a first touch instruction and a first page displayed when the first touch instruction occurs, and identifying a first touch position according to the first touch instruction;
获取第二触摸指令及所述第二触摸指令发生时显示的第二页面,并根据所述第二触摸指令识别第二触摸位置;及Obtaining a second touch instruction and a second page displayed when the second touch instruction occurs, and identifying a second touch position according to the second touch instruction; and
将从所述第一页面中所述第一触摸位置对应内容至所述第二页面中所述第二触摸位置对应内容之间的全部内容切换为选中状态。And switching all the content between the first touch location corresponding content in the first page to the second touch location corresponding content in the second page to a selected state.
一种电子设备,包括存储器和处理器,所述存储器中储存有计算机程序,所述程序被所述处理器执行时,使得所述处理器执行以下步骤:An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the program is executed by the processor, the processor performs the following steps:
获取第一触摸指令及所述第一触摸指令发生时显示的第一页面,并根据 所述第一触摸指令识别第一触摸位置;Obtaining a first touch instruction and a first page displayed when the first touch instruction occurs, and according to The first touch instruction identifies a first touch location;
获取第二触摸指令及所述第二触摸指令发生时显示的第二页面,并根据所述第二触摸指令识别第二触摸位置;及Obtaining a second touch instruction and a second page displayed when the second touch instruction occurs, and identifying a second touch position according to the second touch instruction; and
将从所述第一页面中所述第一触摸位置对应内容至所述第二页面中所述第二触摸位置对应内容之间的全部内容切换为选中状态。And switching all the content between the first touch location corresponding content in the first page to the second touch location corresponding content in the second page to a selected state.
一个或多个包含计算机可执行指令的非易失性存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行以下步骤:One or more non-volatile storage media containing computer-executable instructions that, when executed by one or more processors, cause the processor to perform the following steps:
获取第一触摸指令及所述第一触摸指令发生时显示的第一页面,并根据所述第一触摸指令识别第一触摸位置;Acquiring a first touch instruction and a first page displayed when the first touch instruction occurs, and identifying a first touch position according to the first touch instruction;
获取第二触摸指令及所述第二触摸指令发生时显示的第二页面,并根据所述第二触摸指令识别第二触摸位置;及Obtaining a second touch instruction and a second page displayed when the second touch instruction occurs, and identifying a second touch position according to the second touch instruction; and
将从所述第一页面中所述第一触摸位置对应内容至所述第二页面中所述第二触摸位置对应内容之间的全部内容切换为选中状态。And switching all the content between the first touch location corresponding content in the first page to the second touch location corresponding content in the second page to a selected state.
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以下步骤:A computer program product comprising instructions that, when run on a computer, cause the computer to perform the following steps:
获取第一触摸指令及所述第一触摸指令发生时显示的第一页面,并根据所述第一触摸指令识别第一触摸位置;Acquiring a first touch instruction and a first page displayed when the first touch instruction occurs, and identifying a first touch position according to the first touch instruction;
获取第二触摸指令及所述第二触摸指令发生时显示的第二页面,并根据所述第二触摸指令识别第二触摸位置;及Obtaining a second touch instruction and a second page displayed when the second touch instruction occurs, and identifying a second touch position according to the second touch instruction; and
将从所述第一页面中所述第一触摸位置对应内容至所述第二页面中所述第二触摸位置对应内容之间的全部内容切换为选中状态。And switching all the content between the first touch location corresponding content in the first page to the second touch location corresponding content in the second page to a selected state.
上述内容选取方法、电子设备、存储介质及计算机程序产品中,在第一页面接收到第一次触摸操作生成的第一触摸指令,之后在第二页面接收到第二次触摸操作生成的第二触摸指令后,不管第一页面与第二页面之间需要经过多少页面,都可以根据直接根据这两次触摸操作直接选取内容(即将从第一页面中第一触摸位置对应内容至第二页面中第二触摸位置对应内容之间的全部内容切换为选中状态),从而提高了内容较多的情况下选取的速度。 In the content selection method, the electronic device, the storage medium, and the computer program product, the first touch command generated by the first touch operation is received on the first page, and then the second touch operation is generated on the second page. After the command is touched, no matter how many pages need to pass between the first page and the second page, the content can be directly selected according to the two touch operations directly (ie, the content corresponding to the first touch position in the first page is to be in the second page) The second touch position switches the entire content between the content to the selected state, thereby increasing the speed selected in the case of a large amount of content.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他实施例的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and those skilled in the art can obtain drawings of other embodiments according to the drawings without any creative work.
图1为一实施方式提供的内容选取方法的流程图;1 is a flowchart of a content selection method provided by an embodiment;
图2为用于执行图1所示实施方式的内容选取方法的电子设备的一个实施例的内部结构示意图;2 is a schematic diagram showing the internal structure of an embodiment of an electronic device for performing the content selection method of the embodiment shown in FIG. 1;
图3为图1所示实施方式的内容选取方法的其中一个实施例的流程图;3 is a flow chart of one embodiment of a content selection method of the embodiment shown in FIG. 1;
图4为图1所示实施方式的内容选取方法的另一个实施例的流程图;4 is a flow chart of another embodiment of a content selection method of the embodiment shown in FIG. 1;
图5为一实施例提供电子设备相关的手机的部分结构的框图。FIG. 5 is a block diagram showing a part of a structure of an electronic device related to an electronic device according to an embodiment.
具体实施方式Detailed ways
为了便于理解本申请,下面将参照相关附图对本申请进行更全面的描述。附图中给出了本申请的较佳实施例。但是,本申请可以以许多不同的形式来实现,并不限于本文所描述的实施例。相反地,提供这些实施例的目的是使对本申请的公开内容的理解更加透彻全面。In order to facilitate the understanding of the present application, the present application will be described more fully hereinafter with reference to the accompanying drawings. Preferred embodiments of the present application are shown in the drawings. However, the application can be embodied in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that the understanding of the disclosure of the present application will be more thorough.
除非另有定义,本文所使用的所有的技术和科学术语与属于发明的技术领域的技术人员通常理解的含义相同。本文中在发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在限制本申请。本文所使用的术语“和/或”包括一个或多个相关的所列项目的任意的和所有的组合。Unless otherwise defined, all technical and scientific terms used herein have the same meaning meaning meaning The terminology used in the description of the invention herein is for the purpose of describing the particular embodiments The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。 It will be understood that the terms "first", "second" and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present application. Both the first client and the second client are clients, but they are not the same client.
一实施方式提供了一种内容选取方法,可以由具有数据处理能力的电子设备执行,图2示出了该电子设备的其中一个实施例的内部结构示意图。如图2所示,该电子设备包括通过系统总线连接的处理器、存储器。进一步地,也可以包括网络接口。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器用于存储数据、程序等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的内容选取方法。存储器可包括磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random-Access-Memory,RAM)等。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的内容选取方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。网络接口可以是以太网卡或无线网卡等,用于与外部的电子设备进行通信。该电子设备可以是手机、平板电脑或者个人数字助理或穿戴式设备等。本领域技术人员可以理解,图2示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的电子设备的限定,具体的电子可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。An embodiment provides a content selection method, which can be performed by an electronic device having data processing capability. FIG. 2 shows an internal structure diagram of one embodiment of the electronic device. As shown in FIG. 2, the electronic device includes a processor and a memory connected through a system bus. Further, a network interface may also be included. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory is used to store data, programs, etc., and the memory stores at least one computer program, which can be executed by the processor to implement the content selection method provided in the embodiments of the present application. The memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random storage memory (Random-Access-Memory, RAM). For example, in one embodiment, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor for implementing the content selection methods provided by the various embodiments below. The internal memory provides a cached operating environment for operating system computer programs in a non-volatile storage medium. The network interface can be an Ethernet card or a wireless network card, etc., for communicating with external electronic devices. The electronic device can be a cell phone, a tablet or a personal digital assistant or a wearable device. It will be understood by those skilled in the art that the structure shown in FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic may include More or fewer components are shown in the figures, or some components are combined, or have different component arrangements.
如图1所示,本实施方式提供的文本选取方法包括以下内容。As shown in FIG. 1, the text selection method provided by this embodiment includes the following content.
步骤100,获取第一触摸指令及第一触摸指令发生时显示的第一页面,并根据第一触摸指令识别触控面板上的第一触摸位置。Step 100: Acquire a first touch instruction and a first page displayed when the first touch instruction occurs, and identify a first touch position on the touch panel according to the first touch instruction.
其中,第一触摸指令是用户在电子设备的触控面板上进行了第一次触摸操作后由电子设备生成的指令。例如:如果触控面板为电容式触控面板,则第一触摸指令的类型为电流值。具体地,第一触摸指令可以为触摸时间大于设定阈值的第一次触摸操作产生的指令。换言之,当用户长按触控面板后,才认为执行了第一次触摸操作,从而可以提高选取的精确性,以避免误操作的发生。 The first touch command is an instruction generated by the electronic device after the user performs the first touch operation on the touch panel of the electronic device. For example, if the touch panel is a capacitive touch panel, the type of the first touch command is a current value. Specifically, the first touch instruction may be an instruction generated by a first touch operation in which the touch time is greater than a set threshold. In other words, when the user presses the touch panel for a long time, it is considered that the first touch operation is performed, so that the accuracy of the selection can be improved to avoid the occurrence of misoperation.
第一页面是指用户进行第一次触摸操作时电子设备当前显示的页面。其中,页面例如为网站的内容页面。因此,当用户期望从当前页面开始选取内容,则可以在待拷贝内容的起始部分进行第一次触摸操作。第一触摸位置例如为触点坐标。The first page refers to the page currently displayed by the electronic device when the user performs the first touch operation. The page is, for example, a content page of the website. Therefore, when the user desires to select content from the current page, the first touch operation can be performed at the beginning of the content to be copied. The first touch location is, for example, contact coordinates.
此外,本实施方式中将第一触摸位置与第一页面结合起来确定选取内容的起始部分,因此,如果第一触摸位置、第一页面这两者中有一者发生变化,则选取内容的起始部分将会发生变化。In addition, in this embodiment, the first touch location is combined with the first page to determine the initial portion of the selected content. Therefore, if one of the first touch location and the first page changes, the content is selected. The beginning will change.
步骤400,获取第二触摸指令及第二触摸指令发生时显示的第二页面,并根据第二触摸指令识别第二触摸位置。Step 400: Acquire a second page displayed when the second touch instruction and the second touch instruction occur, and identify the second touch position according to the second touch instruction.
其中,第二触摸指令是用户在电子设备的触控面板上进行了第二次触摸操作后由电子设备生成的指令。例如:如果触控面板为电容式触控面板,则第二触摸指令的类型为电流值。具体地,第二触摸指令可以为触摸时间大于设定阈值的第二次触摸操作对应的指令。换言之,当用户第二次长按触控面板后,才认为执行了第二次触摸操作,从而可以提高选取的精确性,以避免误操作的发生。The second touch command is an instruction generated by the electronic device after the user performs the second touch operation on the touch panel of the electronic device. For example, if the touch panel is a capacitive touch panel, the type of the second touch command is a current value. Specifically, the second touch instruction may be an instruction corresponding to the second touch operation in which the touch time is greater than the set threshold. In other words, when the user presses the touch panel for the second time, it is considered that the second touch operation is performed, so that the accuracy of the selection can be improved to avoid the occurrence of misoperation.
第二页面是指用户进行第二次触摸操作时电子设备当前显示的页面。其中,页面例如为网站的内容页。第一页面与第二页面可以是同一页面,也可以是不同的页面。当第一页面与第二页面是不同的页面时,用户在第一页面进行第一次触摸操作后,可根据用户的第一次触摸操作确定选取内容的开始部分。之后,用户在电子设备上进行了翻页操作,并直至到达第二页面,再在第二页面进行第二次触摸操作,即可根据用户的第二次触摸操作确定选取内容的结束部分。例如:假设页面共有1000页,期望选取第10页到第100页的全部内容,则先在第10页的开始位置长按,之后滑动到100页,然后在100页末尾长按,最终即可选取期望的内容。其中,由第一页面到第二页面,可以通过各种方式进行翻页,例如滑动页面右侧的滚动条。The second page refers to the page currently displayed by the electronic device when the user performs the second touch operation. The page is, for example, a content page of the website. The first page and the second page may be the same page or different pages. When the first page and the second page are different pages, after the first touch operation is performed on the first page, the user may determine the beginning portion of the selected content according to the first touch operation of the user. After that, the user performs a page turning operation on the electronic device, and until the second page is reached, and then the second touch operation is performed on the second page, and the end portion of the selected content is determined according to the user's second touch operation. For example: suppose the page has a total of 1000 pages. If you want to select all the contents from the 10th to the 100th, first press and hold at the beginning of the 10th page, then slide to 100 pages, then press and hold at the end of 100 pages. Select the desired content. Among them, from the first page to the second page, the page can be turned in various ways, such as scrolling the scroll bar on the right side of the page.
此外,本实施方式中将第二触摸位置与第二页面结合起来确定选取内容的结束部分,因此,如果第二触摸位置、第二页面这两者中有一者发生变化, 则选取内容的结束部分将会发生变化。In addition, in this embodiment, the second touch position is combined with the second page to determine the end portion of the selected content. Therefore, if one of the second touch position and the second page changes, Then the end of the selected content will change.
具体地,在如何区分第一触摸指令和第二触摸指令方面,可以通过设置一个变量(例如Flag),并且设定Flag的初始值为false。如果检测到长按触摸操作后,判断Flag的值为false时,则认为接收到第一触摸指令,并且,在判断接收到第一触摸指令后,将Flag的值更改为true。之后,如果再次检测到长按触摸操作后,且判断Flag的值为true时,则认为接收到了第二触摸指令,之后再将Flag的值设为false。Specifically, in terms of how to distinguish the first touch instruction and the second touch instruction, it is possible to set a variable (for example, Flag) and set the initial value of Flag to false. If it is determined that the value of Flag is false after a long-press touch operation, it is considered that the first touch instruction is received, and after determining that the first touch command is received, the value of Flag is changed to true. Thereafter, if the long-press touch operation is detected again, and it is judged that the value of Flag is true, it is considered that the second touch command is received, and then the value of Flag is set to false.
步骤700,将从第一页面中第一触摸位置对应内容至第二页面中第二触摸位置对应内容之间的全部内容切换为选中状态。Step 700: Switch all content between the first touch location corresponding content in the first page to the second touch location corresponding content in the second page to a selected state.
其中,从第一页面中第一触摸位置对应内容至第二页面中第二触摸位置对应内容之间的全部内容,包括第一页面中从第一触摸位置开始到第一页面结尾的全部内容、介于第一页面与第二页面之间所有页面的内容、及第二页面中从开始到第二触摸位置之间包括的所有内容。换言之,在用户需要选取较多内容时,用户只需要执行两次触摸操作,即可选取所有的内容,之后即可对选取内容进行一系列的操作,例如拷贝、剪切。Wherein, from the first touch location corresponding content in the first page to the entire content between the second touch location corresponding content in the second page, including all content in the first page from the first touch location to the end of the first page, The content of all the pages between the first page and the second page, and all the content included between the first page and the second touch position in the second page. In other words, when the user needs to select more content, the user only needs to perform two touch operations to select all the content, and then perform a series of operations on the selected content, such as copying and cutting.
对于传统利用滑动游标选取内容的方式而言,若待选取的内容太多,如长达上百页内容,则需要不停地拖动游标且页面滑动的速度非常缓慢,从而耗费较长的时间。为了克服上述问题,本实施方式提供的上述内容选取方法中,不管第一页面与第二页面之间需要经过多少页面,都可以直接根据两次触摸操作选取内容,从而提高了选取内容较多情况下选取的速度。For the traditional way of selecting content by using the sliding cursor, if there are too many contents to be selected, such as hundreds of pages of content, the cursor needs to be dragged continuously and the page slides very slowly, which takes a long time. . In order to overcome the above problem, in the above content selection method provided by the embodiment, no matter how many pages need to pass between the first page and the second page, the content may be directly selected according to two touch operations, thereby improving the selection of the content. The speed selected below.
在其中一个实施例中,请参考图3,在步骤100之后还包括以下步骤:In one embodiment, please refer to FIG. 3, and after step 100, the following steps are further included:
步骤310,在第一触摸位置显示第一触摸标记。Step 310: Display a first touch mark at the first touch position.
其中,显示第一触摸标记可以便于查看开始选取的位置是否准确,并且便于知晓第一次触摸操作是否有效执行。具体地,第一触摸标记例如为游标。进一步地,第一触摸标记显示的位置可以环绕在第一触摸位置覆盖的位于最前端的文字(以用户的视角来看,最前端的文字是位于最靠左、最靠上的文字)的周围。 Wherein, displaying the first touch mark can facilitate checking whether the position to start the selection is accurate, and it is convenient to know whether the first touch operation is effectively performed. Specifically, the first touch mark is, for example, a cursor. Further, the position displayed by the first touch mark may surround the frontmost text covered by the first touch position (the front end text is located at the leftmost and topmost text from the perspective of the user) .
在其中一个实施例中,请继续参考图3,在步骤700之前还包括以下步骤:In one embodiment, please continue to refer to FIG. 3, and before step 700, the following steps are further included:
步骤210,将已经处于选中状态的内容切换至未选中状态。Step 210: Switch the content that has been selected to the unselected state.
其中,已经处于选中状态的内容是指根据之前的触摸操作(即执行本实施方式提供的内容选取方法之前进行的触摸操作)而选中的文本,将之前选中的内容切换至未选中状态,以便于用户重新选择新的内容。换言之,每次需要重新选取内容时,则将之前已经选取的内容切换至未选中状态。The content that is already in the selected state refers to the text selected according to the previous touch operation (ie, the touch operation performed before the content selection method provided by the embodiment is performed), and the previously selected content is switched to the unselected state, so as to facilitate The user reselects the new content. In other words, each time the content needs to be re-selected, the previously selected content is switched to the unselected state.
此外,可以在执行上述步骤310之前执行步骤210,以提高第一触摸标记的可识别性。可以理解的是,步骤210的执行顺序不限于图3所示的一种情况,例如还可以同时执行步骤210及步骤310。Further, step 210 may be performed prior to performing step 310 above to improve the identifiability of the first touch mark. It can be understood that the execution order of step 210 is not limited to one case shown in FIG. 3, for example, step 210 and step 310 can also be performed simultaneously.
在其中一个实施例中,基于包括上述步骤310的前提下,在步骤700之前还包括以下步骤,请继续参考图3。In one of the embodiments, based on the premise including the above step 310, the following steps are further included before the step 700, please continue to refer to FIG. 3.
步骤320,判断接收到用于改变第一触摸标记所处位置的第一调节操作时,获取第一调节操作结束后第一触摸标记更新后的位置。Step 320: When it is determined that the first adjustment operation for changing the position of the first touch mark is received, the position after the first touch mark is updated after the end of the first adjustment operation is acquired.
其中,第一调节操作被执行,则第一触摸标记所处的位置会相应改变。因此,如果用户根据第一触摸标记认为没有准确指向待选取的内容的起始部分,则用户可以进行第一调节操作,以对待选取的内容的起始部分所处的位置进行微调。当第一调节操作结束后,第一触摸标记更新后的位置则对应用户最终期望待选取内容的起始部分。Wherein, the first adjustment operation is performed, and the position where the first touch mark is located changes accordingly. Therefore, if the user believes that the first touch mark does not accurately point to the beginning portion of the content to be selected, the user can perform a first adjustment operation to fine tune the position at which the start portion of the selected content is located. When the first adjustment operation ends, the updated position of the first touch mark corresponds to the initial portion of the content that the user finally desires to select.
具体地,第一调节操作为用户点击显示的与第一触摸标记相应的第一预设标志。第一预设标志例如可以是显示屏某区域显示的上移箭头、下移箭头、左移箭头或右移箭头。其中,上移箭头代表沿显示屏的长边方向(即垂直方向)向上移动第一触摸标记。下移箭头代表沿着显示屏的长边方向向下移动第一触摸标记。左移箭头代表沿着显示屏的短边方向(即水平方向)向左移动第一触摸标记。右移箭头代表沿着显示屏的短边方向向右移动第一触摸标记。Specifically, the first adjusting operation is that the user clicks on the displayed first preset flag corresponding to the first touch mark. The first preset flag may be, for example, an up arrow, a down arrow, a left arrow, or a right arrow displayed in an area of the display. Wherein, the up arrow indicates that the first touch mark is moved upward along the long side direction (ie, the vertical direction) of the display screen. The downward shift arrow represents the downward movement of the first touch mark along the long side direction of the display screen. The left shift arrow represents moving the first touch mark to the left along the short side direction of the display screen (ie, the horizontal direction). The right shift arrow represents moving the first touch mark to the right along the short side direction of the display screen.
可以理解的是,第一调节操作的类型不限于上述情况,例如还可以是用 户在显示屏上用手指沿着设定方向(例如水平方向或垂直方向)拖动第一触摸标记。It can be understood that the type of the first adjustment operation is not limited to the above case, and for example, it may also be used. The user drags the first touch mark along the set direction (for example, horizontal direction or vertical direction) with the finger on the display screen.
此外,基于上述步骤320,步骤700为:Further, based on the above step 320, step 700 is:
步骤710,将从第一页面中第一触摸标记更新后的位置对应内容至第二页面中第二触摸位置对应内容之间的全部内容切换为选中状态。Step 710: Switch all the content between the content corresponding to the first touch mark updated in the first page to the content corresponding to the second touch position in the second page to a selected state.
因此,如果第一次触摸操作完成后,并检测到后续发生了用于调整第一触摸标记位置的滑动事件(即上述第一调节操作)后,则需要根据调整后的位置重新确定待选取内容的起始部分。Therefore, if the sliding event for adjusting the position of the first touch mark (ie, the first adjusting operation) occurs after the first touch operation is completed, it is necessary to re-determine the content to be selected according to the adjusted position. The beginning part.
需要说明的是,步骤320的执行顺序不限于图3所示的一种情况,只要使得步骤320在步骤310与步骤710之间执行即可。It should be noted that the execution order of step 320 is not limited to one case shown in FIG. 3, as long as step 320 is performed between step 310 and step 710.
在其中一个实施例中,在步骤400之后还包括以下步骤,请参考图4。In one embodiment, the following steps are further included after step 400, please refer to FIG. 4.
步骤500,在第二触摸位置显示第二触摸标记。 Step 500, displaying a second touch mark at the second touch position.
其中,显示第二触摸标记可以便于查看选取结束的位置是否准确,并且便于知晓第二次触摸操作是否有效执行。具体地,第二触摸标记例如为游标。进一步地,第二触摸标记显示的位置可以环绕在第二触摸位置覆盖的位于最前端的文字(以用户的视角来看,最前端的文字是位于最靠左、最靠上的文字)的周围。可以理解的是,第二触摸标记与第一触摸标记还可以为不同的类型,以便于区别待选取内容的起始部分和结束部分。Wherein, displaying the second touch mark can facilitate checking whether the position at which the selection ends is accurate, and it is convenient to know whether the second touch operation is effectively performed. Specifically, the second touch mark is, for example, a cursor. Further, the position displayed by the second touch mark may surround the frontmost text covered by the second touch position (the front end text is located at the leftmost and topmost text from the perspective of the user) . It can be understood that the second touch mark and the first touch mark can also be of different types in order to distinguish the start part and the end part of the content to be selected.
在其中一个实施例中,基于上述步骤500和步骤310,在步骤310之前还包括以下步骤,请继续参考图4。In one embodiment, based on the above steps 500 and 310, the following steps are further included before step 310, please continue to refer to FIG. 4.
步骤220,将所有显示的第一触摸标记及第二触摸标记都隐藏。 Step 220, hiding all displayed first touch marks and second touch marks.
所有显示的第一触摸标记和第二触摸标记是指执行本实施例提供的内容选取方法之前在显示屏上显示的第一触摸标记和第二触摸标记。换言之,每次将要选取新的内容前,都将之前选取内容过程中显示的第一触摸标记和第二触摸标记隐藏,从而便于当前准确地选取内容。All of the displayed first touch mark and second touch mark refer to the first touch mark and the second touch mark displayed on the display screen before the content selection method provided by the embodiment is performed. In other words, before the new content is to be selected, the first touch mark and the second touch mark displayed in the previous selection process are hidden, thereby facilitating the current accurate selection of the content.
在其中一个实施例中,基于包括上述步骤500的前提下,在步骤700之前还包括以下步骤,请继续参考图4。 In one embodiment, based on the premise of including the above step 500, the following steps are further included before step 700, please continue to refer to FIG. 4.
步骤600,判断接收到用于改变第二触摸标记所处位置的第二调节操作时,获取第二调节操作结束后第二触摸标记更新后的位置。Step 600: When it is determined that the second adjustment operation for changing the position of the second touch mark is received, the position after the second touch mark is updated after the second adjustment operation ends is acquired.
其中,第二调节操作被执行,则第二触摸标记所处的位置会相应改变。因此,如果用户根据第二触摸标记认为没有准确指向待选取内容的结束部分时,用户则可以进行第二调节操作,以对待选取内容的结束部分所处的位置进行微调。当第二调节操作结束后,第二触摸标记更新后的位置则为用户最终期望的待选取内容的结束部分。Wherein, the second adjustment operation is performed, and the position where the second touch mark is located is changed accordingly. Therefore, if the user believes that the end portion of the content to be selected is not accurately pointed according to the second touch mark, the user can perform a second adjustment operation to fine tune the position at which the end portion of the selected content is located. After the second adjustment operation ends, the updated position of the second touch mark is the end portion of the content to be selected that the user finally desires.
具体地,第二调节操作为用户点击显示的与第二触摸标记相应的第二预设标志。第二预设标志例如可以为显示屏某区域显示的上移箭头、下移箭头、左移箭头或右移箭头。其中,上移箭头代表沿显示屏的长边方向(即垂直方向)向上移动第二触摸标记。下移箭头代表沿显示屏的长边方向向下移动第二触摸标记。左移箭头代表沿显示屏的短边方向(即水平方向)向左移动第二触摸标记。右移箭头代表沿显示屏的短边方向向右移动第二触摸标记。Specifically, the second adjusting operation is that the user clicks on the displayed second preset flag corresponding to the second touch mark. The second preset flag may be, for example, an up arrow, a down arrow, a left arrow, or a right arrow displayed in an area of the display screen. Wherein, the up arrow indicates that the second touch mark is moved upward along the long side direction (ie, the vertical direction) of the display screen. The down arrow indicates that the second touch mark is moved down along the long side of the display screen. The left shift arrow represents moving the second touch mark to the left in the short side direction (ie, the horizontal direction) of the display screen. The right shift arrow represents moving the second touch mark to the right in the short side direction of the display screen.
可以理解的是,第二调节操作的类型不限于上述情况,例如还可以为用户在显示屏上用手指沿设定方向(例如水平方向或垂直方向)拖动第二触摸标记。It can be understood that the type of the second adjustment operation is not limited to the above case, and for example, the user may drag the second touch mark in a set direction (for example, a horizontal direction or a vertical direction) with a finger on the display screen.
此外,基于上述步骤600,步骤700为:Further, based on the above step 600, step 700 is:
步骤720,将从第一页面中第一触摸位置对应内容至第二页面中第二触摸标记更新后的位置对应内容之间的全部内容切换为选中状态。Step 720: Switch all content between the content corresponding to the first touch location in the first page to the content corresponding to the location updated by the second touch mark in the second page to a selected state.
因此,如果第二次触摸操作完成后,并检测到后续发生了用于调整第二触摸标记位置的滑动事件(即上述第二调节操作)后,则需要根据调整后的位置确定待选取内容的结束部分。Therefore, if the sliding event for adjusting the position of the second touch mark (ie, the second adjusting operation) occurs after the second touch operation is completed, it is necessary to determine the content to be selected according to the adjusted position. The end part.
需要说明的是,上述各实施例中相对于图1新增的步骤组合而成的内容选取方法不限于图3、图4所示的情况,图3与图4中包括的各步骤还可以有其他的组合方式。例如:上述步骤320和步骤600可以同时存在,此时,步骤320执行于步骤310之后步骤700之前,步骤600执行于步骤500之后步骤700之前,并且,步骤700将具体为:将从第一页面中第一触摸标记更 新后的位置对应内容至第二页面中第二触摸标记更新后的位置对应内容之间的全部内容切换为选中状态。换言之,用户分别对待选取内容的起始部分、结束部分的位置进行微调。又或者,图3中的步骤210也可以被包括在图4所示的实施例中,并且步骤210可以执行于步骤100之后步骤310之前。It should be noted that the content selection method combined with the steps added in FIG. 1 in the above embodiments is not limited to the case shown in FIG. 3 and FIG. 4, and the steps included in FIG. 3 and FIG. 4 may also have Other combinations. For example, the above steps 320 and 600 may exist at the same time. In this case, step 320 is performed before step 310 and before step 700, step 600 is performed before step 500 and after step 700, and step 700 will be specifically: from the first page. The first touch mark is more The new position corresponding content to the second page in the second page after the second touch mark updated position corresponding content is switched to the selected state. In other words, the user separately fine-tunes the position of the beginning portion and the ending portion of the selected content. Still alternatively, step 210 in FIG. 3 may also be included in the embodiment shown in FIG. 4, and step 210 may be performed before step 100 after step 100.
需要说明的是,图1、图3及图4为本申请实施例的方法的流程示意图。应该理解的是,虽然图1、图3及图4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,图1、图3及图4中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be noted that FIG. 1 , FIG. 3 and FIG. 4 are schematic flowcharts of a method according to an embodiment of the present application. It should be understood that although the steps in the flowcharts of FIGS. 1, 3, and 4 are sequentially displayed in accordance with the indication of the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and may be performed in other sequences. Moreover, at least some of the steps in FIG. 1, FIG. 3 and FIG. 4 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times. The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
本申请实施例还提供了一个或多个包含计算机可执行指令的非易失性存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行上述实施方式提供的内容选取方法。Embodiments of the present application also provide one or more non-volatile storage media including computer-executable instructions that, when executed by one or more processors, cause the processor to perform the above-described embodiments The content selection method provided.
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施方式提供的内容选取方法。The embodiment of the present application further provides a computer program product comprising instructions, which when executed on a computer, causes the computer to execute the content selection method provided by the foregoing embodiment.
本申请实施例还提供了一种电子设备。如图5所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以电子设备为手机为例:An embodiment of the present application also provides an electronic device. As shown in FIG. 5, for the convenience of description, only the parts related to the embodiments of the present application are shown. If the specific technical details are not disclosed, please refer to the method part of the embodiment of the present application. The electronic device can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an on-board computer, a wearable device, and the like, and the electronic device is used as a mobile phone. :
图5为与本申请实施例提供的电子设备相关的手机的部分结构的框图。参考图5,手机包括:射频(Radio Frequency,RF)电路510、存储器520、输入单元530、显示单元540、传感器550、音频电路560、无线保真(wireless fidelity,WiFi)模块570、处理器580、以及电源590等部 件。本领域技术人员可以理解,图5所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 is a block diagram showing a partial structure of a mobile phone related to an electronic device according to an embodiment of the present application. Referring to FIG. 5, the mobile phone includes: a radio frequency (RF) circuit 510, a memory 520, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a wireless fidelity (WiFi) module 570, and a processor 580. And power supply 590 and other departments Pieces. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 5 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
其中,RF电路510可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器580处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路510还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 510 can be used for receiving and transmitting information during the transmission and reception of information or during the call, and can receive the downlink information of the base station and then process it to the processor 580. The uplink data can also be sent to the base station. Generally, RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 510 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
存储器520可用于存储软件程序以及模块,处理器580通过运行存储在存储器520的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器520可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器520可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 520 can be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 520. The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as an application of a sound playing function, an application of an image playing function, etc.); The data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone. Moreover, memory 520 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元530可用于接收输入的数字或字符信息,以及产生与手机500的用户设置以及功能控制有关的键信号输入。具体地,输入单元530可包括触控面板531以及其他输入设备532。触控面板531,也可称为触控面板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板531上或在触控面板531附近的操 作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板531可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器580,并能接收处理器580发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板531。除了触控面板531,输入单元530还可以包括其他输入设备532。具体地,其他输入设备532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 530 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 500. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532. The touch panel 531, which may also be referred to as a touch panel, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 531 or on the touch panel. Exercise near 531 ()), and according to a preset program to drive the corresponding connection device. In one embodiment, the touch panel 531 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 580 is provided and can receive commands from the processor 580 and execute them. In addition, the touch panel 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 531, the input unit 530 may also include other input devices 532. Specifically, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.).
显示单元540可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元540可包括显示面板541。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板541。在一个实施例中,触控面板531可覆盖显示面板541,当触控面板531检测到在其上或附近的触摸操作后,传送给处理器580以确定触摸事件的类型,随后处理器580根据触摸事件的类型在显示面板541上提供相应的视觉输出。虽然在图5中,触控面板531与显示面板541是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板531与显示面板541集成而实现手机的输入和输出功能。The display unit 540 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 540 can include a display panel 541. In one embodiment, the display panel 541 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. In one embodiment, the touch panel 531 can cover the display panel 541. When the touch panel 531 detects a touch operation on or near it, the touch panel 531 transmits to the processor 580 to determine the type of the touch event, and then the processor 580 is The type of touch event provides a corresponding visual output on display panel 541. Although the touch panel 531 and the display panel 541 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 5, in some embodiments, the touch panel 531 and the display panel 541 may be integrated. Realize the input and output functions of the phone.
手机500还可包括至少一种传感器550,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板541的亮度,接近传感器可在手机移动到耳边时,关闭显示面板541和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感 器等。The handset 500 can also include at least one type of sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of the ambient light, and the proximity sensor may close the display panel 541 and/or when the mobile phone moves to the ear. Or backlight. The motion sensor may include an acceleration sensor, and the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors And so on.
音频电路560、扬声器551和传声器552可提供用户与手机之间的音频接口。音频电路560可将接收到的音频数据转换后的电信号,传输到扬声器551,由扬声器551转换为声音信号输出;另一方面,传声器552将收集的声音信号转换为电信号,由音频电路560接收后转换为音频数据,再将音频数据输出处理器580处理后,经RF电路510可以发送给另一手机,或者将音频数据输出至存储器520以便后续处理。 Audio circuitry 560, speaker 551, and microphone 552 can provide an audio interface between the user and the handset. The audio circuit 560 can transmit the converted electrical data of the received audio data to the speaker 551, and convert it into a sound signal output by the speaker 551. On the other hand, the microphone 552 converts the collected sound signal into an electrical signal, and the audio circuit 560 is used by the audio circuit 560. After receiving, it is converted into audio data, and then processed by the audio data output processor 580, transmitted to another mobile phone via the RF circuit 510, or outputted to the memory 520 for subsequent processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块570可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块570,但是可以理解的是,其并不属于手机500的必须构成,可以根据需要而省略。WiFi is a short-range wireless transmission technology, and the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 570, which provides users with wireless broadband Internet access. Although FIG. 5 shows the WiFi module 570, it can be understood that it does not belong to the essential configuration of the mobile phone 500 and can be omitted as needed.
处理器580是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器520内的软件程序和/或模块,以及调用存储在存储器520内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器580可包括一个或多个处理单元。在一个实施例中,处理器580可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器580中。The processor 580 is the control center of the handset, and connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 520, and invoking data stored in the memory 520, executing The phone's various functions and processing data, so that the overall monitoring of the phone. In one embodiment, processor 580 can include one or more processing units. In one embodiment, processor 580 can integrate an application processor and a modem processor, where the application processor primarily processes an operating system, user interface, and applications, etc.; the modem processor primarily processes wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 580.
手机500还包括给各个部件供电的电源590(比如电池),优选地,电源可以通过电源管理系统与处理器580逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset 500 also includes a power source 590 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 580 via a power management system to enable management of charging, discharging, and power management functions through the power management system.
在一个实施例中,手机500还可以包括摄像头、蓝牙模块等。In one embodiment, the handset 500 may also include a camera, a Bluetooth module, and the like.
在本申请实施例中,该电子设备所包括的处理器580执行存储在存储器上的计算机程序时实现上述实施方式提供的内容选取方法。In the embodiment of the present application, the processor 580 included in the electronic device implements the content selection method provided by the foregoing embodiment when executing the computer program stored in the memory.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器 (ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database or other medium used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM), which acts as an external cache. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization. Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。 The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (16)

  1. 一种内容选取方法,包括:A content selection method, including:
    获取第一触摸指令及所述第一触摸指令发生时显示的第一页面,并根据所述第一触摸指令识别第一触摸位置;Acquiring a first touch instruction and a first page displayed when the first touch instruction occurs, and identifying a first touch position according to the first touch instruction;
    获取第二触摸指令及所述第二触摸指令发生时显示的第二页面,并根据所述第二触摸指令识别第二触摸位置;及Obtaining a second touch instruction and a second page displayed when the second touch instruction occurs, and identifying a second touch position according to the second touch instruction; and
    将从所述第一页面中所述第一触摸位置对应内容至所述第二页面中所述第二触摸位置对应内容之间的全部内容切换为选中状态。And switching all the content between the first touch location corresponding content in the first page to the second touch location corresponding content in the second page to a selected state.
  2. 根据权利要求1所述的方法,其特征在于,在所述获取第一触摸指令及所述第一触摸指令发生时显示的第一页面,并根据所述第一触摸指令识别第一触摸位置的步骤之后还包括:The method according to claim 1, wherein the first page displayed when the first touch instruction and the first touch instruction are generated are generated, and the first touch position is identified according to the first touch instruction. After the step, it also includes:
    在所述第一触摸位置显示第一触摸标记。A first touch mark is displayed at the first touch location.
  3. 根据权利要求1所述的方法,其特征在于,在所述将从所述第一页面中所述第一触摸位置对应内容至所述第二页面中所述第二触摸位置对应内容之间的全部内容切换为选中状态的步骤之前还包括:The method according to claim 1, wherein said content between said first touch location corresponding content in said first page and said second touch location corresponding content in said second page Before the step of switching all the contents to the selected state, it also includes:
    将已经处于选中状态的内容切换至未选中状态。Switch the content that is already selected to the unselected state.
  4. 根据权利要求2所述的方法,其特征在于,所述第一触摸标记为游标。The method of claim 2 wherein said first touch is marked as a cursor.
  5. 根据权利要求2所述的方法,其特征在于,在所述将从所述第一页面中所述第一触摸位置对应内容至所述第二页面中所述第二触摸位置对应内容之间的全部内容切换为选中状态的步骤之前还包括:The method according to claim 2, wherein said content between said first touch location corresponding content in said first page and said second touch location corresponding content in said second page Before the step of switching all the contents to the selected state, it also includes:
    判断接收到用于改变所述第一触摸标记所处位置的第一调节操作时,获取所述第一调节操作结束后所述第一触摸标记更新后的位置;When it is determined that the first adjustment operation for changing the position of the first touch mark is received, acquiring the updated position of the first touch mark after the end of the first adjustment operation;
    并且,所述将从所述第一页面中所述第一触摸位置对应内容至所述第二页面中所述第二触摸位置对应内容之间的全部内容切换为选中状态的步骤为:And the step of switching all the content between the first touch location corresponding content in the first page and the second touch location corresponding content in the second page to a selected state is:
    将从所述第一页面中所述第一触摸标记更新后的位置对应内容至所述第二页面中所述第二触摸位置对应内容之间的全部内容切换为选中状态。 And switching all content between the content corresponding to the first touch mark in the first page to the content corresponding to the second touch position in the second page to a selected state.
  6. 根据权利要求5所述的方法,其特征在于,所述第一调节操作为用户点击显示的与所述第一触摸标记相应的第一预设标志。The method according to claim 5, wherein the first adjusting operation is that the user clicks on the displayed first preset flag corresponding to the first touch mark.
  7. 根据权利要求2所述的方法,其特征在于,在所述获取第二触摸指令及所述第二触摸指令发生时显示的第二页面,并根据所述第二触摸指令识别第二触摸位置的步骤之后,还包括:The method according to claim 2, wherein the second page displayed when the acquiring the second touch instruction and the second touch instruction occurs, and identifying the second touch position according to the second touch instruction After the step, it also includes:
    在所述第二触摸位置显示第二触摸标记。A second touch mark is displayed at the second touch position.
  8. 根据权利要求7所述的方法,其特征在于,所述在所述第一触摸位置显示第一触摸标记的步骤之前还包括:The method according to claim 7, wherein the step of displaying the first touch mark at the first touch position further comprises:
    将所有显示的所述第一触摸标记及所述第二触摸标记都隐藏。All of the displayed first touch marks and the second touch marks are hidden.
  9. 根据权利要求7所述的方法,其特征在于,所述第二触摸标记为游标。The method of claim 7 wherein said second touch is marked as a cursor.
  10. 根据权利要求7所述的方法,其特征在于,在所述将从所述第一页面中所述第一触摸位置对应内容至所述第二页面中所述第二触摸位置对应内容之间的全部内容切换为选中状态的步骤之前还包括:The method according to claim 7, wherein said content between said first touch location corresponding content in said first page and said second touch location corresponding content in said second page Before the step of switching all the contents to the selected state, it also includes:
    判断接收到用于改变所述第二触摸标记所处位置的第二调节操作时,获取所述第二调节操作结束后所述第二触摸标记更新后的位置;When it is determined that the second adjustment operation for changing the position of the second touch mark is received, acquiring the updated position of the second touch mark after the second adjustment operation ends;
    并且,所述将从所述第一页面中所述第一触摸位置对应内容至所述第二页面中所述第二触摸位置对应内容之间的全部内容切换为选中状态的步骤为:And the step of switching all the content between the first touch location corresponding content in the first page and the second touch location corresponding content in the second page to a selected state is:
    将从所述第一页面中第一触摸位置对应内容至所述第二页面中所述第二触摸标记更新后的位置对应内容之间的全部内容切换为选中状态。And switching all the content between the first touch location corresponding content in the first page to the second touch mark updated position corresponding content in the second page to a selected state.
  11. 根据权利要求10所述的方法,其特征在于,所述第二调节操作为用户点击显示的与所述第二触摸标记相应的第二预设标志。The method according to claim 10, wherein the second adjusting operation is a second preset flag corresponding to the second touch mark displayed by the user.
  12. 根据权利要求1所述的方法,其特征在于,所述第一触摸指令为触摸时间大于设定阈值的第一次触摸操作产生的指令。The method according to claim 1, wherein the first touch instruction is an instruction generated by a first touch operation in which a touch time is greater than a set threshold.
  13. 根据权利要求1所述的方法,其特征在于,所述第二触摸指令为触摸时间大于设定阈值的第二次触摸操作产生的指令。The method according to claim 1, wherein the second touch instruction is an instruction generated by a second touch operation in which a touch time is greater than a set threshold.
  14. 一种电子设备,包括存储器和处理器,所述存储器中储存有计算机 程序,所述程序被所述处理器执行时,使得所述处理器执行以下步骤:An electronic device includes a memory and a processor, wherein the memory stores a computer a program, when executed by the processor, causes the processor to perform the following steps:
    获取第一触摸指令及所述第一触摸指令发生时显示的第一页面,并根据所述第一触摸指令识别第一触摸位置;Acquiring a first touch instruction and a first page displayed when the first touch instruction occurs, and identifying a first touch position according to the first touch instruction;
    获取第二触摸指令及所述第二触摸指令发生时显示的第二页面,并根据所述第二触摸指令识别第二触摸位置;及Obtaining a second touch instruction and a second page displayed when the second touch instruction occurs, and identifying a second touch position according to the second touch instruction; and
    将从所述第一页面中所述第一触摸位置对应内容至所述第二页面中所述第二触摸位置对应内容之间的全部内容切换为选中状态。And switching all the content between the first touch location corresponding content in the first page to the second touch location corresponding content in the second page to a selected state.
  15. 一个或多个包含计算机可执行指令的非易失性存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行以下步骤:One or more non-volatile storage media containing computer-executable instructions that, when executed by one or more processors, cause the processor to perform the following steps:
    获取第一触摸指令及所述第一触摸指令发生时显示的第一页面,并根据所述第一触摸指令识别第一触摸位置;Acquiring a first touch instruction and a first page displayed when the first touch instruction occurs, and identifying a first touch position according to the first touch instruction;
    获取第二触摸指令及所述第二触摸指令发生时显示的第二页面,并根据所述第二触摸指令识别第二触摸位置;及Obtaining a second touch instruction and a second page displayed when the second touch instruction occurs, and identifying a second touch position according to the second touch instruction; and
    将从所述第一页面中所述第一触摸位置对应内容至所述第二页面中所述第二触摸位置对应内容之间的全部内容切换为选中状态。And switching all the content between the first touch location corresponding content in the first page to the second touch location corresponding content in the second page to a selected state.
  16. 一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以下步骤:A computer program product comprising instructions that, when run on a computer, cause the computer to perform the following steps:
    获取第一触摸指令及所述第一触摸指令发生时显示的第一页面,并根据所述第一触摸指令识别第一触摸位置;Acquiring a first touch instruction and a first page displayed when the first touch instruction occurs, and identifying a first touch position according to the first touch instruction;
    获取第二触摸指令及所述第二触摸指令发生时显示的第二页面,并根据所述第二触摸指令识别第二触摸位置;及Obtaining a second touch instruction and a second page displayed when the second touch instruction occurs, and identifying a second touch position according to the second touch instruction; and
    将从所述第一页面中所述第一触摸位置对应内容至所述第二页面中所述第二触摸位置对应内容之间的全部内容切换为选中状态。 And switching all the content between the first touch location corresponding content in the first page to the second touch location corresponding content in the second page to a selected state.
PCT/CN2017/103242 2017-09-25 2017-09-25 Content selection method, electronic device, storage medium and computer program product WO2019056388A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/103242 WO2019056388A1 (en) 2017-09-25 2017-09-25 Content selection method, electronic device, storage medium and computer program product
CN201780092225.6A CN110754073A (en) 2017-09-25 2017-09-25 Content selection method, electronic device, storage medium, and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/103242 WO2019056388A1 (en) 2017-09-25 2017-09-25 Content selection method, electronic device, storage medium and computer program product

Publications (1)

Publication Number Publication Date
WO2019056388A1 true WO2019056388A1 (en) 2019-03-28

Family

ID=65810076

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/103242 WO2019056388A1 (en) 2017-09-25 2017-09-25 Content selection method, electronic device, storage medium and computer program product

Country Status (2)

Country Link
CN (1) CN110754073A (en)
WO (1) WO2019056388A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026315A (en) * 2019-11-20 2020-04-17 维沃移动通信有限公司 Text selection method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423852A (en) * 2013-08-22 2015-03-18 腾讯科技(深圳)有限公司 Text duplication method and device
CN104731495A (en) * 2013-12-23 2015-06-24 珠海金山办公软件有限公司 Page content selecting method and system
US20160004403A1 (en) * 2014-07-02 2016-01-07 Samsung Electronics Co., Ltd. Apparatus and method for processing scroll input in electronic device
CN106201293A (en) * 2015-04-29 2016-12-07 中兴通讯股份有限公司 Text selection method and apparatus, text handling method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571908B (en) * 2013-10-28 2019-05-24 腾讯科技(深圳)有限公司 A kind of method and apparatus of Object Selection
CN106095243B (en) * 2016-06-15 2019-02-15 维沃移动通信有限公司 A kind of method and mobile terminal of duplication stickup

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423852A (en) * 2013-08-22 2015-03-18 腾讯科技(深圳)有限公司 Text duplication method and device
CN104731495A (en) * 2013-12-23 2015-06-24 珠海金山办公软件有限公司 Page content selecting method and system
US20160004403A1 (en) * 2014-07-02 2016-01-07 Samsung Electronics Co., Ltd. Apparatus and method for processing scroll input in electronic device
CN106201293A (en) * 2015-04-29 2016-12-07 中兴通讯股份有限公司 Text selection method and apparatus, text handling method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026315A (en) * 2019-11-20 2020-04-17 维沃移动通信有限公司 Text selection method and electronic equipment
CN111026315B (en) * 2019-11-20 2021-04-23 维沃移动通信有限公司 Text selection method and electronic equipment

Also Published As

Publication number Publication date
CN110754073A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
US20230104745A1 (en) Display Method and Apparatus
RU2616536C2 (en) Method, device and terminal device to display messages
US11237724B2 (en) Mobile terminal and method for split screen control thereof, and computer readable storage medium
US20200177726A1 (en) Method for switching applications in split screen mode, computer device and computer-readable storage medium
AU2020201096A1 (en) Quick screen splitting method, apparatus, and electronic device, display UI, and storage medium
CN106775637B (en) Page display method and device for application program
US10643021B2 (en) Method and device for processing web page content
WO2015014305A1 (en) Method and apparatus for presenting clipboard contents on a mobile terminal
RU2628205C2 (en) Method, device and terminal equipment for response to shift operation
WO2019019952A1 (en) Folder sending method, sending terminal and receiving terminal, and storage medium
WO2020259033A1 (en) File management method and terminal
US9921735B2 (en) Apparatuses and methods for inputting a uniform resource locator
US20240012605A1 (en) Data Processing Method and Mobile Device
WO2017161994A1 (en) Method and device for displaying page, and computer storage medium
KR20150051292A (en) Method for sharing contents and electronic device thereof
WO2017128986A1 (en) Selection method, device and storage medium for multimedia menu item
CN111610903A (en) Information display method and electronic equipment
CN107728920B (en) Copying method and mobile terminal
US20200310771A1 (en) Application Processing Method for Terminal Device, and Terminal Device
WO2018121609A1 (en) Display method for patterns and terminal
CN104238931B (en) Information input method and device and electronic equipment
WO2019047129A1 (en) Method for moving application icons, and terminal
WO2019084753A1 (en) Information processing method, storage medium, and mobile terminal
US20210255765A1 (en) Display Control Method and Terminal
JP2018522305A (en) Image deformation processing method, device, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17925750

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17925750

Country of ref document: EP

Kind code of ref document: A1