WO2018000623A1 - 一种网页的操控方法及装置 - Google Patents

一种网页的操控方法及装置 Download PDF

Info

Publication number
WO2018000623A1
WO2018000623A1 PCT/CN2016/100342 CN2016100342W WO2018000623A1 WO 2018000623 A1 WO2018000623 A1 WO 2018000623A1 CN 2016100342 W CN2016100342 W CN 2016100342W WO 2018000623 A1 WO2018000623 A1 WO 2018000623A1
Authority
WO
WIPO (PCT)
Prior art keywords
webpage
instruction
page element
control
information
Prior art date
Application number
PCT/CN2016/100342
Other languages
English (en)
French (fr)
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 乐视控股(北京)有限公司
Publication of WO2018000623A1 publication Critical patent/WO2018000623A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to a method and an apparatus for controlling a webpage.
  • a web browser can be installed on the smart TV, and the user can view the webpage by using a web browser on the smart TV. Users can use the remote control of the smart TV to control the web browser to implement operations such as moving pages, clicking on web links and entering text.
  • the remote control of the smart TV is provided with a physical button such as a direction key and a confirmation key, and the user needs to use the direction key and the confirmation key to implement the operation of the webpage.
  • a physical button such as a direction key and a confirmation key
  • the user needs to use the direction key and the confirmation key to implement the operation of the webpage.
  • the user needs to click the arrow key on the remote controller to move the page of the webpage; for example, when the user wants to open the webpage link A on the webpage, the user needs to use the arrow keys to move the cursor Go to the location of the web page link A and press the enter key to open the web page link A.
  • the user when the user wants to input text in the input box B of the webpage, the user needs to use the arrow keys to move the cursor to the position of the input box B, and then press the confirm key to position the cursor in the input box B. Then, the smart TV will display the virtual keyboard, and the user needs to select the desired character in the virtual keyboard by using the arrow keys and the confirmation key, thereby inputting the text in the input box B.
  • the direction key of the remote controller Since the screen of the smart TV is large, the direction key of the remote controller only moves the cursor one space. If the cursor is moved to the target position by using the direction key of the remote controller, the user not only needs to press the multiple direction keys, but also It will be a waste of time, so using the remote control to operate the smart TV's web page is very inefficient.
  • the embodiment of the invention provides a method and a device for controlling a webpage to improve the operation efficiency of the webpage of the electronic device.
  • a method for controlling a webpage including:
  • control information and the element identification of the page element are sent to the electronic device.
  • the method before receiving the control instruction for the page element of the webpage, the method further includes:
  • the step of converting the control instruction into the control information comprises:
  • control instruction is a movement instruction for moving a page element of the webpage to a preset position, determining position information corresponding to the preset position, converting the movement instruction into the manipulation information, and determining the position information and the manipulation information as the control information;
  • control command is an input command for inputting target information in a page element of a web page
  • the input command is converted into manipulation information, and the target information and the manipulation information are determined as control information.
  • a method for controlling a webpage includes:
  • a control instruction is executed on the page element corresponding to the element identifier.
  • the method before receiving the control information sent by the mobile terminal and the element identifier of the page element, the method further includes:
  • the step of executing the control instruction on the page element corresponding to the element identifier includes:
  • control instruction is a click instruction
  • the click instruction is executed on the page element corresponding to the element identifier
  • control instruction is a movement instruction moved to the preset position
  • page element corresponding to the element identifier is moved to the preset position according to the movement instruction
  • the target information is input in the page element corresponding to the element identifier according to the input command.
  • a device for controlling a webpage includes:
  • An obtaining module configured to acquire an element identifier of a page element when receiving a control instruction for a page element of the webpage
  • a conversion module for converting control instructions into control information
  • a sending module configured to send the control information and the element identifier of the page element to the electronic device.
  • the device further includes:
  • a receiving module configured to receive a web address sent by the electronic device when establishing a communication connection with the electronic device
  • the conversion module includes:
  • a first conversion submodule configured to convert the click command into control information when the control instruction is a click instruction on a page element of the webpage
  • a second conversion sub-module configured to determine position information corresponding to the preset position when the control instruction is a movement instruction for moving the page element of the webpage to the preset position, convert the movement instruction into the manipulation information, and the position information and the manipulation information Determined as control information;
  • the third conversion submodule is configured to convert the input instruction into the manipulation information, and determine the target information and the manipulation information as the control information when the control instruction is an input instruction for inputting the target information in the page element of the webpage.
  • a device for controlling a webpage includes:
  • a receiving module configured to receive control information sent by the mobile terminal and an element identifier of the page element, where the page element is a page element of the webpage;
  • a manipulation module is configured to execute a control instruction on a page element corresponding to the element identifier.
  • the device further includes:
  • An obtaining module configured to acquire a web address corresponding to the currently displayed webpage when establishing a communication connection with the mobile terminal
  • a sending module configured to send a web address to the mobile terminal.
  • control module includes:
  • a first manipulation submodule configured to execute a click instruction on a page element corresponding to the element identifier when the control instruction is a click instruction
  • a second manipulation sub-module configured to: when the control instruction is a movement instruction moved to the preset position, move the page element corresponding to the element identifier to the preset position according to the movement instruction; or
  • the third manipulation submodule is configured to input the target information in the page element corresponding to the element identifier according to the input instruction when the control instruction is an input instruction of the input target information.
  • an electronic device comprising: a processor and a memory, wherein the memory stores an operation instruction executable by the processor, and the processor reads an operation instruction in the memory for implementing the following method:
  • control information and the element identification of the page element are sent to the electronic device.
  • an electronic device comprising: a processor and a memory, wherein the memory stores an operation instruction executable by the processor, and the processor reads an operation instruction in the memory for implementing the following method:
  • a control instruction is executed on the page element corresponding to the element identifier.
  • a non-transitory computer-readable storage medium wherein the non-transitory computer-readable storage medium stores computer-executable instructions for Perform the manipulation method of any of the above web pages.
  • a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when When the program instructions are executed by the computer, the computer is caused to execute the manipulation method of any of the above web pages.
  • the embodiment of the present invention converts a control instruction of a page element of a webpage of a mobile terminal input by a user into a control information and an element identifier, so that the electronic device identifies the electronic device according to the control information and the element identifier.
  • the page element on the webpage executes the control instruction, thereby implementing the indirect control of the webpage of the electronic device by using the mobile terminal. Since the screen of the mobile terminal is small, the user's operation on the webpage on the mobile terminal is relatively easy, so the operation efficiency of the webpage of the electronic device is improved.
  • FIG. 1 is a flowchart of a method for controlling a webpage according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of still another method for controlling a webpage according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of still another method for controlling a webpage according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of still another method for controlling a webpage according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a webpage manipulation apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of still another webpage manipulation apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of still another webpage manipulation apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of still another webpage manipulation apparatus according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of an electronic device according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of still another electronic device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for controlling a webpage according to an embodiment of the present invention.
  • the manipulation method of the webpage shown in FIG. 1 can improve the operation efficiency of the webpage of the electronic device.
  • the method includes the following steps.
  • Step S11 Acquire an element identifier of a page element when receiving a control instruction for a page element of the webpage.
  • the method provided by the embodiment of the present invention can be applied to a mobile terminal that is convenient for operating a webpage, and the mobile terminal can be a device such as a smart phone or a tablet computer.
  • the electronic device mentioned in this embodiment is a device that is inconvenient to operate on a webpage, for example, the electronic device may be a device such as a smart TV.
  • the page elements of a web page refer to elements such as controls or pages of a web page.
  • a page element of a webpage may be a page of a webpage, a button on a webpage, or an input box on a webpage.
  • Control commands refer to manipulation commands for page elements of a web page.
  • the control instruction may be a click instruction on a page element of the webpage; for example, the control instruction may be a move instruction for moving a page element of the webpage to a preset position; for example, the control instruction may be input in a page element of the webpage Input instruction for target information.
  • the control instruction may be a click instruction on a page element of the webpage; for example, the control instruction may be a move instruction for moving a page element of the webpage to a preset position; for example, the control instruction may be input in a page element of the webpage Input instruction for target information.
  • it is not limited to the above-mentioned manipulation instructions, but can also be other types of manipulation instructions.
  • the element of the page element is identified as the unique identifier of the page element.
  • the element identifier refers to the identifier of the button, and the identifier of the button may be botton1; for example, when the page element is a page, then the element identifier refers to the identifier of the page, and the identifier of the page may For page1; for example, when the page element is an input box, then the element identifier refers to the identifier of the input box, and the identifier of the input box may be input1.
  • the user needs to establish a communication connection between the mobile terminal and the electronic device.
  • the mobile terminal can open the webpage according to the instruction input by the user, and send the webpage of the webpage to the electronic device through the established communication connection.
  • the electronic device receives the web address of the webpage sent by the mobile terminal through establishing a good communication connection, the electronic device also opens the webpage, thereby ensuring that the mobile terminal and the electronic device open the same webpage.
  • the electronic device may also send a web address to the mobile terminal, so that the mobile terminal and the electronic device simultaneously open the same webpage.
  • the user can input a control instruction to the page element of the webpage to the mobile terminal.
  • the mobile terminal receives the control instruction input by the user for the page element of the webpage, the mobile terminal acquires the element identifier of the page element.
  • Step S12 converting the control command into control information.
  • the control information is a character string for indicating a control command, and different control information is corresponding to different control commands.
  • the click command is converted into control information.
  • control command is a click command for a button of a webpage
  • control information corresponding to the click command is set to type: 2 in advance
  • the mobile terminal converts the click command into control information type: 2.
  • the second mode determines the position information corresponding to the preset position when the control instruction is a movement instruction for moving the page element of the webpage to the preset position, converts the movement instruction into the manipulation information, and determines the position information and the manipulation information as the control. information.
  • control instruction is a movement instruction for moving a page element of a webpage to a preset position
  • the manipulation information corresponding to the movement instruction is set to type:1 in advance
  • the mobile terminal converts the movement instruction into the manipulation information type. 1:1; Assuming that the mobile terminal determines that the location information corresponding to the preset location is postion: 1000, the mobile terminal determines the location information postion: 1000 and the manipulation information as type: 1 as control information.
  • control instruction when the control instruction is an input instruction for inputting target information in a page element of the webpage, the input instruction is converted into manipulation information, and the target information and the manipulation information are determined as the control information.
  • control instruction is an input instruction for inputting the target information "abc" in the page element of the webpage
  • manipulation information corresponding to the input instruction is set to type:3 in advance
  • the mobile terminal converts the input instruction into manipulation.
  • the information type: 3 and then the mobile terminal determines the manipulation information type: 3 and the target information "abc" as control information.
  • Step S13 Send the control information and the element identifier of the page element to the electronic device.
  • control information and the element identifier of the page element are further encapsulated into data according to a pre-agreed format, and then the encapsulated data is sent to the electronic device.
  • the mobile terminal can encapsulate type:2 and botton1 into data ⁇ msgType:4, msg: ⁇ type:2, body according to a pre-agreed format. : ⁇ elementId: "botton1" ⁇ .
  • msgType: 4 refers to the web page interaction protocol between the mobile terminal and the electronic device
  • msg: refers to the information content of the data
  • elementId: "botton1" refers to the element identifier.
  • the embodiment of the present invention converts a control instruction input by a user to a page element of a webpage of a mobile terminal into control information and an element identifier, so that the electronic device identifies the electronic device according to the control information and the element identifier.
  • the page element on the webpage executes the control instruction, thereby implementing the indirect control of the webpage of the electronic device by using the mobile terminal. Since the screen of the mobile terminal is small, the user's operation on the webpage on the mobile terminal is relatively easy, so the operation efficiency of the webpage of the electronic device is improved.
  • FIG. 2 is a flowchart of still another method for controlling a webpage according to an embodiment of the present invention.
  • the embodiment shown in Fig. 2 is an improved embodiment based on Fig. 1, so that the same contents as Fig. 1 can be seen in the embodiment shown in Fig. 1.
  • the embodiment shown in FIG. 2 may further include the following steps before step S11:
  • Step S21 Receive a web address sent by the electronic device when establishing a communication connection with the electronic device.
  • the mobile terminal needs to establish a communication connection with the electronic device before the mobile terminal indirectly controls the webpage of the electronic device. Establish communication with the electronic device on the mobile terminal When connected, the electronic device sends the mobile terminal a web address corresponding to the webpage currently being displayed by the electronic device, and the mobile terminal receives the web address sent by the electronic device.
  • Step S22 opening a webpage according to the website address.
  • step S11 may be performed to enable the mobile terminal to indirectly control the webpage of the electronic device.
  • the mobile terminal after the mobile terminal establishes a communication connection with the electronic device, the mobile terminal receives the web address sent by the electronic device, and opens the webpage according to the web address, thereby ensuring that the mobile terminal and the electronic device are opened.
  • the same web page so that the mobile terminal can indirectly control the webpage of the electronic device.
  • FIG. 3 is a flowchart of still another method for controlling a webpage according to an embodiment of the present invention.
  • 3 is a corresponding embodiment of FIG. 1, and the embodiment shown in FIG. 3 needs to cooperate with the embodiment shown in FIG. 1. If the embodiment shown in FIG. 3 has the same embodiment as that shown in FIG. For details, please refer to the embodiment shown in FIG. 1.
  • the manipulation method of the webpage shown in FIG. 3 can improve the operation efficiency of the webpage of the electronic device. The method includes the following steps.
  • Step S31 Receive control information sent by the mobile terminal and an element identifier of the page element, where the page element is a page element of the webpage.
  • the method provided by the embodiment of the present invention can be applied to an electronic device that is inconvenient to operate on a webpage, and the electronic device can be a device such as a smart television.
  • the mobile terminal mentioned in this embodiment is a device that is convenient for operating a webpage, and the mobile terminal may be a device such as a smart phone or a tablet computer.
  • the page elements of a web page refer to elements such as controls or pages of a web page.
  • a page element of a webpage may be a page of a webpage, a button on a webpage, or an input box on a webpage.
  • the element of the page element is identified as the unique identifier of the page element.
  • the element identifier refers to the identifier of the button, and the identifier of the button may be botton1; for example, when the page element is a page, then the element identifier refers to the identifier of the page, and the identifier of the page may For page1; for example, when the page element is an input box, then the element identifier refers to the identifier of the input box, and the identifier of the input box may be input1.
  • the control information is a character string for indicating a control command, and different control information is associated with different control commands.
  • Step S32 converting the control information into a control instruction.
  • control instruction refers to a manipulation instruction for a page element of a webpage.
  • control instruction may be a click instruction on a page element of the webpage; for example, the control instruction may be a move instruction for moving a page element of the webpage to a preset position; for example, the control instruction may be input in a page element of the webpage Input instruction for target information.
  • manipulation instructions it is not limited to the above-mentioned manipulation instructions, but can also be other types of manipulation instructions.
  • the electronic device After the electronic device receives the control information sent by the mobile terminal and the element identifier of the page element, the electronic device converts the control information into a control instruction.
  • control information type 2
  • the electronic device will convert type: 2 into a click command.
  • control information includes the position information postion: 1000 and the manipulation information is type: 1
  • the electronic device converts the position information postion: 1000 and the manipulation information into type: 1 into a movement instruction moved to the preset position.
  • the electronic device converts the manipulation information type: 3 and the target information "abc" into an input instruction of the input target information "abc".
  • Step S33 executing a control instruction on the page element corresponding to the element identifier.
  • the electronic device After the electronic device converts the control information into the control command, the electronic device executes a control instruction on the page element corresponding to the element identifier of the webpage, thereby implementing the indirect control of the webpage of the electronic device by using the mobile terminal.
  • control instruction is a click instruction
  • a click instruction is executed on the page element corresponding to the element identifier.
  • control instruction is a click instruction and the element identifier is botton1
  • the electronic device will execute a click instruction on the page element corresponding to the element identifier botton1 of the webpage.
  • the page element corresponding to the element identifier is moved to the preset position according to the movement instruction.
  • control command is a move instruction that moves to a preset position
  • element is identified as page1
  • the electronic device moves the page element corresponding to the element identifier page1 to the preset position according to the move instruction.
  • the control instruction is an input instruction for inputting the target information
  • the target information is input in the page element corresponding to the element identifier according to the input instruction.
  • control instruction is an input instruction for inputting target information
  • element identifier is input1
  • the electronic device inputs the target information according to the page instruction corresponding to the element identifier input1 according to the input instruction.
  • the embodiment of the present invention converts a control instruction input by a user to a page element of a webpage of a mobile terminal into control information and an element identifier, so that the electronic device identifies the electronic device according to the control information and the element identifier.
  • the page element on the webpage executes the control instruction, thereby implementing the indirect control of the webpage of the electronic device by using the mobile terminal. Since the screen of the mobile terminal is small, the user's operation on the webpage on the mobile terminal is relatively easy, so the operation efficiency of the webpage of the electronic device is improved.
  • FIG. 4 is a flowchart of still another method for controlling a webpage according to an embodiment of the present invention.
  • the embodiment shown in Fig. 4 is an improved embodiment based on Fig. 3, so the same contents as Fig. 3 can be seen in the embodiment shown in Fig. 3.
  • the embodiment shown in FIG. 4 may further include the following steps before step S31:
  • Step S41 Acquire a web address corresponding to the currently displayed webpage when establishing a communication connection with the mobile terminal.
  • the electronic device needs to establish a communication connection with the mobile terminal before the mobile terminal indirectly controls the webpage of the electronic device.
  • the electronic device first obtains the web address corresponding to the currently displayed web page.
  • the electronic device obtains the webpage corresponding to the currently displayed webpage www.123.com.
  • Step S42 Send the website address to the mobile terminal.
  • the electronic device After the electronic device obtains the web address corresponding to the currently displayed webpage, the electronic device sends the web address to the mobile terminal to ensure that the mobile terminal and the electronic device open the same webpage.
  • the electronic device after the mobile terminal establishes a communication connection with the electronic device, the electronic device first obtains the web address corresponding to the currently displayed web page, and then sends the website address to the mobile terminal, thereby ensuring the mobile terminal and the electronic device.
  • the device opens the same web page so that the mobile terminal can indirectly control the web page of the electronic device.
  • FIG. 5 is a schematic diagram of a webpage manipulation apparatus according to an embodiment of the present invention.
  • FIG. 5 is an embodiment of the device corresponding to FIG. 1.
  • the apparatus includes the following modules:
  • the obtaining module 11 is configured to obtain an element identifier of the page element when receiving a control instruction for a page element of the webpage.
  • the conversion module 12 is configured to convert the control instruction into control information.
  • the sending module 13 is configured to send the control information and the element identifier of the page element to the electronic device.
  • the conversion module 12 may further include the following submodules:
  • the first conversion submodule is configured to convert the click instruction into the control information when the control instruction is a click instruction on a page element of the webpage.
  • a second conversion sub-module configured to determine position information corresponding to the preset position when the control instruction is a movement instruction for moving the page element of the webpage to the preset position, convert the movement instruction into the manipulation information, and the position information and the manipulation information Determined as control information.
  • the third conversion submodule is configured to convert the input instruction into the manipulation information, and determine the target information and the manipulation information as the control information when the control instruction is an input instruction for inputting the target information in the page element of the webpage.
  • FIG. 6 is a schematic diagram of still another webpage manipulation apparatus according to an embodiment of the present invention.
  • FIG. 6 is a modified device embodiment of FIG. 5.
  • the apparatus includes the following modules:
  • the obtaining module 11 is configured to obtain an element identifier of the page element when receiving a control instruction for a page element of the webpage.
  • the conversion module 12 is configured to convert the control instruction into control information.
  • the sending module 13 is configured to send the control information and the element identifier of the page element to the electronic device.
  • the receiving module 21 is configured to receive a web address sent by the electronic device when establishing a communication connection with the electronic device.
  • the module 22 is opened for opening a webpage according to a web address.
  • FIG. 7 is a schematic diagram of a webpage manipulation apparatus according to an embodiment of the present invention.
  • FIG. 7 is an embodiment of the apparatus corresponding to FIG. 3.
  • the apparatus includes the following modules:
  • the receiving module 31 is configured to receive control information sent by the mobile terminal and an element identifier of the page element, where the page element is a page element of the webpage.
  • the determining module 32 is configured to convert the control information into a control instruction.
  • the manipulation module 33 is configured to execute a control instruction on the page element corresponding to the element identifier.
  • manipulation module 33 may further include the following submodules:
  • the first manipulation submodule is configured to execute a click instruction on the page element corresponding to the element identifier when the control instruction is a click instruction.
  • the second manipulation sub-module is configured to: when the control instruction is a movement instruction moved to the preset position, move the page element corresponding to the element identifier to the preset position according to the movement instruction. or,
  • the third manipulation submodule is configured to input the target information in the page element corresponding to the element identifier according to the input instruction when the control instruction is an input instruction of the input target information.
  • FIG. 8 is a schematic diagram of still another webpage manipulation apparatus according to an embodiment of the present invention. 8 is a modified device embodiment of FIG. 7. For the same content as FIG. 7 in FIG. 8, please refer to the corresponding embodiment of FIG. Referring to Figure 8, the apparatus includes the following modules:
  • the receiving module 31 is configured to receive control information sent by the mobile terminal and an element identifier of the page element, where the page element is a page element of the webpage.
  • the determining module 32 is configured to convert the control information into a control instruction.
  • the manipulation module 33 is configured to execute a control instruction on the page element corresponding to the element identifier.
  • the obtaining module 41 is configured to acquire a web address corresponding to the currently displayed webpage when establishing a communication connection with the mobile terminal.
  • the sending module 42 is configured to send the website address to the mobile terminal.
  • FIG. 9 is a schematic diagram of an electronic device according to an embodiment of the present invention.
  • the electronic device includes a processor 51 and a memory 52.
  • the memory 52 stores therein an operation instruction executable by the processor 51, and the processor 51 reads an operation instruction in the memory 52 for implementing the above method implementation.
  • the method of controlling the web page in the example is a schematic diagram of an electronic device according to an embodiment of the present invention.
  • the electronic device includes a processor 51 and a memory 52.
  • the memory 52 stores therein an operation instruction executable by the processor 51, and the processor 51 reads an operation instruction in the memory 52 for implementing the above method implementation.
  • the method of controlling the web page in the example is a schematic diagram of an electronic device according to an embodiment of the present invention.
  • the embodiment of the present application further provides a non-transitory computer readable storage medium storing computer executable instructions, which can execute any of the foregoing method embodiments How to manipulate web pages in .
  • FIG. 10 is a schematic diagram of a hardware structure of an electronic device for performing a method for controlling a webpage according to an embodiment of the present disclosure. As shown in FIG. 10, the device includes:
  • processors 1010 and a memory 1020 are illustrated by one processor 1010 in FIG.
  • the apparatus for performing the manipulation method of the webpage may further include: an input device 1030 and an output device 1040.
  • the processor 1010, the memory 1020, the input device 1030, and the output device 1040 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 1020 is a non-volatile computer readable storage medium, and can be used for storing a non-volatile software program, a non-volatile computer-executable program, and a module, such as a program corresponding to a method for controlling a webpage in the embodiment of the present application.
  • An instruction/module (for example, the acquisition module 11, the conversion module 12, and the transmission module 13 shown in FIG. 5).
  • the processor 1010 executes various functional applications and data processing of the electronic device by executing non-volatile software programs, instructions, and modules stored in the memory 1020, that is, a method for controlling a web page in any of the above method embodiments.
  • the memory 1020 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; and the storage data area may store a usage device according to a webpage manipulation device (such as FIG. 5). Created data, etc.
  • the memory 1020 may include a high speed random access memory, and may also include a nonvolatile memory, such as At least one disk storage device, flash memory device, or other non-volatile solid state storage device.
  • the memory 1020 can optionally include memory remotely located relative to the processor 1010 that can be connected to the manipulation device of the web page via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the input device 1030 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the manipulation device of the web page.
  • the output device 1040 can include a display device such as a display screen.
  • the one or more modules are stored in the memory 1020, and when executed by the one or more processors 1010, perform a method of manipulating a web page in any of the above method embodiments.
  • the electronic device of the embodiment of the invention exists in various forms, including but not limited to:
  • Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
  • Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
  • Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
  • Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
  • the server consists of a processor, a hard disk, a memory, a system bus, etc.
  • the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
  • Embodiments of the present invention also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are When executed, the computer is caused to execute the manipulation method of the webpage in any of the above method embodiments.
  • the program when executed, may include the flow of an embodiment of the methods as described above.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明实施例是关于一种网页的操控方法及装置,该方法包括:在接收到对网页的页面元素的控制指令时,获取页面元素的元素标识;将控制指令转换为控制信息;将控制信息和页面元素的元素标识发送给电子设备。本发明实施例将用户输入的对移动终端的网页的页面元素的控制指令转换为控制信息和元素标识,以使电子设备根据控制信息和元素标识对电子设备的网页上的页面元素执行控制指令,从而实现了利用移动终端间接的对电子设备的网页进行控制。由于移动终端的屏幕较小,用户在移动终端上对网页的操作比较容易,所以提高了对电子设备的网页的操作效率。

Description

一种网页的操控方法及装置
本申请要求于2016年6月29日提交中国专利局、申请号为201610500582.9、发明名称为“一种网页的操控方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及通信技术领域,更具体的说,涉及网页的操控方法及装置。
背景技术
目前,智能电视上可以安装网页浏览器,用户可以在智能电视上利用网页浏览器观看网页。用户可以利用智能电视的遥控器来控制网页浏览器,以实现移动页面、点击网页链接和输入文字等操作。
通常情况下,智能电视的遥控器上会设置有方向键和确认键等实体按钮,用户需要利用方向键和确认键来实现对网页的操作。例如,在移动网页的页面时,用户需要点击遥控器上的方向键,以使网页的页面移动;又如,在用户想要打开网页上的网页链接A时,用户需要利用方向键将光标移动到该网页链接A的位置处,然后按下确认键,以打开网页链接A。再如,在用户想要在网页的输入框B内输入文字时,用户需要利用方向键将光标移动到该输入框B的位置处,然后按下确认键,以将光标定位到输入框B内,然后,智能电视会显示出虚拟键盘,用户需要利用方向键和确认键在虚拟键盘中选择需要的字符,从而实现了在输入框B内输入文字。
在研究和实践过程中,发明人发现上述相关技术至少存在以下问题:
由于智能电视的屏幕较大,而每按压一次遥控器的方向键仅会使光标移动一格,如果利用遥控器的方向键使光标移动到目标位置,不仅需要用户按压多次方向键,而且还会非常浪费时间,所以利用遥控器对智能电视的网页进行操作的效率非常低。
发明内容
本发明实施例提供一种网页的操控方法及装置,以提高对电子设备的网页的操作效率。
根据本发明实施例的第一方面,提供一种网页的操控方法,包括:
在接收到对网页的页面元素的控制指令时,获取页面元素的元素标识;
将控制指令转换为控制信息;
将控制信息和页面元素的元素标识发送给电子设备。
可选的,在接收到对网页的页面元素的控制指令之前,方法还包括:
在与电子设备建立通信连接时,接收电子设备发送的网址;
根据网址打开网页。
可选的,将控制指令转换为控制信息的步骤包括:
在控制指令为对网页的页面元素的点击指令时,将点击指令转换为控制信息;或者,
在控制指令为将网页的页面元素移动至预设位置的移动指令时,确定预设位置对应的位置信息,将移动指令转换为操控信息,将位置信息和操控信息确定为控制信息;或者,
在控制指令为在网页的页面元素内输入目标信息的输入指令时,将输入指令转换为操控信息,将目标信息和操控信息确定为控制信息。
根据本发明实施例的第二方面,提供一种网页的操控方法,包括:
接收移动终端发送的控制信息和页面元素的元素标识,页面元素为网页的页面元素;
将控制信息转换为控制指令;
在元素标识对应的页面元素上执行控制指令。
可选的,在接收移动终端发送的控制信息和页面元素的元素标识之前,方法还包括:
在与移动终端建立通信连接时,获取当前显示的网页对应的网址;
将网址发送给移动终端。
可选的,在元素标识对应的页面元素上执行控制指令的步骤包括:
在控制指令为点击指令时,在元素标识对应的页面元素上执行点击指令;或者,
在控制指令为移动至预设位置的移动指令时,根据移动指令将元素标识对应的页面元素移动至预设位置;或者,
在控制指令为输入目标信息的输入指令时,根据输入指令在元素标识对应的页面元素输入目标信息。
根据本发明实施例的第三方面,提供一种网页的操控装置,包括:
获取模块,用于在接收到对网页的页面元素的控制指令时,获取页面元素的元素标识;
转换模块,用于将控制指令转换为控制信息;
发送模块,用于将控制信息和页面元素的元素标识发送给电子设备。
可选的,装置还包括:
接收模块,用于在与电子设备建立通信连接时,接收电子设备发送的网址;
打开模块,用于根据网址打开网页。
可选的,转换模块包括:
第一转换子模块,用于在控制指令为对网页的页面元素的点击指令时,将点击指令转换为控制信息;或者,
第二转换子模块,用于在控制指令为将网页的页面元素移动至预设位置的移动指令时,确定预设位置对应的位置信息,将移动指令转换为操控信息,将位置信息和操控信息确定为控制信息;或者,
第三转换子模块,用于在控制指令为在网页的页面元素内输入目标信息的输入指令时,将输入指令转换为操控信息,将目标信息和操控信息确定为控制信息。
根据本发明实施例的第四方面,提供一种网页的操控装置,包括:
接收模块,用于接收移动终端发送的控制信息和页面元素的元素标识,页面元素为网页的页面元素;
确定模块,用于将控制信息转换为控制指令;
操控模块,用于在元素标识对应的页面元素上执行控制指令。
可选的,装置还包括:
获取模块,用于在与移动终端建立通信连接时,获取当前显示的网页对应的网址;
发送模块,用于将网址发送给移动终端。
可选的,操控模块包括:
第一操控子模块,用于在控制指令为点击指令时,在元素标识对应的页面元素上执行点击指令;或者,
第二操控子模块,用于在控制指令为移动至预设位置的移动指令时,根据移动指令将元素标识对应的页面元素移动至预设位置;或者,
第三操控子模块,用于在控制指令为输入目标信息的输入指令时,根据输入指令在元素标识对应的页面元素输入目标信息。
根据本发明实施例的第五方面,提供一种电子设备,包括:处理器和存储器,其中,存储器内存储有处理器能够执行的操作指令,处理器读取存储器内的操作指令用于实现以下方法:
在接收到对网页的页面元素的控制指令时,获取页面元素的元素标识;
将控制指令转换为控制信息;
将控制信息和页面元素的元素标识发送给电子设备。
根据本发明实施例的第六方面,提供一种电子设备,包括:处理器和存储器,其中,存储器内存储有处理器能够执行的操作指令,处理器读取存储器内的操作指令用于实现以下方法:
接收移动终端发送的控制信息和页面元素的元素标识,页面元素为网页的页面元素;
将控制信息转换为控制指令;
在元素标识对应的页面元素上执行控制指令。
根据本发明实施例的第七方面,提供一种非易失性计算机可读存储介质,其中,该非易失性计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项网页的操控方法。
根据本发明实施例的第八方面,提供一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一项网页的操控方法。
与现有技术相比,本本发明实施例提供的技术方案具有以下优点和特点:
在本发明实施例提供的方案中,本发明实施例将用户输入的对移动终端的网页的页面元素的控制指令转换为控制信息和元素标识,以使电子设备根据控制信息和元素标识对电子设备的网页上的页面元素执行控制指令,从而实现了利用移动终端间接的对电子设备的网页进行控制。由于移动终端的屏幕较小,用户在移动终端上对网页的操作比较容易,所以提高了对电子设备的网页的操作效率。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种网页的操控方法的流程图。
图2为本发明实施例提供的又一种网页的操控方法的流程图。
图3为本发明实施例提供的又一种网页的操控方法的流程图。
图4为本发明实施例提供的又一种网页的操控方法的流程图。
图5为本发明实施例提供的一种网页的操控装置的示意图。
图6为本发明实施例提供的又一种网页的操控装置的示意图。
图7为本发明实施例提供的又一种网页的操控装置的示意图。
图8为本发明实施例提供的又一种网页的操控装置的示意图。
图9为本发明实施例提供的一种电子设备的示意图;
图10为本发明实施例提供的又一种电子设备的示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明实施例保护的范围。
图1为本发明实施例提供的一种网页的操控方法的流程图。图1所示的网页的操控方法可以提高对电子设备的网页的操作效率。该方法包括以下步骤。
步骤S11、在接收到对网页的页面元素的控制指令时,获取页面元素的元素标识。
其中,本发明实施例提供的方法可以应用于对网页操作方便的移动终端内,移动终端可以为智能手机或平板电脑等设备。本实施例提到的电子设备为对网页操作不便的设备,例如电子设备可以为智能电视等设备。
网页的页面元素指的是网页的控件或页面等元素。例如,网页的页面元素可以为网页的页面、网页上的按钮或网页上的输入框等。
控制指令指的是对网页的页面元素的操控指令。例如,控制指令可以为对网页的页面元素的点击指令;又如,控制指令可以为将网页的页面元素移动至预设位置的移动指令;再如,控制指令可以为在网页的页面元素内输入目标信息的输入指令。当然,不局限于上述提到的操控指令,还可以为其他类型的操控指令。
页面元素的元素标识为页面元素的唯一标识。例如,在页面元素为按钮时,那么元素标识指的就是按钮的标识,按钮的标识可以为botton1;又如,在页面元素为页面时,那么元素标识指的就是页面的标识,页面的标识可以为page1;再如,在页面元素为输入框时,那么元素标识指的就是输入框的标识,输入框的标识可以为input1。
如果用户需要利用移动终端间接的对电子设备的网页进行控制,那么用户需要先建立移动终端与电子设备的通信连接。在建立好通信连接以后,移动终端可以根据用户输入的指令打开网页,并将该网页的网址通过建立好的通信连接发送给电子设备。电子设备在接收到移动终端通过建立好的通信连接发送的该网页的网址时,电子设备也会打开该网页,从而保证移动终端和电子设备打开同一个网页。当然,在建立好通信连接以后,也可以由电子设备向移动终端发送网址,以使移动终端和电子设备同时打开同一个网页。
在移动终端打开网页以后,用户便可以向移动终端输入对网页的页面元素的控制指令。在移动终端接收到用户输入的对网页的页面元素的控制指令时,移动终端便会获取页面元素的元素标识。
步骤S12、将控制指令转换为控制信息。
其中,控制信息为用于表示控制指令的字符串,对于不同的控制指令会对应不同的控制信息。
下面将分别介绍几种将控制指令转换为控制信息的方式。
第一种方式,在控制指令为对网页的页面元素的点击指令时,将点击指令转换为控制信息。
例如,假设控制指令为对网页的按钮的点击指令,假设预先会设定好点击指令对应的控制信息为type:2,那么移动终端便会将点击指令转化为控制信息type:2。
第二种方式,在控制指令为将网页的页面元素移动至预设位置的移动指令时,确定预设位置对应的位置信息,将移动指令转换为操控信息,将位置信息和操控信息确定为控制信息。
例如,假设控制指令为将网页的页面元素移动至预设位置的移动指令,假设预先会设定好移动指令对应的操控信息为type:1,那么移动终端便会将移动指令转化为操控信息type:1;假设移动终端确定出预设位置对应的位置信息为postion:1000,那么移动终端便会将位置信息postion:1000和操控信息为type:1确定为控制信息。
第三种方式,在控制指令为在网页的页面元素内输入目标信息的输入指令时,将输入指令转换为操控信息,将目标信息和操控信息确定为控制信息。
例如,假设控制指令为在网页的页面元素内输入目标信息“abc”的输入指令,假设预先会设定好输入指令对应的操控信息为type:3,那么移动终端便会将输入指令转化为操控信息type:3,然后移动终端便会将操控信息type:3和目标信息“abc”确定为控制信息。
步骤S13、将控制信息和页面元素的元素标识发送给电子设备。
其中,在移动终端将控制指令转换为控制信息以后,还需要将控制信息和页面元素的元素标识按照预先协定好的格式封装成数据,然后再将封装好的数据发送给电子设备。
例如,假设控制信息为type:2,页面元素的元素标识为botton1,那么移动终端可以按照预先协定好的格式将type:2和botton1封装成数据{msgType:4,msg:{type:2,body:{elementId:“botton1”}}}。msgType:4指的是移动终端与电子设备的网页交互协议,msg:指的是数据的信息内容,elementId:“botton1”指的是元素标识。
在图1所示的实施例中,本发明实施例将用户输入的对移动终端的网页的页面元素的控制指令转换为控制信息和元素标识,以使电子设备根据控制信息和元素标识对电子设备的网页上的页面元素执行控制指令,从而实现了利用移动终端间接的对电子设备的网页进行控制。由于移动终端的屏幕较小,用户在移动终端上对网页的操作比较容易,所以提高了对电子设备的网页的操作效率。
请参见图2所示,图2为本发明实施例提供的又一种网页的操控方法的流程图。图2所示的实施例为基于图1改进的实施例,所以与图1相同的内容可参见图1所示的实施例。相对于图1所示的实施例,图2所示的实施例在步骤S11之前,还可以包括以下步骤:
步骤S21、在与电子设备建立通信连接时,接收电子设备发送的网址。
其中,在移动终端间接的对电子设备的网页进行控制之前,移动终端需要先与电子设备建立通信连接。在移动终端与电子设备建立好通信 连接时,电子设备便会向移动终端发送电子设备当前正在显示的网页对应的网址,移动终端便会接收到电子设备发送的网址。
步骤S22、根据网址打开网页。
其中,在移动终端接收电子设备发送的网址以后,移动终端便会根据该网址打开网页,以保证移动终端和电子设备打开的是同一个网页。在移动终端打开网页以后,便可以执行步骤S11,以使移动终端间接的对电子设备的网页进行控制。
在图2所示的实施例中,在移动终端与电子设备建立好通信连接以后,移动终端会接收到电子设备发送的网址,并根据该网址打开网页,从而保证移动终端和电子设备打开的是同一个网页,以使移动终端可以间接的对电子设备的网页进行控制。
图3为本发明实施例提供的又一种网页的操控方法的流程图。图3为图1相应的实施例,图3所示的实施例需要与图1所示的实施例进行相互配合,如果图3所示的实施例中存在与图1所示的实施例相同的内容,请参见图1所示的实施例。图3所示的网页的操控方法可以提高对电子设备的网页的操作效率。该方法包括以下步骤。
步骤S31、接收移动终端发送的控制信息和页面元素的元素标识,页面元素为网页的页面元素。
其中,本发明实施例提供的方法可以应用于对网页操作不便的电子设备,电子设备可以为智能电视等设备。本实施例提到的移动终端为对网页操作方便的设备,移动终端可以为智能手机或平板电脑等设备。
网页的页面元素指的是网页的控件或页面等元素。例如,网页的页面元素可以为网页的页面、网页上的按钮或网页上的输入框等。
页面元素的元素标识为页面元素的唯一标识。例如,在页面元素为按钮时,那么元素标识指的就是按钮的标识,按钮的标识可以为botton1;又如,在页面元素为页面时,那么元素标识指的就是页面的标识,页面的标识可以为page1;再如,在页面元素为输入框时,那么元素标识指的就是输入框的标识,输入框的标识可以为input1。
控制信息为用于表示控制指令的字符串,对于不同的控制指令会对应不同的控制信息。
步骤S32、将控制信息转换为控制指令。
其中,控制指令指的是对网页的页面元素的操控指令。例如,控制指令可以为对网页的页面元素的点击指令;又如,控制指令可以为将网页的页面元素移动至预设位置的移动指令;再如,控制指令可以为在网页的页面元素内输入目标信息的输入指令。当然,不局限于上述提到的操控指令,还可以为其他类型的操控指令。
在电子设备接收移动终端发送的控制信息和页面元素的元素标识以后,电子设备会将控制信息转换为控制指令。
例如,假设控制信息type:2,电子设备便会将type:2转换为点击指令。
又如,假设控制信息包括位置信息postion:1000和操控信息为type:1,电子设备便会将位置信息postion:1000和操控信息为type:1转换为移动至预设位置的移动指令。
再如,假设控制信息包括操控信息type:3和目标信息“abc”,电子设备便会将操控信息type:3和目标信息“abc”转换为输入目标信息“abc”的输入指令。
步骤S33、在元素标识对应的页面元素上执行控制指令。
其中,在电子设备将控制信息转换为控制指令以后,电子设备会在网页的元素标识对应的页面元素上执行控制指令,从而实现了利用移动终端间接的对电子设备的网页进行控制。
下面将分别介绍几种在元素标识对应的页面元素上执行控制指令的方式。
第一种方式,在控制指令为点击指令时,在元素标识对应的页面元素上执行点击指令。
例如,假设控制指令为点击指令,且元素标识为botton1,电子设备便会在网页的元素标识botton1对应的页面元素上执行点击指令。
第二种方式,在控制指令为移动至预设位置的移动指令时,根据移动指令将元素标识对应的页面元素移动至预设位置。
例如,假设控制指令为移动至预设位置的移动指令,且元素标识为page1,电子设备便会根据移动指令将元素标识page1对应的页面元素移动至预设位置。
第三种方式,在控制指令为输入目标信息的输入指令时,根据输入指令在元素标识对应的页面元素输入目标信息。
例如,假设控制指令为输入目标信息的输入指令,且元素标识为input1,电子设备便会根据输入指令在元素标识input1对应的页面元素输入目标信息。
在图3所示的实施例中,本发明实施例将用户输入的对移动终端的网页的页面元素的控制指令转换为控制信息和元素标识,以使电子设备根据控制信息和元素标识对电子设备的网页上的页面元素执行控制指令,从而实现了利用移动终端间接的对电子设备的网页进行控制。由于移动终端的屏幕较小,用户在移动终端上对网页的操作比较容易,所以提高了对电子设备的网页的操作效率。
请参见图4所示,图4为本发明实施例提供的又一种网页的操控方法的流程图。图4所示的实施例为基于图3改进的实施例,所以与图3相同的内容可参见图3所示的实施例。相对于图3所示的实施例,图4所示的实施例在步骤S31之前,还可以包括以下步骤:
步骤S41、在与移动终端建立通信连接时,获取当前显示的网页对应的网址。
其中,在移动终端间接的对电子设备的网页进行控制之前,电子设备需要先与移动终端建立通信连接。在电子设备与移动终端建立好通信连接时,电子设备便会先获取当前显示的网页对应的网址。
例如,假设在电子设备与移动终端建立通信连接时,电子设备当前显示的网页对应的网址为www.123.com,那么电子设备便会获取当前显示的网页对应的网址www.123.com。
步骤S42、将网址发送给移动终端。
其中,在电子设备获取当前显示的网页对应的网址以后,电子设备便会将网址发送给移动终端,以保证移动终端和电子设备打开的是同一个网页。
在图4所示的实施例中,在移动终端与电子设备建立好通信连接以后,电子设备会先获取当前显示的网页对应的网址,然后再将网址发送给移动终端,从而保证移动终端和电子设备打开的是同一个网页,以使移动终端可以间接的对电子设备的网页进行控制。
图5为本发明实施例提供的一种网页的操控装置的示意图。图5为图1对应的装置实施例,图5中与图1相同的内容请参见图1对应的实施例即可。参照图5,该装置包括以下模块:
获取模块11,用于在接收到对网页的页面元素的控制指令时,获取页面元素的元素标识。
转换模块12,用于将控制指令转换为控制信息。
发送模块13,用于将控制信息和页面元素的元素标识发送给电子设备。
可选的,转换模块12还可以包括以下子模块:
第一转换子模块,用于在控制指令为对网页的页面元素的点击指令时,将点击指令转换为控制信息。或者,
第二转换子模块,用于在控制指令为将网页的页面元素移动至预设位置的移动指令时,确定预设位置对应的位置信息,将移动指令转换为操控信息,将位置信息和操控信息确定为控制信息。或者,
第三转换子模块,用于在控制指令为在网页的页面元素内输入目标信息的输入指令时,将输入指令转换为操控信息,将目标信息和操控信息确定为控制信息。
图6为本发明实施例提供的又一种网页的操控装置的示意图。图6为图5的改进的装置实施例,图6中与图5相同的内容请参见图5对应的实施例即可。参照图6,该装置包括以下模块:
获取模块11,用于在接收到对网页的页面元素的控制指令时,获取页面元素的元素标识。
转换模块12,用于将控制指令转换为控制信息。
发送模块13,用于将控制信息和页面元素的元素标识发送给电子设备。
接收模块21,用于在与电子设备建立通信连接时,接收电子设备发送的网址。
打开模块22,用于根据网址打开网页。
图7为本发明实施例提供的一种网页的操控装置的示意图。图7为图3对应的装置实施例,图7中与图3相同的内容请参见图3对应的实施例即可。参照图7,该装置包括以下模块:
接收模块31,用于接收移动终端发送的控制信息和页面元素的元素标识,页面元素为网页的页面元素。
确定模块32,用于将控制信息转换为控制指令。
操控模块33,用于在元素标识对应的页面元素上执行控制指令。
可选的,操控模块33还可以包括以下子模块:
第一操控子模块,用于在控制指令为点击指令时,在元素标识对应的页面元素上执行点击指令。或者,
第二操控子模块,用于在控制指令为移动至预设位置的移动指令时,根据移动指令将元素标识对应的页面元素移动至预设位置。或者,
第三操控子模块,用于在控制指令为输入目标信息的输入指令时,根据输入指令在元素标识对应的页面元素输入目标信息。
图8为本发明实施例提供的又一种网页的操控装置的示意图。图8为图7的改进的装置实施例,图8中与图7相同的内容请参见图7对应的实施例即可。参照图8,该装置包括以下模块:
接收模块31,用于接收移动终端发送的控制信息和页面元素的元素标识,页面元素为网页的页面元素。
确定模块32,用于将控制信息转换为控制指令。
操控模块33,用于在元素标识对应的页面元素上执行控制指令。
获取模块41,用于在与移动终端建立通信连接时,获取当前显示的网页对应的网址。
发送模块42,用于将网址发送给移动终端。
图9为本发明实施例提供的一种电子设备的示意图。参照图9,该电子设备包括:处理器51和存储器52,其中,存储器52内存储有处理器51能够执行的操作指令,处理器51读取存储器52内的操作指令用于实现上述各方法实施例中的网页的操控方法。
本申请实施例还提供了一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任一方法实施例中的网页的操控方法。
图10是本申请实施例提供的执行网页的操控方法的电子设备的硬件结构示意图,如图10所示,该设备包括:
一个或多个处理器1010以及存储器1020,图10中以一个处理器1010为例。
执行网页的操控方法的设备还可以包括:输入装置1030和输出装置1040。
处理器1010、存储器1020、输入装置1030和输出装置1040可以通过总线或者其他方式连接,图10中以通过总线连接为例。
存储器1020作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的网页的操控方法对应的程序指令/模块(例如,附图5所示的获取模块11、转换模块12和发送模块13)。处理器1010通过运行存储在存储器1020中的非易失性软件程序、指令以及模块,从而执行电子设备的各种功能应用以及数据处理,即实现上述任意方法实施例中的网页的操控方法。
存储器1020可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据网页的操控装置(如附图5)的使用所创建的数据等。此外,存储器1020可以包括高速随机存取存储器,还可以包括非易失性存储器,例如 至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器1020可选包括相对于处理器1010远程设置的存储器,这些远程存储器可以通过网络连接至网页的操控装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入装置1030可接收输入的数字或字符信息,以及产生与网页的操控装置的用户设置以及功能控制有关的键信号输入。输出装置1040可包括显示屏等显示设备。
所述一个或者多个模块存储在所述存储器1020中,当被所述一个或者多个处理器1010执行时,执行上述任意方法实施例中的网页的操控方法。
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。
本发明实施例的电子设备以多种形式存在,包括但不限于:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。
(5)其他具有数据交互功能的电子装置。
本发明实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一方法实施例中的网页的操控方法。
需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
以上所述,仅为本发明实施例的具体实施方式,但本发明实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明实施 例的保护范围之内。因此,本发明实施例的保护范围应所述以权利要求的保护范围为准。

Claims (18)

  1. 一种网页的操控方法,其特征在于,所述方法应用于移动终端,所述方法包括:
    在接收到对网页的页面元素的控制指令时,获取所述页面元素的元素标识;
    将所述控制指令转换为控制信息;
    将所述控制信息和所述页面元素的元素标识发送给电子设备。
  2. 根据权利要求1所述的网页的操控方法,其特征在于,在接收到对网页的页面元素的控制指令之前,所述方法还包括:
    在与所述电子设备建立通信连接时,接收所述电子设备发送的网址;
    根据所述网址打开所述网页。
  3. 根据权利要求1所述的网页的操控方法,其特征在于,将所述控制指令转换为控制信息的步骤包括:
    在所述控制指令为对所述网页的页面元素的点击指令时,将所述点击指令转换为控制信息;或者,
    在所述控制指令为将所述网页的页面元素移动至预设位置的移动指令时,确定所述预设位置对应的位置信息,将所述移动指令转换为操控信息,将所述位置信息和所述操控信息确定为控制信息;或者,
    在所述控制指令为在所述网页的页面元素内输入目标信息的输入指令时,将所述输入指令转换为操控信息,将所述目标信息和所述操控信息确定为控制信息。
  4. 一种网页的操控方法,其特征在于,所述方法应用于电子设备,所述方法包括:
    接收移动终端发送的控制信息和页面元素的元素标识,所述页面元素为网页的页面元素;
    将所述控制信息转换为控制指令;
    在所述元素标识对应的页面元素上执行所述控制指令。
  5. 根据权利要求4所述的网页的操控方法,其特征在于,在接收移动终端发送的控制信息和页面元素的元素标识之前,所述方法还包括:
    在与所述移动终端建立通信连接时,获取当前显示的网页对应的网址;
    将所述网址发送给所述移动终端。
  6. 根据权利要求4所述的网页的操控方法,其特征在于,在所述元素标识对应的页面元素上执行所述控制指令的步骤包括:
    在所述控制指令为点击指令时,在所述元素标识对应的页面元素上执行所述点击指令;或者,
    在所述控制指令为移动至预设位置的移动指令时,根据所述移动指令将所述元素标识对应的页面元素移动至预设位置;或者,
    在所述控制指令为输入目标信息的输入指令时,根据所述输入指令在所述元素标识对应的页面元素输入所述目标信息。
  7. 一种网页的操控装置,其特征在于,所述装置包括:
    获取模块,用于在接收到对网页的页面元素的控制指令时,获取所述页面元素的元素标识;
    转换模块,用于将所述控制指令转换为控制信息;
    发送模块,用于将所述控制信息和所述页面元素的元素标识发送给电子设备。
  8. 根据权利要求7所述的网页的操控装置,其特征在于,所述装置还包括:
    接收模块,用于在与所述电子设备建立通信连接时,接收所述电子设备发送的网址;
    打开模块,用于根据所述网址打开所述网页。
  9. 根据权利要求7所述的网页的操控装置,其特征在于,所述转换模块包括:
    第一转换子模块,用于在所述控制指令为对所述网页的页面元素的点击指令时,将所述点击指令转换为控制信息;或者,
    第二转换子模块,用于在所述控制指令为将所述网页的页面元素移动至预设位置的移动指令时,确定所述预设位置对应的位置信息,将所述移动指令转换为操控信息,将所述位置信息和所述操控信息确定为控制信息;或者,
    第三转换子模块,用于在所述控制指令为在所述网页的页面元素内输入目标信息的输入指令时,将所述输入指令转换为操控信息,将所述目标信息和所述操控信息确定为控制信息。
  10. 一种网页的操控装置,其特征在于,所述装置包括:
    接收模块,用于接收移动终端发送的控制信息和页面元素的元素标识,所述页面元素为网页的页面元素;
    确定模块,用于将所述控制信息转换为控制指令;
    操控模块,用于在所述元素标识对应的页面元素上执行所述控制指令。
  11. 根据权利要求10所述的网页的操控装置,其特征在于,所述装置还包括:
    获取模块,用于在与所述移动终端建立通信连接时,获取当前显示的网页对应的网址;
    发送模块,用于将所述网址发送给所述移动终端。
  12. 根据权利要求10所述的网页的操控装置,其特征在于,所述操控模块包括:
    第一操控子模块,用于在所述控制指令为点击指令时,在所述元素标识对应的页面元素上执行所述点击指令;或者,
    第二操控子模块,用于在所述控制指令为移动至预设位置的移动指令时,根据所述移动指令将所述元素标识对应的页面元素移动至预设位置;或者,
    第三操控子模块,用于在所述控制指令为输入目标信息的输入指令时,根据所述输入指令在所述元素标识对应的页面元素输入所述目标信息。
  13. 一种电子设备,其特征在于,包括:处理器和存储器,其中,存储器内存储有处理器能够执行的操作指令,处理器读取存储器内的操作指令用于实现以下方法:
    在接收到对网页的页面元素的控制指令时,获取所述页面元素的元素标识;
    将所述控制指令转换为控制信息;
    将所述控制信息和所述页面元素的元素标识发送给电子设备。
  14. 一种电子设备,其特征在于,包括:处理器和存储器,其中,存储器内存储有处理器能够执行的操作指令,处理器读取存储器内的操作指令用于实现以下方法:
    接收移动终端发送的控制信息和页面元素的元素标识,所述页面元素为网页的页面元素;
    将所述控制信息转换为控制指令;
    在所述元素标识对应的页面元素上执行所述控制指令。
  15. 一种非易失性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为:
    在接收到对网页的页面元素的控制指令时,获取所述页面元素的元素标识;
    将所述控制指令转换为控制信息;
    将所述控制信息和所述页面元素的元素标识发送给电子设备。
  16. 一种非易失性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为:
    接收移动终端发送的控制信息和页面元素的元素标识,所述页面元素为网页的页面元素;
    将所述控制信息转换为控制指令;
    在所述元素标识对应的页面元素上执行所述控制指令。
  17. 一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1至3任一项所述的方法。
  18. 一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求4至6任一项所述的方法。
PCT/CN2016/100342 2016-06-29 2016-09-27 一种网页的操控方法及装置 WO2018000623A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610500582.9 2016-06-29
CN201610500582.9A CN106126250A (zh) 2016-06-29 2016-06-29 一种网页的操控方法及装置

Publications (1)

Publication Number Publication Date
WO2018000623A1 true WO2018000623A1 (zh) 2018-01-04

Family

ID=57285917

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100342 WO2018000623A1 (zh) 2016-06-29 2016-09-27 一种网页的操控方法及装置

Country Status (2)

Country Link
CN (1) CN106126250A (zh)
WO (1) WO2018000623A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046090A (zh) * 2019-03-05 2019-07-23 阿里巴巴集团控股有限公司 页面元素的定位方法及装置
CN111314445A (zh) * 2020-01-21 2020-06-19 上海悦易网络信息技术有限公司 手机控制回收机开门方法及装置
CN112187941A (zh) * 2020-09-30 2021-01-05 武汉中科通达高新技术股份有限公司 一种前端设备控制方法及装置
WO2023098732A1 (zh) * 2021-12-03 2023-06-08 杭州逗酷软件科技有限公司 跨设备的交互方法、装置、电子设备以及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103389980A (zh) * 2012-05-08 2013-11-13 腾讯科技(深圳)有限公司 一种网页控制的操作方法及装置
CN103442301A (zh) * 2013-08-28 2013-12-11 Tcl集团股份有限公司 移动终端控制电视机的方法及系统和移动终端及电视机
WO2014006011A2 (en) * 2012-07-05 2014-01-09 Gemalto Sa A method for communicating data between a first device and a second device, corresponding second device and system
CN104980807A (zh) * 2014-04-09 2015-10-14 海尔集团公司 一种用于多媒体互动的方法及终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103389980A (zh) * 2012-05-08 2013-11-13 腾讯科技(深圳)有限公司 一种网页控制的操作方法及装置
WO2014006011A2 (en) * 2012-07-05 2014-01-09 Gemalto Sa A method for communicating data between a first device and a second device, corresponding second device and system
CN103442301A (zh) * 2013-08-28 2013-12-11 Tcl集团股份有限公司 移动终端控制电视机的方法及系统和移动终端及电视机
CN104980807A (zh) * 2014-04-09 2015-10-14 海尔集团公司 一种用于多媒体互动的方法及终端

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046090A (zh) * 2019-03-05 2019-07-23 阿里巴巴集团控股有限公司 页面元素的定位方法及装置
CN111314445A (zh) * 2020-01-21 2020-06-19 上海悦易网络信息技术有限公司 手机控制回收机开门方法及装置
CN112187941A (zh) * 2020-09-30 2021-01-05 武汉中科通达高新技术股份有限公司 一种前端设备控制方法及装置
WO2023098732A1 (zh) * 2021-12-03 2023-06-08 杭州逗酷软件科技有限公司 跨设备的交互方法、装置、电子设备以及存储介质

Also Published As

Publication number Publication date
CN106126250A (zh) 2016-11-16

Similar Documents

Publication Publication Date Title
US10805380B2 (en) Data transmission method and device
WO2017211020A1 (zh) 一种电视操控方法及装置
US10606367B2 (en) Command relay device, system and method for providing remote assistance/remote control
CN103024503B (zh) 一种通过移动通讯设备终端实现遥控的系统和方法
WO2018000623A1 (zh) 一种网页的操控方法及装置
CN104270662A (zh) 一种终端设备通过浏览器对智能电视进行控制的系统
US9218052B2 (en) Framework for voice controlling applications
CN105100141B (zh) 多媒体内容网络分享方法、装置及系统
WO2014090016A1 (zh) 设备控制方法与移动通信终端
JP6475870B2 (ja) インスタント・メッセージング・ウィンドウを表示する方法及び装置並びにコンピュータ読み取り可能な媒体
WO2014134963A1 (en) Input method and device thereof, and auxiliary input method and system thereof
EP3131303B1 (en) Method and device for transmitting data in intelligent terminal to television terminal
JP2017531353A (ja) 端末、サーバ、および端末制御方法
CN104683877A (zh) 电视远程文本输入方法
WO2017096813A1 (zh) 网页展示方法、移动终端、智能终端、程序和存储介质
US20170104808A1 (en) Network appliance, feature phone, network appliance, system and control method of network appliance
CN103973542B (zh) 一种语音信息处理方法及装置
CN106162364A (zh) 智能电视系统输入方法及装置、终端辅助输入方法及装置
WO2018133656A1 (zh) 将语音输入转换成文本输入的方法、装置和语音输入设备
CN103634643A (zh) 遥控智能电视卸载应用程序的方法及装置
WO2017215671A1 (zh) 接入设备的控制方法、装置及系统
KR102115076B1 (ko) 데이터 조작 제어 방법 및 그 시스템과 사용자 단말
US20140215347A1 (en) Portable device and control method thereof
JP6333434B1 (ja) 画面データ中継サーバ、画面データ中継プログラム、及び画面データ中継方法
WO2017092315A1 (zh) 一种控制电视的方法及装置

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: 16907019

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16907019

Country of ref document: EP

Kind code of ref document: A1