WO2015096747A1 - Operation response method, client, browser and system - Google Patents

Operation response method, client, browser and system Download PDF

Info

Publication number
WO2015096747A1
WO2015096747A1 PCT/CN2014/094851 CN2014094851W WO2015096747A1 WO 2015096747 A1 WO2015096747 A1 WO 2015096747A1 CN 2014094851 W CN2014094851 W CN 2014094851W WO 2015096747 A1 WO2015096747 A1 WO 2015096747A1
Authority
WO
WIPO (PCT)
Prior art keywords
client
webpage
operation instruction
instruction
browser
Prior art date
Application number
PCT/CN2014/094851
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 腾讯科技(深圳)有限公司
Publication of WO2015096747A1 publication Critical patent/WO2015096747A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Definitions

  • the embodiments of the present application relate to the field of computers, and in particular, to an operation response method, a client, a browser, and a system.
  • Web pages and clients are the two main ways in which network service providers provide Internet services to users.
  • operations such as opening the client, closing the client, opening the specified service, shutting down the specified service, upgrading the client, etc.
  • Each operation corresponds to an operation instruction that triggers its execution.
  • the client receives the operation instruction, it will respond and perform the corresponding operation.
  • the network service provider provides the network service to the user through the webpage
  • the user logs in to the service provider website through the browser, and the browser loads and displays the webpage provided by the service provider website, and the user queries and clicks on a certain network service in the webpage loaded and displayed by the browser.
  • a video service the server provides the network service to the user through a webpage.
  • the service provider provides the network service to the user through the client
  • the user starts the locally installed client, queries the client to click on a certain network service
  • the server transmits the data required by the network service to the client, and the client provides the user with the data.
  • the webpage is easy to develop and easy to query and browse.
  • the service provider usually promotes the various services provided by the webpage.
  • the performance of the business presentation and interaction is far less than that of the client.
  • the user In order to obtain a better business experience, the user is generally searching.
  • the way to start the network service is to find the network service of interest in the webpage through the browser, record the corresponding service identifier, and then input the service identifier in the search box of the client to search the network in the client.
  • Business then execute the network business in the client.
  • the embodiment of the present application provides an operation response method and a client. , browser and system.
  • the technical solution is as follows:
  • an operational response method comprising:
  • the operation instruction is an operation instruction corresponding to the operable object acquired from the webpage when receiving a predetermined operation corresponding to the operable object on the currently displayed webpage;
  • a corresponding operation is performed according to the operation instruction.
  • an operational response method comprising:
  • the operation instruction is sent to the client, and the client performs a corresponding operation according to the operation instruction.
  • a terminal comprising a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to execute the one by one or more processors Or an instruction included in more than one program to perform the following methods:
  • the operation instruction is sent to the client, and the client performs a corresponding operation according to the operation instruction.
  • the client acquires an operation instruction corresponding to the predetermined operation, and performs a corresponding operation according to the operation instruction.
  • FIG. 1 is a flowchart of a method for an operation response method provided by an embodiment of the present application
  • FIG. 2 is a flowchart of a method for an operation response method according to another embodiment of the present application.
  • FIG. 3 is a schematic diagram of an operation flow provided by another embodiment of the present application.
  • FIG. 4 is a flowchart of a method for an operation response method according to another embodiment of the present application.
  • FIG. 5 is a schematic diagram of an operation flow provided by another embodiment of the present application.
  • FIG. 6 is a flowchart of a method for an operation response method provided by an embodiment of the present application.
  • FIG. 7 is a flowchart of a method for an operation response method according to another embodiment of the present application.
  • FIG. 8 is a flowchart of a method for an operation response method provided by an embodiment of the present application.
  • FIG. 9 is a flowchart of a method for an operation response method provided by an embodiment of the present application.
  • FIG. 10 is a flowchart of a method for an operation response method according to another embodiment of the present application.
  • FIG. 11 is a structural diagram of a device of a client provided by an embodiment of the present application.
  • FIG. 12 is a structural diagram of a device of a client according to another embodiment of the present application.
  • FIG. 13 is a structural diagram of a device of a browser provided by an embodiment of the present application.
  • FIG. 14 is a structural diagram of a device of a browser according to another embodiment of the present application.
  • 15 is a system configuration diagram of an operation response system provided by an embodiment of the present application.
  • 16 is a structural diagram of a device of a client according to another embodiment of the present application.
  • 17 is a structural diagram of a device of a browser provided by an embodiment of the present application.
  • FIG. 18 is a structural diagram of a terminal according to another embodiment of the present application.
  • the client provided in the embodiment of the present application may be a client of the team voice tool.
  • the client can To run in the terminal, the terminal can be a mobile phone, a tablet, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer) IV, dynamic imaging experts compress standard audio layers 3) players, laptops, desktop computers, smart TVs, and more.
  • MP3 player Moving Picture Experts Group Audio Layer III
  • MP4 Moving Picture Experts Group Audio Layer
  • the operational response method can be used in the client to enable the client to respond to the user's actions in the specified web page.
  • the operational response method can include:
  • Step 101 The client extracts an operation instruction from the first webpage jump information generated by the embedded webpage of the client, where the first webpage jump information is an inoperative webpage, and the operable object corresponding to the client on the page receives the predetermined operation. Or generated, or the client receives an operation instruction sent by an external browser, where the operation instruction is extracted by the browser from the second webpage jump information generated by the currently displayed webpage, and the second webpage jump information is a page of the webpage.
  • the operable object corresponding to the client is generated after receiving the predetermined operation;
  • Step 102 The client performs a corresponding operation according to the operation instruction.
  • the operation response method obtains the predetermined operation when the operable object corresponding to the client is triggered to generate a predetermined operation when the embedded webpage of the client or the webpage displayed by the external browser is triggered to generate a predetermined operation.
  • the corresponding operation instruction is operated, and the corresponding operation is performed according to the operation instruction, which solves the problem that the user in the prior art needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query.
  • the problem is to simplify the operation process and save computing resources and operation time.
  • the webpage in the method shown in FIG. 1 may be an embedded webpage included in the client, or may be a webpage that is independent of the client and displayed in a third-party browser, for both cases.
  • This application is separately described by the following two embodiments.
  • the operational response method can be used in the client to cause the client to respond to a predetermined operation of the user in the client's embedded web page.
  • the operational response method can include:
  • Step 201 The client obtains the first webpage jump information from the embedded webpage of the client.
  • the embedded webpage includes an operable object corresponding to the client, and the first webpage jumps The information is generated after the embedded web page receives the predetermined operation on the operable object.
  • the actionable object can be an icon or link to the web service provided by the client.
  • the client interface is displayed in the terminal.
  • the client interacts with the server and performs synchronous update
  • the data of the embedded webpage can be obtained from the server, and the embedded webpage is displayed in the client interface.
  • Link after the user clicks on the link, the top level of the client displays the embedded web page.
  • the embedded webpage includes an operable object corresponding to the client, for example, an icon or a link of a certain service.
  • the embedded webpage generates a corresponding first webpage jump information, and the client The first webpage jump information can be monitored and intercepted.
  • the first webpage jump information may be an address of the webpage requesting jump or a webpage message.
  • Step 202 The client extracts an operation instruction from the first webpage jump information.
  • the client may extract the command code from the first webpage jump information, and find the operation instruction according to the command code in the preset correspondence relationship, where the preset correspondence relationship is a correspondence between different command codes and different operation instructions. relationship.
  • the corresponding command code may be written into the information corresponding to the operable object in the embedded webpage, and the user performs a predetermined operation on the operable object, for example, when clicking the icon or the link,
  • the embedded webpage generates the first webpage jump information including the command code, and the command code can be set to a fixed format character.
  • the client listens and intercepts the webpage jump information, the client can find a fixed format from the webpage jump information.
  • the characters are extracted as command codes.
  • the client locally stores a correspondence between each command code and a corresponding operation instruction, and the client matches according to the extracted command code and the pre-stored correspondence to determine an operation instruction corresponding to the command code, where the operation instruction Including but not limited to business opening instructions, business closing instructions or upgrade instructions.
  • the fixed format of the command code in the webpage jump information is “cmd:ooxxxx”, where “oo” corresponds to the service type, such as starting and exiting. , upgrade, etc., "xxxx" corresponds to the service number or software version number of the specified service, such as the identifier of a user interaction service or the program version number of the client main program, the client intercepts the webpage jump message and extracts the command code For "ooxxxx", determine the specific operating instructions.
  • Step 203 The client performs a corresponding operation according to the operation instruction.
  • the client After the client obtains the operation instruction, the corresponding operation is performed in the main interface of the client.
  • the operation instruction is a service start instruction
  • the main program of the control client starts the specified service
  • the operation instruction is the service close instruction
  • the main program of the control client ends the designated service
  • the operation instruction is an upgrade instruction
  • the client's main program is upgraded online.
  • the user performs an audio-visual interaction service through a client of the team voice tool.
  • the terminal used by the user displays the main interface of the client, and the main interface includes the internal interface.
  • the terminal displays the embedded webpage, and the embedded webpage includes a list of multiple audio and video interactive services.
  • the embedded webpage When the user clicks on an audiovisual interactive business icon in the list, the embedded webpage generates the first
  • the webpage jump message includes a command code “cmd:aa10345823”, where “aa” corresponds to the opening service, and “10345823” corresponds to the virtual “room” number of the video interactive service, and the client determines according to the command code.
  • the operation command is to open the video interactive service with the virtual room number “10345823”, and the main program controlling the client loads the interface of the video interactive service in the client interface, and enters the virtual room.
  • the operation response method when the operable object corresponding to the client in the embedded webpage of the client is triggered to generate a predetermined operation, the webpage jump information generated by the client from the embedded webpage is obtained. Obtaining an operation instruction corresponding to the predetermined operation, and performing a corresponding operation according to the operation instruction, which solves the problem that the user in the prior art needs to manually open the query from the webpage after browsing the interested network service through the webpage query.
  • the problem of network services is to simplify the operation process and save computing resources and operation time.
  • the operational response method can be used in the client to cause the client to respond to predetermined actions in the web page displayed by the user in an external browser.
  • the operational response method can include:
  • Step 301 The client receives an operation instruction sent by an external browser.
  • the operation instruction is extracted by the browser running outside the client from the second webpage jump information generated by the currently displayed webpage, and the second webpage jump information is an operable object corresponding to the client on the page of the webpage.
  • the user can manually open the browser, enter the address of the specified webpage in the browser, or click the relevant link from other webpage pages to jump, load and display the specified webpage.
  • the client's main program is started, if the address of the specified webpage is displayed in the interface of the client, and the specified webpage is not the embedded webpage of the client, when the user clicks the link of the address, the client can pass the operating system.
  • the API Application Programming Interface
  • the webpage displayed by the browser includes an operable object corresponding to the client, and the operable object may be an icon or a link of the network service provided by the client.
  • the operable object may be an icon or a link of the network service provided by the client.
  • an icon or link to a business When the user clicks the icon or the link, the webpage may generate corresponding second webpage jump information, and the browser extracts an operation instruction according to the second webpage jump information.
  • the second webpage jump information may be an address of the webpage requesting jump or a webpage message.
  • the browser may extract a command code from the second webpage jump information, and generate the operation instruction according to the command code.
  • the corresponding command code may be written in the information corresponding to the operable object in the webpage, and the user performs a predetermined operation on the operable object, for example, when the icon or the link is clicked, the webpage generates the command code containing the command.
  • the second webpage jump information the command code may be set to a fixed format character, and after the browser listens to the second webpage jump information, the browser may search for the fixed format character from the second webpage jump information and extract the command as a command.
  • Code The browser locally stores a correspondence between each command code and a corresponding operation instruction, and the browser generates the operation instruction according to the command code, where the operation instruction includes but is not limited to a start command and a carry command that do not carry the command line parameter. A start command, a service open command, a service close command, or an upgrade command of a line parameter.
  • the second webpage jump information as the address of the webpage requesting the jump
  • the fixed format of the command code in the second webpage jump information is “cmd:ooxxxx”, where “oo” corresponds to the service type.
  • “oo” corresponds to the service type.
  • start, exit, upgrade, etc. "xxxx" corresponds to the service number or software version number of the specified service, such as the identifier of a user interaction service or the program version number of the client main program, and the browser listens to the second page jump. Transfer the message and extract the command code as "ooxxxx" and generate an operation command.
  • the browser can obtain the predetermined address by searching the system registry by itself or the built-in plug-in, and the client receives the operation instruction sent by the browser through the predetermined address.
  • the client shell can also be installed together, and the address of the client shell is written into the registry, and the browser searches the shell of the client from the registry after generating the operation instruction.
  • the address of the program is used as a predetermined address, and the client's shell is started in the manner of command line parameters according to the predetermined address, and the command command may be carried in the command line parameter.
  • the operation instructions can be forwarded to the client's main program or the client's main program can be controlled according to the operation instructions.
  • Step 302 The client performs a corresponding operation according to the operation instruction.
  • the main program of the client When the main program of the client is not started, if the operation instruction is a startup instruction that does not carry a command line parameter, the main program of the client is started; if the operation instruction is a startup finger carrying a command line parameter The command starts the main program of the client and executes the operation corresponding to the command line parameter.
  • the operation corresponding to the command line parameter may include, but is not limited to, opening a specified service, ending a specified service, or performing online upgrade of a client's main program.
  • the operation instruction is a service opening instruction
  • the main program controlling the client starts the specified service
  • the operation instruction is a business shutdown instruction
  • the main program controlling the client ends the designated service
  • the operation instruction is an upgrade instruction, and then the online update of the main program of the client is controlled.
  • the command code extracted from the webpage jump information may be used as an operation instruction, and carried in a command line parameter to the shell of the browser, or the browser may also be based on
  • the command code generates an operation instruction that can be directly executed by the main program of the client, and is forwarded by the shell to the main program of the client.
  • the client's main program may be in an inactive state or in a startup state.
  • the main program of the client is in the startup state, only one user process can be started, or multiple user processes can be started at the same time; for example, when the user starts the client, the user can log in through the user name and the login password, and the main program of the same client. Multiple user name logins can be supported at the same time, and each user name corresponds to a separate user process.
  • the client's shell can query whether the user process is currently started by reading and writing the system shared memory technology. If the client's main program does not start the user process, the client's shell program may first start the client's main program, and then send an executable instruction to the user process initiated by the client's main program, and the user process performs the corresponding operation; or The client shell can start the client's main process in the form of command line parameters, so that the client's main program can directly perform the corresponding operations after starting the user process.
  • the browser displays a prompt box to the user, prompting the user to select which user process to perform the corresponding operation, and sending the user process to the user-selected user process can be directly executed. Instructions.
  • the client's shell directly forwards the received operation instruction to the client's main program. For example, the browser queries whether the user process is currently started by reading and writing the system shared memory technology. If the main program of the client does not start the user process, the browser may separately generate a startup instruction and a service instruction corresponding to the command code that do not carry the command line parameter, and the service instruction may include a service start instruction, a service shutdown instruction, or an upgrade instruction, etc.
  • the shell program sends the startup command to the client's main program, and the user process is started by the client's main program.
  • the browser sends the business instruction to the client's shell, and the client's shell sends the service command.
  • the user process initiated by the client's main program is executed by the user process; or, if the client's main program does not start the user process, the browser may generate a startup command carrying the command line parameter, and the startup instruction.
  • the shell sent to the client, the client's shell sends the start command to the client's main program, and the client's main program starts the user process according to the start command and controls the user process to perform the corresponding operation.
  • the browser If the client's main program has started at least one user process, the browser generates a business instruction and prompts the user to select which user process to perform the corresponding operation, and sends the generated business instruction to the client's shell, by the client's shell.
  • the program sends the business instruction to the user process selected by the user.
  • the user performs an audio-visual interaction service through a client of the team voice tool, where the user clicks on a link of a specified webpage in the client, and the client invokes the browser through the operating system API to load and display the webpage.
  • the operable object in the webpage is a list containing a plurality of audio and video interactive services.
  • the webpage When the user clicks on an audiovisual interactive business icon in the list, the webpage generates a webpage jump message, and the jump message includes the command code “cmd:aa10345823”.
  • the operation response method when the operable object corresponding to the client is triggered to generate a predetermined operation when the webpage displayed in the browser is displayed, the client receives the browser and acquires and sends the The operation instruction corresponding to the operation is scheduled, and the corresponding operation is performed according to the operation instruction, which solves the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art.
  • the problem is to simplify the operation process and save computing resources and operation time.
  • the operational response method can be used in a browser to cause the client to respond to predetermined operations in web pages loaded in the browser.
  • the operational response method can include:
  • Step 401 The browser loads and displays a webpage, where the webpage includes an operable object corresponding to the client.
  • Step 402 The browser obtains second webpage jump information from the currently displayed webpage, where the second webpage jump information is information generated by the webpage after receiving the predetermined operation on the operable object;
  • Step 403 The browser extracts an operation instruction from the second webpage jump information.
  • Step 404 The browser sends the operation instruction to the client, and the client performs a corresponding operation according to the operation instruction.
  • the operation response method extracts an operation instruction from the second webpage jump message by acquiring a second webpage jump message that is generated after the webpage receives the predetermined operation on the operable object. And the operation instruction is sent to the client, and the client performs the corresponding operation according to the operation instruction, which solves the problem that the user in the prior art needs to manually open the webpage in the client after browsing the interested network service through the webpage query.
  • the problem of the queried network service is achieved, which simplifies the operation process and saves computing resources and operation time.
  • the operational response method can be used in a browser to cause the client to respond to predetermined operations in web pages loaded in the browser.
  • the operational response method can include:
  • Step 501 the browser loads and displays the webpage
  • the user can manually open the browser, enter the address of the specified webpage in the browser, or click the relevant link from other webpage pages to jump, load and display the specified webpage.
  • the client's main program is started, if the address of the specified webpage is displayed in the interface of the client, and the specified webpage is not the embedded webpage of the client, when the user clicks the link of the address, the client can pass the operating system.
  • the API Application Programming Interface invokes the browser to load and display the specified web page.
  • Step 502 The browser obtains the second webpage jump information from the currently displayed webpage, where the second webpage jump message is a message generated after the webpage receives the predetermined operation on the operable object;
  • the webpage includes an operable object corresponding to the client, and the operable object may be an icon or a link of the network service provided by the client. For example, when an icon or a link of a certain service is clicked, the webpage may generate a corresponding second webpage jump information, and the browser extracts an operation instruction according to the second webpage jump information.
  • the second webpage jump information may be an address of the webpage requesting jump or a webpage message.
  • Step 503 The browser extracts an operation instruction from the second webpage jump information.
  • the browser may extract the command code from the second webpage jump information, and according to the command The code generates the operation instruction.
  • the corresponding command code may be written in the information corresponding to the operable object in the webpage, and the user performs a predetermined operation on the operable object, for example, when the icon or the link is clicked, the webpage generates the command code containing the command.
  • the webpage jump information may be set to a fixed format character.
  • the browser may search for the fixed format character from the second webpage jump information and extract it as a command code.
  • the browser locally stores a correspondence between each command code and a corresponding operation instruction, and the browser generates the operation instruction according to the command code, where the operation instruction includes but is not limited to a start command and a carry command that do not carry the command line parameter.
  • the second webpage jump information as the address of the webpage requesting the jump
  • the fixed format of the command code in the second webpage jump information is “cmd:ooxxxx”, where “oo” corresponds to the service type.
  • “oo” corresponds to the service type.
  • start, exit, upgrade, etc. "xxxx" corresponds to the service number or software version number of the specified service, such as the identifier of a user interaction service or the program version number of the client main program, and the browser listens to the second page jump. Transfer the message and extract the command code as "ooxxxx" and generate an operation command.
  • Step 504 the browser searches the registry through itself or a built-in plug-in to obtain a predetermined address
  • the client shell may be installed together, and the address of the client shell is written into the registry, and the browser searches the registry for the client after generating the operation instruction.
  • the address of the shell of the end is used as the predetermined address.
  • Step 505 The browser sends the operation instruction to the client through the predetermined address, and the client performs a corresponding operation according to the operation instruction.
  • the browser can start the client's shell in a command line parameter according to the predetermined address, and the command line parameter can carry the operation instruction.
  • the operation instruction can be forwarded to the main program of the client or the main program of the client can be controlled according to the operation instruction, so that the main program of the client performs the corresponding operation according to the operation instruction.
  • step 302 For the specific steps of the above-mentioned client to receive the operation command sent by the browser and perform the corresponding operation, refer to step 302 in the method shown in FIG. 4, which is not repeatedly described in the embodiment of the present application.
  • the operation response method extracts an operation instruction from the second webpage jump message by acquiring a second webpage jump message that is generated after the webpage receives the predetermined operation on the operable object. And the operation instruction is sent to the client, and the client performs the corresponding operation according to the operation instruction, which solves the problem that the user needs to browse the interested network service through the webpage query in the prior art.
  • the operation process is simplified, and the operation resources and operation time are saved.
  • the operational response method can be used to cause the client to respond to predetermined operations in web pages loaded in the browser.
  • the operational response method can include:
  • Step 601 the browser loads and displays the webpage
  • the user can manually open the browser, enter the address of the specified webpage in the browser, or click the relevant link from other webpage pages to jump, load and display the specified webpage.
  • the client's main program is started, if the address of the specified webpage is displayed in the interface of the client, and the specified webpage is not the embedded webpage of the client, when the user clicks the link of the address, the client can pass the operating system.
  • the API Application Programming Interface invokes the browser to load and display the specified web page.
  • Step 602 The browser acquires second webpage jump information from the currently displayed webpage, where the second webpage jump message is a message generated after the webpage receives the predetermined operation on the operable object;
  • the webpage includes an operable object corresponding to the client, and the operable object may be an icon or a link of the network service provided by the client. For example, when an icon or a link of a certain service is clicked, the webpage may generate a corresponding second webpage jump information, and the browser extracts an operation instruction according to the second webpage jump information.
  • the second webpage jump information may be an address of the webpage requesting jump or a webpage message.
  • Step 603 The browser extracts an operation instruction from the second webpage jump information.
  • the browser may extract a command code from the second webpage jump information, and generate the operation instruction according to the command code.
  • the corresponding command code may be written in the information corresponding to the operable object in the webpage, and the user performs a predetermined operation on the operable object, for example, when the icon or the link is clicked, the webpage generates the command code containing the command.
  • the second webpage jump information the command code may be set to a fixed format character, and after the browser listens to the second webpage jump information, the browser may search for the fixed format character from the second webpage jump information and extract the command as a command.
  • Code The browser locally stores a correspondence between each command code and a corresponding operation instruction, and the browser generates the operation instruction according to the command code, where the operation instruction includes but is not limited to a start command and a carry command that do not carry the command line parameter. A start command, a service open command, a service close command, or an upgrade command of a line parameter.
  • the second webpage jump information as the address of the webpage requesting the jump
  • the fixed format of the command code in the second webpage jump information is “cmd:ooxxxx”, where “oo” corresponds to the service type.
  • “oo” corresponds to the service type.
  • start, exit, upgrade, etc. "xxxx" corresponds to the service number or software version number of the specified service, such as the identifier of a user interaction service or the program version number of the client main program, and the browser listens to the second page jump. Transfer the message and extract the command code as "ooxxxx" and generate an operation command.
  • Step 604 the browser searches the registry through itself or a built-in plug-in to obtain a predetermined address
  • the client shell may be installed together, and the address of the client shell is written into the registry, and the browser searches the registry for the client after generating the operation instruction.
  • the address of the shell of the end is used as the predetermined address.
  • Step 605 The browser sends the operation instruction to the client by using the predetermined address.
  • the browser starts the client's shell in a command line parameter according to the predetermined address, and the command line parameter may carry the operation instruction.
  • the operation instructions can be forwarded to the client's main program or the client's main program can be controlled according to the operation instructions.
  • Step 606 The client performs a corresponding operation according to the operation instruction.
  • the main program of the client When the main program of the client is not started, if the operation instruction is a startup instruction that does not carry a command line parameter, the main program of the client is started; if the operation instruction is a startup instruction carrying a command line parameter, the client is started.
  • the operation corresponding to the command line parameter may include, but is not limited to, opening a specified service, ending a specified service, or performing online upgrade of a client's main program.
  • the operation instruction is a service opening instruction
  • the main program controlling the client starts the specified service
  • the operation instruction is a business shutdown instruction
  • the main program controlling the client ends the designated service
  • the operation instruction is an upgrade instruction, and then the online update of the main program of the client is controlled.
  • the command code extracted from the second webpage jump information may be used as an operation instruction, and carried in a command line parameter to be sent to the browser shell, or the browser may also
  • the operation instruction directly executable by the client's main program can be generated according to the command code, and the shell program forwards the program to the client.
  • the client's main program may be in an inactive state or in a startup state.
  • the client's main program is in the startup state, you can start only one user process, or you can start multiple user processes at the same time; for example, the user starts the client.
  • the user name and login password can be used to log in.
  • the main program of the same client can simultaneously support multiple user name logins, and each user name corresponds to an independent user process.
  • the client's shell can query whether the user process is currently started by reading and writing the system shared memory technology. If the client's main program does not start the user process, the client's shell program may first start the client's main program, and then send an executable instruction to the user process initiated by the client's main program, and the user process performs the corresponding operation; or The client shell can start the client's main process in the form of command line parameters, so that the client's main program can directly perform the corresponding operations after starting the user process.
  • the browser displays a prompt box to the user, prompting the user to select which user process to perform the corresponding operation, and sending the user process to the user-selected user process can be directly executed. Instructions.
  • the client's shell When the browser generates an operation instruction directly executable by the client's main program according to the command code, the client's shell directly forwards the received operation instruction to the client's main program. For example, the browser queries whether the user process is currently started by reading and writing the system shared memory technology. If the main program of the client does not start the user process, the browser may separately generate a startup instruction and a service instruction corresponding to the command code that do not carry the command line parameter, and the service instruction may include a service start instruction, a service shutdown instruction, or an upgrade instruction, etc.
  • the device first sends a startup command to the client's shell, and the client's shell sends the startup command to the client's main program, and the client's main program starts the user process.
  • the browser sends the service command.
  • the client's shell sends the business instructions to the client's main program-initiated user process, and the user process performs the corresponding operation; or, if the client's main program does not start the user process, the browser can Generating a startup instruction carrying a command line parameter, and sending the startup instruction to the client's shell, the client's shell sends the startup instruction to the client's main program, and the client's main program starts the user process according to the startup instruction and controls User entry The appropriate action.
  • the browser If the client's main program has started at least one user process, the browser generates a business instruction and prompts the user to select which user process to perform the corresponding operation, and sends the generated business instruction to the client's shell, by the client's shell.
  • the program sends the business instruction to the user process selected by the user.
  • FIG. 9 a flowchart of a method for an operation response method provided by an embodiment of the present application is shown.
  • the processing flow of the method may include the following steps:
  • Step 701 Acquire an operation instruction, where the operation instruction is received on a webpage corresponding to the current display An operation instruction corresponding to the operable object acquired from the webpage when the predetermined operation of the object is operable;
  • Step 702 performing a corresponding operation according to the operation instruction.
  • the operation response method obtains an operation instruction corresponding to the operable object from the webpage after receiving the predetermined operation on the operable object by acquiring the webpage, and sends the operation instruction to the operation instruction.
  • the client performs the corresponding operation according to the operation instruction, and solves the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. To achieve the purpose of simplifying the operation process and saving computing resources and operation time.
  • FIG. 9 a flowchart of a method for an operation response method provided by an embodiment of the present application is shown.
  • the method can be used in a client, wherein the client can be any client, for example, a client of a team voice tool, an instant messaging client, and the like.
  • Step 701 Acquire an operation instruction, where the operation instruction is an operation instruction corresponding to the operable object acquired from the webpage when receiving a predetermined operation corresponding to the operable object on the currently displayed webpage;
  • the webpage may be an embedded webpage of the client or a webpage opened by using an external browser.
  • the embedded webpage may be written by a technician in some programming languages and stored in a client installation package, when the user installs the client.
  • the embedded webpage can be installed in the operating system of the terminal with the client; the embedded webpage can be provided with a plurality of operable objects, and an operation for triggering the execution of the operable object can be set as a predetermined operation;
  • the operation object may be an icon or a link of a network service provided by the client, and may set corresponding information for each operable object, such as an operation instruction, etc., and the information may be set in a webpage in the form of a webpage code; if the client is in the client Without an embedded web page, the technician can also develop a web page that is applied to the browser, and the web page can also be provided with multiple operable objects.
  • the client in the case that the client includes the embedded webpage, the client can listen to the webpage message sent by the embedded webpage, so that the operation instruction of the embedded webpage sending can be obtained, specifically, after the user starts the main program of the client,
  • the terminal can display the client interface.
  • the client interacts with the server and performs synchronous update
  • the update data of the embedded webpage can be obtained from the server, and the terminal can be in the client.
  • the link of the embedded webpage is displayed in the interface.
  • the client can display the embedded webpage.
  • the client can display the embedded webpage.
  • the client can display the embedded webpage.
  • the predetermined operation is a click operation
  • the embedded webpage can be obtained when the user clicks the operable object in the embedded webpage.
  • the stored operation instruction corresponding to the operable object generates a corresponding message and sends the message to the server.
  • the client can intercept the message and determine whether the message carries
  • the operation instruction if any, can obtain the operation instruction, and if not, the message can be sent to the server.
  • the user can manually open the browser and input the address of the specified webpage in the browser, or click the relevant link from other webpage pages and jump to the designated webpage, so that browsing
  • the browser can display the specified webpage, and the browser can detect the operation of the user in the specified webpage (such as a click operation, etc.).
  • the predetermined operation is a click operation
  • the browser can detect when the user clicks the operable object in the specified webpage.
  • the click operation can preset a corresponding operation instruction for the operable object.
  • the browser can obtain an operation instruction corresponding to the operable object from the specified webpage, and send the operation instruction to the client through some methods, and the client can receive the operation instruction.
  • the operation instruction is a click operation, etc.
  • the method for processing the specified webpage by using the browser may be various.
  • the following provides an optional processing manner, which may include the following content: the client invokes the browser through the operating system API to load and display the webpage.
  • the client can invoke the browser provided by the operating system API.
  • the interface calls an external browser and can input the address of the specified web page into the browser, and the browser can load and display the specified web page.
  • processing manner of the foregoing step 701 can be various.
  • the following provides an optional processing manner, which may include the following two situations:
  • the client extracts an operation instruction from the webpage message generated by the embedded webpage of the client, and the webpage message is generated after the operable object of the embedded webpage receives the predetermined operation on the page.
  • the webpage message may be any message sent by the embedded webpage, for example, the webpage message may be an address message for the webpage requesting to jump.
  • the developer when the developer develops the embedded webpage, the developer may set corresponding information for the operable object therein, and the information may include an operation instruction, etc., the information may be expressed in the form of a webpage code, and the user clicks on the embedded webpage.
  • the embedded webpage When the object is operable, the embedded webpage is triggered to obtain a corresponding operation instruction in the above information, and a webpage message is generated, and the client can monitor when the webpage message is sent by the embedded webpage.
  • the client When the embedded webpage sends a webpage message, the client may intercept the webpage message and detect whether the preset operation instruction is included. If the webpage message includes the operation instruction, the client may extract the operation instruction, correspondingly For the processing of the above, refer to the related content above, and details are not described herein again.
  • processing manner of the foregoing case 1 may be various.
  • the following provides an optional processing manner, which may specifically include the following steps:
  • Step 1 When detecting the embedded webpage generating webpage message of the client, the client extracts the command code from the webpage message;
  • the command code can be a fixed-format string, such as cmd:ooxxxx, where “oo” can indicate a service type, such as start, exit, upgrade, etc. “xxxx” can represent the service number or client version number of the specified service. Wait.
  • the corresponding command code may be written into the information corresponding to the operable object in the embedded webpage, and the user performs a predetermined operation on the operable object, such as clicking an icon or a link.
  • the embedded webpage generates a webpage message containing the command code.
  • the client listens and intercepts the webpage message, the client can search for the webpage message to determine whether the string contains a fixed format, and if it is included, extract the command as a command. Code.
  • Step 2 The client searches for the operation instruction according to the command code in the preset correspondence relationship, and the preset correspondence relationship is a correspondence between different command codes and different operation instructions.
  • the client can store the correspondence between the command code and the operation instruction. After the client obtains the command code (which can be called the first command code), the client can search for the corresponding relationship between the command code and the operation command.
  • the client receives an operation instruction sent by an external browser, and the operation instruction is obtained by the browser from the webpage execution code corresponding to the operable object when receiving the predetermined operation corresponding to the operable object on the currently displayed webpage.
  • the developer when the developer develops the specified webpage, the developer may set corresponding information for the operable object therein, and the information may include an operation instruction, etc.
  • the browser when the user clicks on the operable object in the specified webpage, the browser may detect the pair. The click operation of the object can be operated, and then the operation instruction in the webpage execution code corresponding to the operable object can be obtained, and sent to the client through some transmission mode, and the client can receive the operation instruction.
  • the processing manner of the foregoing case 2 may be various.
  • the following provides an optional processing manner, which may specifically include the following content: the client receives an external browser and sends the message through a predetermined address.
  • the operation instruction is obtained by using the browser itself or a built-in plug-in to search the registry through the client identifier corresponding to the operable object recorded in the webpage.
  • the client shell when the operating system of the terminal installs the client, the client shell may be installed together, and the installation address of the client shell is written into the registry, and the browser may obtain the specified webpage after generating the operation instruction.
  • the corresponding client identifier recorded in the webpage code can be searched in the registry by itself or a plug-in for providing the corresponding application program interface, and the address of the client shell corresponding to the client identifier is obtained as a predetermined address, and
  • the shell of the client may be started by using the predetermined address in a command line parameter.
  • the command line parameter may carry the operation instruction, and after the client shell is started, the operation instruction may be forwarded to the client main program.
  • Step 702 performing a corresponding operation according to the operation instruction.
  • the operation instruction may include multiple types, such as a service opening instruction, a service closing instruction, an upgrade instruction, and the like.
  • a service opening instruction the main program of the controlling client starts a specified service; when the operation instruction is a service
  • the instruction is closed the main program of the control client ends the specified service; when the operation instruction is the upgrade instruction, the main program of the client is upgraded online.
  • the main program of the client when the main program of the client is not started, if the operation instruction is a startup instruction that does not carry a command line parameter, the main program of the client is started; if the operation instruction is a startup instruction carrying a command line parameter, Then start the client's main program and execute the operation corresponding to the command line parameters.
  • the operation instruction is a service opening instruction, the main program controlling the client starts the specified service; if the operation instruction is a business shutdown instruction, the main program controlling the client ends the designated service;
  • the operation instruction is an upgrade instruction, and then the online update of the main program of the client is controlled.
  • the operation instructions may be various, and are not limited to the above four types. For other operation instructions, refer to the above related content, and details are not described herein again.
  • the operation response method obtains an operation instruction corresponding to the operable object from the webpage after receiving the predetermined operation on the operable object by acquiring the webpage, and sends the operation instruction to the operation instruction.
  • the client performs the corresponding operation according to the operation instruction, and solves the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. To achieve the purpose of simplifying the operation process and saving computing resources and operation time.
  • FIG. 10 a flowchart of a method for an operation response method provided by an embodiment of the present application is shown.
  • the processing flow of the method may include the following steps:
  • Step 801 loading and displaying a webpage, where the webpage includes an operable object corresponding to the client;
  • Step 802 when receiving a predetermined operation corresponding to the operable object, acquiring an operation instruction corresponding to the operable object from the webpage;
  • Step 803 Send an operation instruction to the client, and the client performs a corresponding operation according to the operation instruction.
  • the operation response method obtains an operation instruction corresponding to the operable object from the webpage after receiving the predetermined operation on the operable object by acquiring the webpage, and sends the operation instruction to the operation instruction.
  • the client performs the corresponding operation according to the operation instruction, and solves the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. To achieve the purpose of simplifying the operation process and saving computing resources and operation time.
  • FIG. 10 a flowchart of a method for an operation response method provided by an embodiment of the present application is shown.
  • the method can be used in a client or in a browser, where the client can be any client that includes an embedded webpage, for example, a client of a team voice tool, an instant messaging client, and the like.
  • client can be any client that includes an embedded webpage, for example, a client of a team voice tool, an instant messaging client, and the like.
  • steps 801 to 803 may include the following:
  • Step 1 The browser loads and displays a webpage, and the webpage includes an operable object corresponding to the client;
  • the user can display a certain page through the browser in various ways. For example, the user can manually open the browser, input the address of the specified webpage in the browser, or click the relevant link from the pages of other webpages to jump. Go to the specified web page, so that the browser can load and display the specified web page, wherein the technician can set a plurality of operable objects in the specified web page for corresponding operations on the client.
  • the manner in which the browser loads and displays the webpage can be various.
  • the following provides an optional processing manner, which may include the following content: the browser loads and displays the client through the call of the operating system API. Web page.
  • Step 2 When receiving a predetermined operation corresponding to the operable object, the browser obtains a webpage operable An operation instruction recorded in a webpage execution code corresponding to the object;
  • the technician may set an operation for triggering its execution on each operable object in the specified page as a predetermined operation, or may set corresponding information for each operable object, wherein the information may include an operation.
  • the information can be set in a web page in the form of a web page execution code. If the predetermined operation is a click operation, when the user clicks on the operable object in the specified webpage, the browser is triggered to execute the executable webpage execution code of the operable object, and the operation instruction is recorded in the webpage execution code. At this time, the browser can obtain the webpage execution code. The operation instructions recorded in .
  • step 3 the browser sends the operation instruction to the client, and the client performs the corresponding operation according to the operation instruction.
  • the technician can set the browser accordingly, for example, the interface for receiving the information from the client can be provided to the browser, etc., so that the browser can send relevant information to the client, when the browser obtains the operation instruction.
  • the operation instruction can be sent to the client through the related interface, and the client can receive the operation instruction, and perform the corresponding operation by using the operation instruction.
  • the processing manner of the foregoing step 3 may be various.
  • the following provides an optional processing manner, which may include the following content: the browser searches for the registration by using the client identifier corresponding to the operable object recorded in the webpage.
  • a table obtains a predetermined address and transmits an operation instruction to the client through a predetermined address.
  • the client's shell when the terminal's operating system installs the client, the client's shell can also be installed together, and the installation address of the client's shell is written into the registry, and the browser can continue to execute after the browser obtains the operation instruction.
  • the above webpage executes the code, and the technician can use some means to enable the browser to have the right to read the relevant data in the operating system of the terminal.
  • the browser searches in the registry of the operating system of the terminal to obtain the client.
  • the address of the client's shell corresponding to the end identifier is used as a predetermined address, and the shell of the client can be started by using the predetermined address in the command line parameter.
  • the command line parameter can carry the operation instruction, and the client shell is After startup, the operation instructions can be forwarded to the client's main program.
  • the processing manner for obtaining the predetermined address may be various.
  • the following provides an optional processing manner, which may include the following content: the browser uses itself or a built-in plug-in to correspond to the operable object recorded in the webpage.
  • the client ID find the registry, and get the predetermined address.
  • the browser can continue to execute the above-mentioned webpage execution code, and at this time, the browser can be triggered to load the corresponding plug-in, and the application provided by the plug-in
  • the interface reads related data in the operating system of the terminal.
  • the plug-in can be searched in the registry of the operating system of the terminal, and obtain the address of the client shell corresponding to the client identifier, as a predetermined address, or technology.
  • the person can add an interface that can enter the registry in the operating system of the terminal in the above webpage execution code.
  • the browser can look up in the registry through the interface, and obtain the address of the client shell corresponding to the client identifier. , as the predetermined address.
  • the client may perform different operations, and the operation instruction and the operation corresponding to the operation instruction may be various.
  • the following provides an optional operation instruction and corresponding operation, and specifically may include the following Content: the operation instruction may be a startup instruction that does not carry a command line parameter; the foregoing operation according to the operation instruction includes: starting a main program of the client; or, the operation instruction may be a startup instruction carrying a command line parameter; The operation instruction performs a corresponding operation, including: starting a main program of the client, and executing an operation corresponding to the command line parameter; or, the operation instruction may be an operation start instruction; and performing the corresponding operation according to the operation instruction, including: controlling the client's main operation The program starts the specified service; or, the operation instruction may be a business shutdown instruction; the foregoing operation according to the operation instruction includes: controlling the main program of the client to end the specified service; or, the operation instruction may be an upgrade instruction; Operation Including: control of the main clients of the online upgrade.
  • the foregoing steps 801 to 803 may include the following contents:
  • Step 1 loading and displaying the embedded webpage of the client, where the embedded webpage includes an operable object corresponding to the client;
  • the client interface is displayed in the terminal.
  • the update data of the embedded webpage can be obtained from the server, and can be displayed in the client interface.
  • the link of the embedded webpage after the user clicks the link, the client can load and display the embedded webpage.
  • Step 2 When receiving a predetermined operation corresponding to the operable object, the embedded webpage acquires an operation instruction corresponding to the operable object included therein;
  • the developer when the developer develops the embedded webpage, the developer may set corresponding information for the operable object therein, and the information may include an operation instruction, etc., and the user triggers the inline when the user clicks on the operable object in the embedded webpage.
  • the web page obtains the corresponding operation instruction.
  • the processing manner of step 2 above may be various, and an optional processing is provided below.
  • the method may include the following: when detecting the embedded webpage generating webpage message of the client, the client extracts the command code from the webpage message; the client searches for the operation instruction according to the command code in the preset correspondence relationship, and presets
  • the correspondence relationship is the correspondence between different command codes and different operation instructions.
  • the command code can be a fixed-format string.
  • the corresponding command code may be written into the information corresponding to the operable object in the embedded webpage, and the user performs a predetermined operation on the operable object, such as clicking an icon or a link.
  • the embedded webpage generates a webpage message containing the command code.
  • the client listens and intercepts the webpage message, the client can search for the webpage message to determine whether the string contains a fixed format, and if it is included, extract the command as a command. Code.
  • the client can store the correspondence between the command code and the operation command.
  • the client obtains the command code (which can be called the first command code)
  • the client can search for the correspondence between the command code and the operation command to obtain the first command code.
  • Corresponding operation instructions wherein the operation instructions include, but are not limited to, a service open instruction, a service close instruction, or an upgrade instruction.
  • Step 3 The embedded webpage sends a webpage message carrying the upper operation instruction, so that the client extracts the operation instruction in the webpage message.
  • the webpage message can be generated by the operation instruction, and when the embedded webpage sends the webpage message, the client can monitor the operation of the embedded webpage to send the webpage message, the client The webpage can intercept the webpage message. If the webpage message contains an operation instruction, the client can extract the operation instruction.
  • the corresponding processing refer to the related content, and details are not described herein.
  • the operation response method obtains an operation instruction corresponding to the operable object from the webpage after receiving the predetermined operation on the operable object by acquiring the webpage, and sends the operation instruction to the operation instruction.
  • the client performs the corresponding operation according to the operation instruction, and solves the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. To achieve the purpose of simplifying the operation process and saving computing resources and operation time.
  • the client may respond to a user's operation in a specified webpage.
  • the client can include:
  • An instruction obtaining module 901 configured to use a first webpage jump message generated from an embedded webpage of the client And extracting an operation instruction, where the first webpage jump information is generated by the embedded webpage after the operable object corresponding to the client on the page receives the predetermined operation; or receiving the external browser to send The operation instruction, the operation instruction is extracted by the browser from the second webpage jump information generated by the currently displayed webpage, where the second webpage jump information is on the page of the webpage and the The operable object corresponding to the client is generated after receiving the predetermined operation;
  • the response execution module 902 is configured to execute a corresponding response according to the operation instruction.
  • the client provided by the embodiment of the present invention obtains the predetermined operation by triggering a predetermined operation when the executable object corresponding to the client is triggered by the embedded webpage of the client or the webpage displayed by the external browser.
  • the corresponding operation instruction, and the response of the response is executed according to the operation instruction, which solves the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art.
  • the client may respond to a user's operation in a specified webpage.
  • the client can include:
  • the instruction obtaining module 1001 is configured to extract an operation instruction from the first webpage jump information generated by the embedded webpage of the client, where the first webpage jump information is the embedded webpage on the page and the client The corresponding operable object is generated after receiving the predetermined operation; or receiving the operation instruction sent by an external browser, where the operation instruction is the second webpage jump information generated by the browser from the currently displayed webpage. Extracted, the second webpage jump information is generated after the operable object corresponding to the client on the page of the webpage receives the predetermined operation;
  • the response execution module 1002 is configured to execute a corresponding response according to the operation instruction.
  • the instruction obtaining module 801 includes:
  • the obtaining unit 1001a obtains the first webpage jump information from the embedded webpage of the client;
  • An extracting unit 1001b configured to extract a command code from the first webpage jump information
  • the searching unit 1001c is configured to search for the operation instruction according to the command code in a preset correspondence relationship, where the preset correspondence relationship is a correspondence between different command codes and different operation instructions.
  • the instruction obtaining module 1001 includes:
  • the receiving unit 1001d is configured to receive the operation instruction sent by the browser by using a predetermined address, where the predetermined address is obtained by the browser searching the registry by itself or a built-in plug-in.
  • the instruction acquisition module 801 further includes:
  • the calling unit 1001e is configured to: after the receiving unit receives the operation instruction sent by the browser, invoke the browser to load and display the webpage through an operating system API.
  • the response execution module 1002 includes:
  • the first execution unit 10021 is configured to start the main program of the client if the operation instruction is a startup instruction that does not carry a command line parameter;
  • the second execution unit 10022 is configured to: if the operation instruction is a startup instruction carrying a command line parameter, start a main program of the client, and execute an operation corresponding to the command line parameter;
  • the third executing unit 10023 is configured to: if the operation instruction is a service opening instruction, control a main program of the client to start a specified service;
  • the fourth execution unit 10024 is configured to: if the operation instruction is a service shutdown instruction, control the main program of the client to end the designated service;
  • the fifth executing unit 10025 is configured to, if the operation instruction is an upgrade instruction, control online upgrade of the main program of the client.
  • the client provided by the embodiment of the present invention obtains the predetermined operation by triggering a predetermined operation when the executable object corresponding to the client is triggered by the embedded webpage of the client or the webpage displayed by the external browser.
  • the corresponding operation instruction, and the response of the response is executed according to the operation instruction, which solves the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art.
  • a device structure diagram of a browser provided by an embodiment of the present invention is provided, and the browser can be used to enable a client to respond to user operations in a specified webpage loaded in the browser.
  • the browser can include:
  • a loading module 1101 configured to load and display a webpage, where the webpage includes an operable object corresponding to the client;
  • the information obtaining module 1102 is configured to obtain second webpage jump information from the currently displayed webpage, where the second webpage jump information is generated after the webpage receives the predetermined operation on the operable object. Information;
  • An extracting module 1103, configured to extract an operation instruction from the second webpage jump information
  • An instruction sending module 1104 configured to send the operation instruction to the client, by the client The terminal performs a corresponding response according to the operation instruction.
  • the browser provided by the embodiment of the present invention extracts an operation instruction from a webpage jump message by acquiring a webpage jump message generated after the webpage displayed by the external browser receives the predetermined operation on the operable object. And the operation instruction is sent to the client, and the client performs the corresponding operation according to the operation instruction, which solves the problem that the user in the prior art needs to manually open the webpage in the client after browsing the interested network service through the webpage query.
  • the problem of the queried network service is achieved, which simplifies the operation process and saves computing resources and operation time.
  • the browser may be configured to enable a client to respond to a predetermined operation in a webpage loaded in the browser.
  • the browser can include:
  • a loading module 1201 configured to load and display a webpage, where the webpage includes an operable object corresponding to the client;
  • the information obtaining module 1202 is configured to obtain second webpage jump information from the currently displayed webpage, where the second webpage jump information is generated after the webpage receives the predetermined operation on the operable object. Information;
  • the extracting module 1203 is configured to extract an operation instruction from the second webpage jump information
  • the instruction sending module 1204 is configured to send the operation instruction to the client, and the client performs a corresponding response according to the operation instruction.
  • the instruction sending module 1204 includes:
  • the query unit 12041 is configured to search the registry by itself or a built-in plug-in to obtain a predetermined address.
  • the sending unit 12042 is configured to send the operation instruction to the client by using the predetermined address.
  • the loading module 1201 is configured to load and display the webpage under the call of the operating system API by the client.
  • the browser provided by the embodiment of the present invention extracts an operation instruction from a webpage jump message by acquiring a webpage jump message generated after the webpage displayed by the external browser receives the predetermined operation on the operable object. And the operation instruction is sent to the client, and the client performs the corresponding operation according to the operation instruction, which solves the problem that the user in the prior art needs to manually open the webpage in the client after browsing the interested network service through the webpage query.
  • the problem of the queried network service is achieved, which simplifies the operation process and saves computing resources and operation time.
  • FIG. 15 a system configuration diagram of an operation response system according to an embodiment of the present invention is shown.
  • the system includes:
  • the operation response system obtaineds the predetermined operation when the operable object corresponding to the client is triggered to generate a predetermined operation when the embedded webpage of the client or the webpage displayed by the external browser is triggered to generate a predetermined operation.
  • the corresponding operation instruction is operated, and the response of the response is executed according to the operation instruction, which solves the problem that the user in the prior art needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query.
  • the problem is to simplify the operation process and save computing resources and operation time.
  • the client may respond to a user's operation in a specified webpage.
  • the client can include:
  • the instruction obtaining module 1301 is configured to acquire an operation instruction, where the operation instruction is an operation instruction corresponding to the operable object acquired from the webpage when receiving a predetermined operation corresponding to the operable object on the currently displayed webpage ;
  • the response execution module 1302 is configured to perform a corresponding operation according to the operation instruction.
  • the instruction obtaining module 1301 is configured to extract an operation instruction from a webpage message generated by the embedded webpage of the client, where the webpage message is that the operable object of the embedded webpage receives a predetermined operation after the operation Or generating an operation instruction sent by an external browser, the operation instruction being executed by the browser from a webpage corresponding to the operable object when receiving a predetermined operation corresponding to the operable object on the currently displayed webpage Obtained in the code.
  • the instruction obtaining module 1301 is configured to:
  • the instruction obtaining module 1301 is configured to:
  • the client ID is obtained after looking up the registry.
  • the instruction obtaining module 1301 is further configured to:
  • the browser Before the receiving unit receives the operation instruction sent by the browser, the browser is called by the operating system API to load and display the webpage.
  • response execution module 1302 is configured to:
  • operation instruction is a startup instruction that does not carry a command line parameter, start the main program of the client;
  • the operation instruction is a startup instruction carrying a command line parameter, start the main program of the client, and execute an operation corresponding to the command line parameter;
  • If the operation instruction is a service opening instruction, controlling the main program of the client to start a specified service
  • If the operation instruction is a service shutdown instruction, controlling the main program of the client to end the designated service;
  • If the operation instruction is an upgrade instruction, controlling to perform online upgrade of the main program of the client.
  • the client provided by the embodiment of the present application obtains the predetermined operation by triggering a predetermined operation when the executable object corresponding to the client is triggered by the embedded webpage of the client or the webpage displayed by the external browser.
  • Corresponding operation instructions, and performing corresponding operations according to the operation instructions solve the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. To achieve the purpose of simplifying the operation process and saving computing resources and operation time.
  • the browser may be used to enable a client to respond to a predetermined operation in a webpage loaded in the browser.
  • the browser can include:
  • a loading module 1401, configured to load and display a webpage, where the webpage includes an operable object corresponding to the client;
  • the information obtaining module 1402 is configured to: when receiving a predetermined operation corresponding to the operable object, acquire an operation instruction corresponding to the operable object from the webpage;
  • the instruction sending module 1403 is configured to send the operation instruction to the client, and the client performs a corresponding operation according to the operation instruction.
  • the information obtaining module 1402 is configured to:
  • the instruction sending module 1403 is configured to:
  • the instruction sending module 1403 is configured to:
  • the registry identifier is searched for by the client identifier corresponding to the operable object recorded in the webpage, and the predetermined address is obtained.
  • the webpage is loaded and displayed under the call of the operating system API by the client.
  • the browser obtained by the embodiment of the present application obtains the predetermined operation when the operation object corresponding to the client in the webpage displayed by the client or the webpage displayed by the external browser is triggered to generate a predetermined operation.
  • Corresponding operation instructions, and performing corresponding operations according to the operation instructions solve the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. To achieve the purpose of simplifying the operation process and saving computing resources and operation time.
  • the client and the browser provided by the foregoing embodiment respond to the predetermined operation in the webpage, only the division of each functional module is used as an example. In an actual application, the foregoing function may be allocated according to requirements. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the client and the browser provided by the foregoing embodiment are in the same concept as the embodiment of the operation response method, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • FIG. 18 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • the terminal may be used to implement the operation response method provided in the foregoing embodiment. Specifically:
  • the terminal 1800 can include a communication unit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a WIFI (Wireless Fidelity) module 170, A processor 180 having one or more processing cores, and a power supply 190 and the like are included. It will be understood by those skilled in the art that the terminal structure shown in the figure does not constitute a limitation of the terminal, and may include more or less components than illustrated, or Some combinations of parts, or different parts are arranged. among them:
  • the communication unit 110 can be used for transmitting and receiving information and receiving and transmitting signals during a call.
  • the communication unit 110 can be an RF (Radio Frequency) circuit, a router, a modem, or the like.
  • RF circuits as communication units include, but are not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and a LNA (Low Noise Amplifier, low).
  • SIM Subscriber Identity Module
  • the communication unit 110 can also communicate with the network and other devices through wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly 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 (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the terminal 1800 (such as audio data, phone book, etc.) and the like.
  • memory 120 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. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
  • the input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 130 can include touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 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 and converts it into contact coordinates, sends it to the processor 180, and receives the command from the processor 180 and executes it.
  • the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal 1800, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Terminal 1800 can also include at least one type of sensor 150, 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 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 and/or the backlight when the terminal 1800 moves to the ear.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal 1800 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here Let me repeat.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal 1800.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal, for example, via the RF circuit 110, or outputted to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack, To provide communication between the peripheral earphone and the terminal 1800.
  • the terminal may be configured with a wireless communication unit 170, which may be a WIFI module.
  • the WIFI is a short-range wireless transmission technology, and the terminal 1800 can help the user to send and receive emails, browse web pages, and access streaming media through the wireless communication unit 170, which provides wireless broadband Internet access for users.
  • the wireless communication unit 170 is shown in the drawings, it can be understood that it does not belong to the essential configuration of the terminal 1800, and may be omitted as needed within the scope of not changing the essence of the disclosure.
  • the processor 180 is the control center of the terminal 1800, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the terminal 1800 are performed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the terminal 1800 also includes a power source 190 (such as a battery) for powering various components.
  • a power source 190 such as a battery
  • the power source can be logically coupled to the processor 180 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal 1800 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the terminal further includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to execute the one or more programs by one or more processors Contains instructions for making the following methods:
  • the operation instruction is an operation instruction corresponding to the operable object acquired from the webpage when receiving a predetermined operation corresponding to the operable object on the currently displayed webpage;
  • a corresponding operation is performed according to the operation instruction.
  • the obtaining an operation instruction includes:
  • the client extracts an operation instruction from the webpage message generated by the embedded webpage of the client, where the webpage message is generated after the operable object of the embedded webpage receives the predetermined operation on the page; or the client Receiving an operation instruction sent by an external browser, the operation instruction being from the operable object pair when the browser receives a predetermined operation corresponding to an operable object on a currently displayed webpage
  • the web page should be obtained from the execution code.
  • the client extracts an operation instruction from a webpage message generated by the embedded webpage of the client, including:
  • the client When detecting the embedded webpage generating webpage message of the client, the client extracts a command code from the webpage message;
  • the client searches for an operation instruction according to the command code in a preset correspondence relationship, where the preset correspondence relationship is a correspondence between different command codes and different operation instructions.
  • the client receives an operation instruction sent by an external browser, including:
  • the client receives an operation instruction sent by an external browser through a predetermined address, and the predetermined address is searched by the client identifier corresponding to the operable object recorded in the webpage by using the browser itself or a built-in plug-in. Obtained after the registry.
  • the method before the client receives the operation instruction sent by the external browser, the method further includes:
  • the client invokes the browser to load and display the web page through an application programming interface API of the operating system.
  • the performing the corresponding operations according to the operation instruction including:
  • operation instruction is a startup instruction that does not carry a command line parameter, start the main program of the client;
  • the operation instruction is a startup instruction carrying a command line parameter, start the main program of the client, and execute an operation corresponding to the command line parameter;
  • If the operation instruction is a service opening instruction, controlling the main program of the client to start a specified service
  • If the operation instruction is a service shutdown instruction, controlling the main program of the client to end the designated service;
  • If the operation instruction is an upgrade instruction, controlling to perform online upgrade of the main program of the client.
  • the terminal includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to execute the one or more by one or more processors
  • the instructions contained in the program for the following methods:
  • the operation instruction is sent to the client, and the client performs a corresponding operation according to the operation instruction.
  • the webpage is an embedded webpage of the client
  • acquiring an operation instruction corresponding to the operable object from the webpage includes: when receiving a predetermined operation corresponding to the operable object, The embedded webpage obtains an operation instruction corresponding to the operable object included therein;
  • the embedded webpage sending a webpage message carrying the operation instruction, so that the client extracts the operation instruction in the webpage message .
  • the loading and displaying the webpage includes: loading and displaying the webpage by the browser;
  • acquiring an operation instruction corresponding to the operable object from the webpage includes: when receiving a predetermined operation corresponding to the operable object, The browser acquires an operation instruction recorded in a webpage execution code corresponding to the operable object in the webpage;
  • the sending the operation instruction to the client includes: the browser sending the operation instruction to the client.
  • the browser sends the operation instruction to the client, including:
  • the browser searches the registry through the client identifier corresponding to the operable object recorded in the webpage, obtains a predetermined address, and sends the operation instruction to the client by using the predetermined address.
  • the browser searches the registry to obtain a predetermined address by using a client identifier corresponding to the operable object recorded in the webpage, and includes:
  • the browser uses its own or built-in plug-in to search the registry through the client identifier corresponding to the operable object recorded in the webpage to obtain a predetermined address.
  • the browser loads and displays the webpage, including:
  • the browser loads and displays the web page under the call of the client through the application programming interface API of the operating system.
  • the operation instruction is a startup instruction that does not carry a command line parameter; and the performing the corresponding operation according to the operation instruction includes: starting a main program of the client; or
  • the operation instruction is a startup instruction carrying a command line parameter; the performing the corresponding operation according to the operation instruction, comprising: starting a main program of the client, and executing the command line parameter The operation that should be performed; or,
  • the operation instruction is a service opening instruction; the performing the corresponding operation according to the operation instruction, comprising: controlling a main program of the client to start a specified service; or
  • the operation instruction is a service shutdown instruction; the performing the corresponding operation according to the operation instruction, comprising: controlling the main program of the client to end the designated service; or
  • the operation instruction is an upgrade instruction; and the performing the corresponding operation according to the operation instruction comprises: controlling online upgrade of the main program of the client.
  • the operation response method obtains the predetermined operation when the operable object corresponding to the client is triggered to generate a predetermined operation when the embedded webpage of the client or the webpage displayed by the external browser is triggered to generate a predetermined operation.
  • the corresponding operation instruction is operated, and the corresponding operation is performed according to the operation instruction, which solves the problem that the user in the prior art needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query.
  • the problem is to simplify the operation process and save computing resources and operation time.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

Disclosed are an operation response method, a client, a browser and a system, which belong to the field of computers. The method comprises: acquiring an operation instruction, when a pre-determined operation corresponding to an operational object on a currently displayed webpage is received, the operation instruction being an operation instruction corresponding to the operational object, which is acquired from the webpage; and according to the operation instruction, executing a corresponding operation. The present invention can solve the problem in the prior art that after a user queries and browses an interested network service via a webpage, the network service queried from the webpage is required to be manually started in a client, thereby achieving the purposes of simplifying an operation process and saving operation resources and operation time.

Description

操作响应方法、客户端、浏览器及系统Operational response method, client, browser and system
本申请要求于2013年12月24日提交中国专利局、申请号为201310721914.2、发明名称为“操作响应方法、客户端、浏览器及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201310721914.2, entitled "Operation Response Method, Client, Browser, and System" on December 24, 2013, the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本申请实施例涉及计算机领域,特别涉及一种操作响应方法、客户端、浏览器及系统。The embodiments of the present application relate to the field of computers, and in particular, to an operation response method, a client, a browser, and a system.
背景技术Background technique
随着互联网应用的不断发展,网络服务商提供的互联网业务也越来越丰富。而网页和客户端则是网络服务商向用户提供互联网服务的两种主要方式。对于客户端,其中可能会涉及到多种多样的操作,如开启客户端、关闭客户端、开启指定业务、关闭指定业务、升级客户端等,每种操作都对应有触发其执行的操作指令,当客户端接收到操作指令时,则会进行响应,执行相应的操作。With the continuous development of Internet applications, Internet services provided by network service providers are becoming more and more abundant. Web pages and clients are the two main ways in which network service providers provide Internet services to users. For the client, there may be a variety of operations, such as opening the client, closing the client, opening the specified service, shutting down the specified service, upgrading the client, etc. Each operation corresponds to an operation instruction that triggers its execution. When the client receives the operation instruction, it will respond and perform the corresponding operation.
当网络服务商通过网页向用户提供网络服务时,用户通过浏览器登录服务商网站,浏览器加载并显示服务商网站提供的网页,用户在浏览器加载并显示的网页中查询点击某网络业务,比如视频业务,服务器通过网页向用户提供该网络业务。当服务商通过客户端向用户提供网络服务时,用户启动本地安装的客户端,在客户端中查询点击某网络业务,服务器将该网络业务所需数据传输给客户端,由客户端向用户提供该网络业务。When the network service provider provides the network service to the user through the webpage, the user logs in to the service provider website through the browser, and the browser loads and displays the webpage provided by the service provider website, and the user queries and clicks on a certain network service in the webpage loaded and displayed by the browser. For example, a video service, the server provides the network service to the user through a webpage. When the service provider provides the network service to the user through the client, the user starts the locally installed client, queries the client to click on a certain network service, and the server transmits the data required by the network service to the client, and the client provides the user with the data. The network business.
网页开发方便且易于查询浏览,服务商通常通过网页推广其提供的各项业务,然而,由于网页功能有限,业务展示和交互效果远不如客户端,为了获得更好的业务体验,用户一般在查找并开启网络业务时采取的方式是:通过浏览器在网页中查找自己感兴趣的网络业务,记录相应的业务标识,然后在客户端的搜索框中输入该业务标识,以在客户端中搜索该网络业务,然后在客户端中执行该网络业务。The webpage is easy to develop and easy to query and browse. The service provider usually promotes the various services provided by the webpage. However, due to the limited function of the webpage, the performance of the business presentation and interaction is far less than that of the client. In order to obtain a better business experience, the user is generally searching. And the way to start the network service is to find the network service of interest in the webpage through the browser, record the corresponding service identifier, and then input the service identifier in the search box of the client to search the network in the client. Business, then execute the network business in the client.
在实现本发明的过程中,发明人发现现有技术至少存在以下问题: In the process of implementing the present invention, the inventors have found that the prior art has at least the following problems:
通过上述方式,用户通过网页查询浏览感兴趣的网络业务后,常常在客户端中手动开启从网页中查询到的网络业务,操作过程繁琐,且浪费较多的操作时间。In the above manner, after the user browses the network service of interest through the webpage query, the network service that is queried from the webpage is often manually opened in the client, the operation process is cumbersome, and a lot of operation time is wasted.
发明内容Summary of the invention
为了解决现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,本申请实施例提供了一种操作响应方法、客户端、浏览器及系统。所述技术方案如下:In order to solve the problem that the user needs to manually open the network service that is queried from the webpage in the client after the user browses the network service of interest through the webpage query in the prior art, the embodiment of the present application provides an operation response method and a client. , browser and system. The technical solution is as follows:
一方面,提供了一种操作响应方法,所述方法包括:In one aspect, an operational response method is provided, the method comprising:
获取操作指令,所述操作指令是在接收到对应当前显示的网页上可操作对象的预定操作时,从所述网页中获取的与所述可操作对象对应的操作指令;Obtaining an operation instruction, where the operation instruction is an operation instruction corresponding to the operable object acquired from the webpage when receiving a predetermined operation corresponding to the operable object on the currently displayed webpage;
根据所述操作指令执行相应的操作。A corresponding operation is performed according to the operation instruction.
另一方面,提供了一种操作响应方法,所述方法包括:In another aspect, an operational response method is provided, the method comprising:
加载并显示网页,所述网页中包含与客户端对应的可操作对象;Loading and displaying a webpage, the webpage containing an operable object corresponding to the client;
当接收到对应所述可操作对象的预定操作时,从所述网页中获取所述可操作对象对应的操作指令;Obtaining an operation instruction corresponding to the operable object from the webpage when receiving a predetermined operation corresponding to the operable object;
将所述操作指令发送给所述客户端,由所述客户端根据所述操作指令执行相应的操作。The operation instruction is sent to the client, and the client performs a corresponding operation according to the operation instruction.
再一方面,提供了一种终端,所述终端包括存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含的用于进行以下方法的指令:In a further aspect, a terminal is provided, the terminal comprising a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to execute the one by one or more processors Or an instruction included in more than one program to perform the following methods:
加载并显示网页,所述网页中包含与客户端对应的可操作对象;Loading and displaying a webpage, the webpage containing an operable object corresponding to the client;
当接收到对应所述可操作对象的预定操作时,从所述网页中获取所述可操作对象对应的操作指令;Obtaining an operation instruction corresponding to the operable object from the webpage when receiving a predetermined operation corresponding to the operable object;
将所述操作指令发送给所述客户端,由所述客户端根据所述操作指令执行相应的操作。The operation instruction is sent to the client, and the client performs a corresponding operation according to the operation instruction.
本申请实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solutions provided by the embodiments of the present application are:
通过当客户端的内嵌网页或者外部浏览器显示的网页中与客户端对应的可操作对象被触发产生预定操作时,客户端获取该预定操作对应的操作指令,并根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览 感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。When the operation object corresponding to the client is triggered to generate a predetermined operation when the embedded webpage of the client or the webpage displayed by the external browser is triggered, the client acquires an operation instruction corresponding to the predetermined operation, and performs a corresponding operation according to the operation instruction. , solve the problem in the prior art that the user browses through the webpage query After the network service is of interest, the problem of the network service queried from the webpage needs to be manually opened in the client, so as to simplify the operation process and save computing resources and operation time.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本申请一个实施例提供的操作响应方法的方法流程图;1 is a flowchart of a method for an operation response method provided by an embodiment of the present application;
图2是本申请另一实施例提供的操作响应方法的方法流程图;2 is a flowchart of a method for an operation response method according to another embodiment of the present application;
图3是本申请另一实施例提供的操作流程示意图;3 is a schematic diagram of an operation flow provided by another embodiment of the present application;
图4是本申请又一实施例提供的操作响应方法的方法流程图;4 is a flowchart of a method for an operation response method according to another embodiment of the present application;
图5是本申请又一实施例提供的操作流程示意图;FIG. 5 is a schematic diagram of an operation flow provided by another embodiment of the present application; FIG.
图6是本申请一个实施例提供的操作响应方法的方法流程图;6 is a flowchart of a method for an operation response method provided by an embodiment of the present application;
图7是本申请另一实施例提供的操作响应方法的方法流程图;7 is a flowchart of a method for an operation response method according to another embodiment of the present application;
图8是本申请一个实施例提供的操作响应方法的方法流程图;8 is a flowchart of a method for an operation response method provided by an embodiment of the present application;
图9是本申请一个实施例提供的操作响应方法的方法流程图;9 is a flowchart of a method for an operation response method provided by an embodiment of the present application;
图10是本申请另一实施例提供的操作响应方法的方法流程图;10 is a flowchart of a method for an operation response method according to another embodiment of the present application;
图11是本申请一个实施例提供的客户端的装置结构图;11 is a structural diagram of a device of a client provided by an embodiment of the present application;
图12是本申请另一实施例提供的客户端的装置结构图;FIG. 12 is a structural diagram of a device of a client according to another embodiment of the present application;
图13是本申请一个实施例提供的浏览器的装置结构图;FIG. 13 is a structural diagram of a device of a browser provided by an embodiment of the present application; FIG.
图14是本申请另一实施例提供的浏览器的装置结构图;FIG. 14 is a structural diagram of a device of a browser according to another embodiment of the present application;
图15是本申请一个实施例提供的操作响应系统的系统构成图;15 is a system configuration diagram of an operation response system provided by an embodiment of the present application;
图16是本申请另一实施例提供的客户端的装置结构图;16 is a structural diagram of a device of a client according to another embodiment of the present application;
图17是本申请一个实施例提供的浏览器的装置结构图;17 is a structural diagram of a device of a browser provided by an embodiment of the present application;
图18是本申请另一实施例提供的终端的结构图。FIG. 18 is a structural diagram of a terminal according to another embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objects, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
本申请实施例中提供的客户端可以是团队语音工具的客户端。该客户端可 以运行在终端中,该终端可以是手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面3)播放器、膝上型便携计算机、台式计算机以及智能电视等等。The client provided in the embodiment of the present application may be a client of the team voice tool. The client can To run in the terminal, the terminal can be a mobile phone, a tablet, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer) IV, dynamic imaging experts compress standard audio layers 3) players, laptops, desktop computers, smart TVs, and more.
请参见图1,其示出了本申请一个实施例提供的操作响应方法的方法流程图。该操作响应方法可以用于客户端中,使客户端响应用户在指定网页中的操作。该操作响应方法可以包括:Referring to FIG. 1, a flowchart of a method for an operation response method provided by an embodiment of the present application is shown. The operational response method can be used in the client to enable the client to respond to the user's actions in the specified web page. The operational response method can include:
步骤101,客户端从客户端的内嵌网页生成的第一网页跳转信息中提取操作指令,第一网页跳转信息是内嵌网页在页面上与客户端对应的可操作对象接收到预定操作后生成的;或,客户端接收外部的浏览器发送的操作指令,操作指令是浏览器从当前显示的网页生成的第二网页跳转信息中提取到的,第二网页跳转信息是网页的页面上与客户端对应的可操作对象接收到预定操作后生成的;Step 101: The client extracts an operation instruction from the first webpage jump information generated by the embedded webpage of the client, where the first webpage jump information is an inoperative webpage, and the operable object corresponding to the client on the page receives the predetermined operation. Or generated, or the client receives an operation instruction sent by an external browser, where the operation instruction is extracted by the browser from the second webpage jump information generated by the currently displayed webpage, and the second webpage jump information is a page of the webpage. The operable object corresponding to the client is generated after receiving the predetermined operation;
步骤102,该客户端根据该操作指令执行相应的操作。Step 102: The client performs a corresponding operation according to the operation instruction.
综上所述,本申请实施例提供的操作响应方法,通过当客户端的内嵌网页或者外部浏览器显示的网页中与客户端对应的可操作对象被触发产生预定操作时,客户端获取该预定操作对应的操作指令,并根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the operation response method provided by the embodiment of the present application obtains the predetermined operation when the operable object corresponding to the client is triggered to generate a predetermined operation when the embedded webpage of the client or the webpage displayed by the external browser is triggered to generate a predetermined operation. The corresponding operation instruction is operated, and the corresponding operation is performed according to the operation instruction, which solves the problem that the user in the prior art needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query. The problem is to simplify the operation process and save computing resources and operation time.
需要说明的是,由于上述图1所示的方法中的网页可以是客户端中包含的内嵌网页,也可以是独立于客户端并显示于第三方浏览器中的网页,对于这两种情形,本申请通过以下两个实施例分别加以描述。It should be noted that, because the webpage in the method shown in FIG. 1 may be an embedded webpage included in the client, or may be a webpage that is independent of the client and displayed in a third-party browser, for both cases. This application is separately described by the following two embodiments.
请参见图2,其示出了本申请另一实施例提供的操作响应方法的方法流程图。该操作响应方法可以用于客户端中,使客户端响应用户在客户端的内嵌网页中的预定操作。该操作响应方法可以包括:Referring to FIG. 2, a flowchart of a method for an operation response method provided by another embodiment of the present application is shown. The operational response method can be used in the client to cause the client to respond to a predetermined operation of the user in the client's embedded web page. The operational response method can include:
步骤201,客户端从客户端的内嵌网页获取第一网页跳转信息;Step 201: The client obtains the first webpage jump information from the embedded webpage of the client.
其中,该内嵌网页中包含有与客户端对应的可操作对象,该第一网页跳转 信息是该内嵌网页在该可操作对象上接收到预定操作后生成的。可操作对象可以是客户端提供的网络业务的图标或者链接。The embedded webpage includes an operable object corresponding to the client, and the first webpage jumps The information is generated after the embedded web page receives the predetermined operation on the operable object. The actionable object can be an icon or link to the web service provided by the client.
用户启动客户端的主程序后,在终端中显示客户端界面,客户端与服务器进行交互并进行同步更新时,可以从服务器获取内嵌网页的数据,并在客户端界面中显示该内嵌网页的链接,用户点击该链接后,客户端顶层显示内嵌网页。该内嵌网页中包含有与该客户端对应的可操作对象,比如,某业务的图标或者链接,用户点击该图标或者链接时,内嵌网页会生成相应的第一网页跳转信息,客户端可以监听并截获该第一网页跳转信息。After the user starts the main program of the client, the client interface is displayed in the terminal. When the client interacts with the server and performs synchronous update, the data of the embedded webpage can be obtained from the server, and the embedded webpage is displayed in the client interface. Link, after the user clicks on the link, the top level of the client displays the embedded web page. The embedded webpage includes an operable object corresponding to the client, for example, an icon or a link of a certain service. When the user clicks the icon or the link, the embedded webpage generates a corresponding first webpage jump information, and the client The first webpage jump information can be monitored and intercepted.
其中,该第一网页跳转信息可以是网页请求跳转的地址或者网页消息。The first webpage jump information may be an address of the webpage requesting jump or a webpage message.
步骤202,客户端从该第一网页跳转信息中提取操作指令;Step 202: The client extracts an operation instruction from the first webpage jump information.
客户端可以从该第一网页跳转信息中提取命令代号,并根据该命令代号在预设对应关系中查找得到该操作指令,该预设对应关系是不同命令代号与不同操作指令之间的对应关系。The client may extract the command code from the first webpage jump information, and find the operation instruction according to the command code in the preset correspondence relationship, where the preset correspondence relationship is a correspondence between different command codes and different operation instructions. relationship.
具体的,开发人员在开发内嵌网页时,可以在内嵌网页中的可操作对象对应的信息中写入相应的命令代号,用户对可操作对象进行预定操作,比如点击图标或者链接时,内嵌网页生成包含有该命令代号的第一网页跳转信息,该命令代号可以设置为固定格式的字符,客户端监听并截获该网页跳转信息后,可以从该网页跳转信息中查找固定格式的字符并提取为命令代号。客户端本地还存储有各个命令代号与对应的操作指令之间的对应关系,客户端根据提取到的命令代号和预先存储的对应关系进行匹配,以确定命令代号对应的操作指令,其中,操作指令包括但不限于业务开启指令、业务关闭指令或者升级指令等。Specifically, when the developer develops the embedded webpage, the corresponding command code may be written into the information corresponding to the operable object in the embedded webpage, and the user performs a predetermined operation on the operable object, for example, when clicking the icon or the link, The embedded webpage generates the first webpage jump information including the command code, and the command code can be set to a fixed format character. After the client listens and intercepts the webpage jump information, the client can find a fixed format from the webpage jump information. The characters are extracted as command codes. The client locally stores a correspondence between each command code and a corresponding operation instruction, and the client matches according to the extracted command code and the pre-stored correspondence to determine an operation instruction corresponding to the command code, where the operation instruction Including but not limited to business opening instructions, business closing instructions or upgrade instructions.
比如,以网页跳转信息为网页请求跳转的地址为例,假设网页跳转信息中的命令代号的固定格式为“cmd:ooxxxx”,其中,“oo”对应于业务类型,比如启动、退出、升级等,“xxxx”对应于指定业务的业务号或者软件版本号,比如某一用户互动业务的标识或者客户端主程序的程序版本号,客户端截获该网页跳转消息并提取出命令代号为“ooxxxx”,确定具体的操作指令。For example, taking the webpage jump information as the address of the webpage requesting jump, for example, the fixed format of the command code in the webpage jump information is “cmd:ooxxxx”, where “oo” corresponds to the service type, such as starting and exiting. , upgrade, etc., "xxxx" corresponds to the service number or software version number of the specified service, such as the identifier of a user interaction service or the program version number of the client main program, the client intercepts the webpage jump message and extracts the command code For "ooxxxx", determine the specific operating instructions.
步骤203,客户端根据该操作指令执行相应的操作。Step 203: The client performs a corresponding operation according to the operation instruction.
客户端获取到该操作指令后,在客户端的主界面中执行相应的操作。After the client obtains the operation instruction, the corresponding operation is performed in the main interface of the client.
具体的,当该操作指令为业务开启指令时,则控制客户端的主程序开启指定业务;当该操作指令为业务关闭指令时,则控制客户端的主程序结束指定业务;当该操作指令为升级指令时,则对客户端的主程序进行在线升级等。 Specifically, when the operation instruction is a service start instruction, the main program of the control client starts the specified service; when the operation instruction is the service close instruction, the main program of the control client ends the designated service; when the operation instruction is an upgrade instruction At the time, the client's main program is upgraded online.
如图3所示,以用户通过团队语音工具的客户端进行某影音交互业务为例,其中,用户启动客户端主程序后,用户使用的终端显示客户端的主界面,在主界面中包含有内嵌网页的链接,用户点击该链接后,终端显示内嵌网页,该内嵌网页中包含有多个影音交互业务的列表,用户点击列表中的某影音交互业务图标时,内嵌网页生成第一网页跳转消息,跳转消息中包含有命令代码“cmd:aa10345823”,其中,“aa”对应开启业务,“10345823”对应该影音交互业务的虚拟“房间”号,客户端根据该命令代码确定操作指令为开启虚拟房间号为“10345823”的影音交互业务,控制客户端的主程序在客户端界面中加载该影音交互业务的界面,进入该虚拟房间。As shown in FIG. 3, the user performs an audio-visual interaction service through a client of the team voice tool. After the user starts the client main program, the terminal used by the user displays the main interface of the client, and the main interface includes the internal interface. After the user clicks on the link, the terminal displays the embedded webpage, and the embedded webpage includes a list of multiple audio and video interactive services. When the user clicks on an audiovisual interactive business icon in the list, the embedded webpage generates the first The webpage jump message includes a command code “cmd:aa10345823”, where “aa” corresponds to the opening service, and “10345823” corresponds to the virtual “room” number of the video interactive service, and the client determines according to the command code. The operation command is to open the video interactive service with the virtual room number “10345823”, and the main program controlling the client loads the interface of the video interactive service in the client interface, and enters the virtual room.
综上所述,本申请实施例提供的操作响应方法,通过当客户端的内嵌网页中与客户端对应的可操作对象被触发产生预定操作时,客户端从内嵌网页生成的网页跳转信息中获取该预定操作对应的操作指令,并根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the operation response method provided by the embodiment of the present application, when the operable object corresponding to the client in the embedded webpage of the client is triggered to generate a predetermined operation, the webpage jump information generated by the client from the embedded webpage is obtained. Obtaining an operation instruction corresponding to the predetermined operation, and performing a corresponding operation according to the operation instruction, which solves the problem that the user in the prior art needs to manually open the query from the webpage after browsing the interested network service through the webpage query. The problem of network services is to simplify the operation process and save computing resources and operation time.
请参见图4,其示出了本申请又一实施例提供的操作响应方法的方法流程图。该操作响应方法可以用于客户端中,使客户端响应用户在外部的浏览器中显示的网页中的预定操作。该操作响应方法可以包括:Referring to FIG. 4, a flowchart of a method for an operation response method provided by another embodiment of the present application is shown. The operational response method can be used in the client to cause the client to respond to predetermined actions in the web page displayed by the user in an external browser. The operational response method can include:
步骤301,客户端接收外部的浏览器发送的操作指令;Step 301: The client receives an operation instruction sent by an external browser.
该操作指令是运行在客户端外部的浏览器从当前显示的网页生成的第二网页跳转信息中提取到的,第二网页跳转信息是该网页的页面上与客户端对应的可操作对象接收到预定操作后生成的指令。The operation instruction is extracted by the browser running outside the client from the second webpage jump information generated by the currently displayed webpage, and the second webpage jump information is an operable object corresponding to the client on the page of the webpage. An instruction generated after receiving a predetermined operation.
具体的,用户可以手动打开浏览器,并在浏览器中输入指定网页的地址,或者从其它网页页面中点击相关链接进行跳转,加载并显示该指定网页。或者,当客户端的主程序已启动时,若客户端的界面中显示有指定网页的地址,且该指定网页不是客户端的内嵌网页,则当用户点击该地址的链接时,客户端可以通过操作系统API(Application Programming Interface,应用程序编程接口)调用外部的浏览器加载并显示该指定网页。Specifically, the user can manually open the browser, enter the address of the specified webpage in the browser, or click the relevant link from other webpage pages to jump, load and display the specified webpage. Alternatively, when the client's main program is started, if the address of the specified webpage is displayed in the interface of the client, and the specified webpage is not the embedded webpage of the client, when the user clicks the link of the address, the client can pass the operating system. The API (Application Programming Interface) calls an external browser to load and display the specified web page.
该浏览器显示的网页中包含有与客户端对应的可操作对象,可操作对象可以是客户端提供的网络业务的图标或者链接。比如,某业务的图标或者链接, 用户点击该图标或者链接时,网页可以生成相应的第二网页跳转信息,浏览器根据该第二网页跳转信息提取操作指令。The webpage displayed by the browser includes an operable object corresponding to the client, and the operable object may be an icon or a link of the network service provided by the client. For example, an icon or link to a business, When the user clicks the icon or the link, the webpage may generate corresponding second webpage jump information, and the browser extracts an operation instruction according to the second webpage jump information.
其中,该第二网页跳转信息可以是网页请求跳转的地址或者网页消息。The second webpage jump information may be an address of the webpage requesting jump or a webpage message.
具体的,浏览器可以从该第二网页跳转信息中提取命令代号,并根据该命令代号生成该操作指令。Specifically, the browser may extract a command code from the second webpage jump information, and generate the operation instruction according to the command code.
开发人员在开发网页时,可以在网页中的可操作对象对应的信息中写入相应的命令代号,用户对可操作对象进行预定操作,比如点击图标或者链接时,网页生成包含有该命令代号的第二网页跳转信息,该命令代号可以设置为固定格式的字符,浏览器监听到该第二网页跳转信息后,可以从该第二网页跳转信息中查找固定格式的字符并提取为命令代号。浏览器本地还存储有各个命令代号与对应的操作指令之间的对应关系,浏览器根据该命令代号生成该操作指令,其中,操作指令包括但不限于未携带命令行参数的启动指令、携带命令行参数的启动指令、业务开启指令、业务关闭指令或者升级指令等。When the developer develops the webpage, the corresponding command code may be written in the information corresponding to the operable object in the webpage, and the user performs a predetermined operation on the operable object, for example, when the icon or the link is clicked, the webpage generates the command code containing the command. The second webpage jump information, the command code may be set to a fixed format character, and after the browser listens to the second webpage jump information, the browser may search for the fixed format character from the second webpage jump information and extract the command as a command. Code. The browser locally stores a correspondence between each command code and a corresponding operation instruction, and the browser generates the operation instruction according to the command code, where the operation instruction includes but is not limited to a start command and a carry command that do not carry the command line parameter. A start command, a service open command, a service close command, or an upgrade command of a line parameter.
比如,以第二网页跳转信息为网页请求跳转的地址为例,假设第二网页跳转信息中的命令代号的固定格式为“cmd:ooxxxx”,其中,“oo”对应于业务类型,比如启动、退出、升级等,“xxxx”对应于指定业务的业务号或者软件版本号,比如某一用户互动业务的标识或者客户端主程序的程序版本号,浏览器监听到该第二网页跳转消息并提取出命令代号为“ooxxxx”,并生成操作指令。For example, taking the second webpage jump information as the address of the webpage requesting the jump, for example, assuming that the fixed format of the command code in the second webpage jump information is “cmd:ooxxxx”, where “oo” corresponds to the service type. For example, start, exit, upgrade, etc., "xxxx" corresponds to the service number or software version number of the specified service, such as the identifier of a user interaction service or the program version number of the client main program, and the browser listens to the second page jump. Transfer the message and extract the command code as "ooxxxx" and generate an operation command.
此外,浏览器在监听到第二网页跳转消息并生成操作指令后,可以通过自身或者内置插件查找系统注册表获取预定地址,客户端接收浏览器通过该预定地址发送的操作指令。In addition, after the browser listens to the second webpage jump message and generates an operation instruction, the browser can obtain the predetermined address by searching the system registry by itself or the built-in plug-in, and the client receives the operation instruction sent by the browser through the predetermined address.
具体的,操作系统安装客户端时,还可以一并安装客户端的外壳程序,并将客户端的外壳程序的地址写入注册表,浏览器在生成操作指令后,从注册表中查找该客户端的外壳程序的地址作为预定地址,并根据该预定地址以命令行参数的方式启动该客户端的外壳程序,该命令行参数中可以携带该操作指令。客户端的外壳程序被启动后,可以将操作指令转发给客户端的主程序或者根据操作指令对客户端的主程序进行控制。Specifically, when the operating system installs the client, the client shell can also be installed together, and the address of the client shell is written into the registry, and the browser searches the shell of the client from the registry after generating the operation instruction. The address of the program is used as a predetermined address, and the client's shell is started in the manner of command line parameters according to the predetermined address, and the command command may be carried in the command line parameter. After the client's shell is started, the operation instructions can be forwarded to the client's main program or the client's main program can be controlled according to the operation instructions.
步骤302,客户端根据该操作指令执行相应的操作。Step 302: The client performs a corresponding operation according to the operation instruction.
当客户端的主程序未启动时,若该操作指令为未携带有命令行参数的启动指令,则启动该客户端的主程序;若该操作指令为携带有命令行参数的启动指 令,则启动该客户端的主程序,并执行该命令行参数所对应的操作。其中,该命令行参数对应的操作可以包括但不限于开启指定业务、结束指定业务或者对客户端的主程序进行在线升级等。When the main program of the client is not started, if the operation instruction is a startup instruction that does not carry a command line parameter, the main program of the client is started; if the operation instruction is a startup finger carrying a command line parameter The command starts the main program of the client and executes the operation corresponding to the command line parameter. The operation corresponding to the command line parameter may include, but is not limited to, opening a specified service, ending a specified service, or performing online upgrade of a client's main program.
当客户端的主程序已经启动时,若该操作指令为业务开启指令,则控制该客户端的主程序开启指定业务;若该操作指令为业务关闭指令,则控制该客户端的主程序结束指定业务;若该操作指令为升级指令,则控制对该客户端的主程序进行在线升级。When the main program of the client has been started, if the operation instruction is a service opening instruction, the main program controlling the client starts the specified service; if the operation instruction is a business shutdown instruction, the main program controlling the client ends the designated service; The operation instruction is an upgrade instruction, and then the online update of the main program of the client is controlled.
在实际应用中,浏览器生成操作指令时,可以将从网页跳转信息中提取出的命令代号作为操作指令,携带在命令行参数中发送给浏览器的外壳程序,或者,浏览器也可以根据命令代号生成客户端的主程序可直接执行的操作指令,由外壳程序转发给客户端的主程序。In an actual application, when the browser generates an operation instruction, the command code extracted from the webpage jump information may be used as an operation instruction, and carried in a command line parameter to the shell of the browser, or the browser may also be based on The command code generates an operation instruction that can be directly executed by the main program of the client, and is forwarded by the shell to the main program of the client.
需要说明的是,在浏览器生成操作指令时,客户端的主程序可以处于未启动状态,也可以处于启动状态。当客户端的主程序处于启动状态时,可以只启动一个用户进程,也可以同时启动多个用户进程;具体比如,用户启动客户端时,可以通过用户名和登录密码进行登录,同一个客户端的主程序可以同时支持多个用户名登录,每个用户名对应一个独立的用户进程。It should be noted that when the browser generates an operation instruction, the client's main program may be in an inactive state or in a startup state. When the main program of the client is in the startup state, only one user process can be started, or multiple user processes can be started at the same time; for example, when the user starts the client, the user can log in through the user name and the login password, and the main program of the same client. Multiple user name logins can be supported at the same time, and each user name corresponds to a separate user process.
当浏览器将命令代号作为操作指令发送给客户端的外壳程序时,客户端的外壳程序可以通过读写系统共享内存技术查询当前是否启动有用户进程。若客户端的主程序未启动用户进程,则客户端的外壳程序可以先启动客户端的主程序,再向客户端的主程序启动的用户进程发送可执行的指令,由该用户进程执行相应的操作;或者,客户端的外壳程序可以通过命令行参数的形式启动客户端的主进程,使客户端的主程序启动用户进程后直接执行相应的操作。若客户端的主程序已经启动,且已经开启了至少一个用户进程,则浏览器向用户显示提示框,提示用户选择哪一个用户进程来执行相应的操作,并向用户选择的用户进程发送可直接执行的指令。When the browser sends the command code as an operation command to the client's shell, the client's shell can query whether the user process is currently started by reading and writing the system shared memory technology. If the client's main program does not start the user process, the client's shell program may first start the client's main program, and then send an executable instruction to the user process initiated by the client's main program, and the user process performs the corresponding operation; or The client shell can start the client's main process in the form of command line parameters, so that the client's main program can directly perform the corresponding operations after starting the user process. If the client's main program has been started and at least one user process has been started, the browser displays a prompt box to the user, prompting the user to select which user process to perform the corresponding operation, and sending the user process to the user-selected user process can be directly executed. Instructions.
当浏览器根据命令代号生成客户端的主程序可直接执行的操作指令时,客户端的外壳程序将接收到的操作指令直接转发给客户端的主程序。比如,浏览器通过读写系统共享内存技术查询当前是否启动有用户进程。若客户端的主程序未启动用户进程,则浏览器可以分别生成未携带有命令行参数的启动指令和命令代码对应的业务指令,业务指令可以包括业务开启指令、业务关闭指令或者升级指令等,浏览器首先将启动指令发送给客户端的外壳程序,由客户端的 外壳程序将启动指令发送给客户端的主程序,并由客户端的主程序启动用户进程,用户进程启动完成后,浏览器再将业务指令发送给客户端的外壳程序,由客户端的外壳程序将业务指令发送给客户端的主程序启动的用户进程,由该用户进程执行相应的操作;或者,若客户端的主程序未启动用户进程,则浏览器可以生成携带有命令行参数的启动指令,并将该启动指令发送给客户端的外壳程序,客户端的外壳程序将该启动指令发送给客户端的主程序,客户端的主程序根据该启动指令启动用户进程并控制用户进程执行相应的操作。若客户端的主程序已经启动至少一个用户进程,则浏览器生成业务指令,并提示用户选择哪一个用户进程来执行相应的操作,并将生成的业务指令发送给客户端的外壳程序,由客户端的外壳程序向用户选择的用户进程发送该业务指令。When the browser generates an operation instruction directly executable by the client's main program according to the command code, the client's shell directly forwards the received operation instruction to the client's main program. For example, the browser queries whether the user process is currently started by reading and writing the system shared memory technology. If the main program of the client does not start the user process, the browser may separately generate a startup instruction and a service instruction corresponding to the command code that do not carry the command line parameter, and the service instruction may include a service start instruction, a service shutdown instruction, or an upgrade instruction, etc. First send the startup command to the client's shell, by the client The shell program sends the startup command to the client's main program, and the user process is started by the client's main program. After the user process is started, the browser sends the business instruction to the client's shell, and the client's shell sends the service command. The user process initiated by the client's main program is executed by the user process; or, if the client's main program does not start the user process, the browser may generate a startup command carrying the command line parameter, and the startup instruction The shell sent to the client, the client's shell sends the start command to the client's main program, and the client's main program starts the user process according to the start command and controls the user process to perform the corresponding operation. If the client's main program has started at least one user process, the browser generates a business instruction and prompts the user to select which user process to perform the corresponding operation, and sends the generated business instruction to the client's shell, by the client's shell. The program sends the business instruction to the user process selected by the user.
如图5所示,以用户通过团队语音工具的客户端进行某影音交互业务为例,其中,用户点击客户端中的指定网页的链接,客户端通过操作系统API调用浏览器加载并显示该网页,该网页中的可操作对象为包含有多个影音交互业务的列表,用户点击列表中的某影音交互业务图标时,网页生成网页跳转消息,跳转消息中包含有命令代码“cmd:aa10345823”,其中,“aa”对应开启业务,“10345823”对应该影音交互业务的虚拟“房间”号,浏览器根据该命令代码生成操作指令为开启虚拟房间号为“10345823”的影音交互业务,并将该操作指令发送给客户端,客户端的主程序在客户端界面中加载该影音交互业务的界面,进入该虚拟房间。As shown in FIG. 5, the user performs an audio-visual interaction service through a client of the team voice tool, where the user clicks on a link of a specified webpage in the client, and the client invokes the browser through the operating system API to load and display the webpage. The operable object in the webpage is a list containing a plurality of audio and video interactive services. When the user clicks on an audiovisual interactive business icon in the list, the webpage generates a webpage jump message, and the jump message includes the command code “cmd:aa10345823”. ", "aa" corresponds to the opening service, "10345823" corresponds to the virtual "room" number of the audio-visual interactive service, and the browser generates an operation instruction according to the command code to open the video interactive service with the virtual room number "10345823", and The operation instruction is sent to the client, and the main program of the client loads the interface of the video interactive service in the client interface, and enters the virtual room.
综上所述,本申请实施例提供的操作响应方法,通过当显示于浏览器的网页中与客户端对应的可操作对象被触发产生预定操作时,客户端接收浏览器获取并发送的与该预定操作对应的操作指令,并根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the operation response method provided by the embodiment of the present application, when the operable object corresponding to the client is triggered to generate a predetermined operation when the webpage displayed in the browser is displayed, the client receives the browser and acquires and sends the The operation instruction corresponding to the operation is scheduled, and the corresponding operation is performed according to the operation instruction, which solves the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. The problem is to simplify the operation process and save computing resources and operation time.
请参见图6,其示出了本申请一个实施例提供的操作响应方法的方法流程图。该操作响应方法可以用于浏览器中,使客户端对加载于该浏览器中的网页中的预定操作进行响应。该操作响应方法可以包括:Referring to FIG. 6, a flowchart of a method for an operation response method provided by an embodiment of the present application is shown. The operational response method can be used in a browser to cause the client to respond to predetermined operations in web pages loaded in the browser. The operational response method can include:
步骤401,浏览器加载并显示网页,该网页中包含与客户端对应的可操作对象; Step 401: The browser loads and displays a webpage, where the webpage includes an operable object corresponding to the client.
步骤402,浏览器从当前显示的网页获取第二网页跳转信息,该第二网页跳转信息为该网页在该可操作对象上接收到该预定操作后生成的信息;Step 402: The browser obtains second webpage jump information from the currently displayed webpage, where the second webpage jump information is information generated by the webpage after receiving the predetermined operation on the operable object;
步骤403,浏览器从该第二网页跳转信息中提取到操作指令;Step 403: The browser extracts an operation instruction from the second webpage jump information.
步骤404,浏览器将该操作指令发送给该客户端,由该客户端根据该操作指令执行相应的操作。Step 404: The browser sends the operation instruction to the client, and the client performs a corresponding operation according to the operation instruction.
综上所述,本申请实施例提供的操作响应方法,通过获取网页在可操作对象上接收到预定操作后被生成的第二网页跳转消息,从第二网页跳转消息中提取到操作指令,并将操作指令发送给客户端,由客户端根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the operation response method provided by the embodiment of the present application extracts an operation instruction from the second webpage jump message by acquiring a second webpage jump message that is generated after the webpage receives the predetermined operation on the operable object. And the operation instruction is sent to the client, and the client performs the corresponding operation according to the operation instruction, which solves the problem that the user in the prior art needs to manually open the webpage in the client after browsing the interested network service through the webpage query. The problem of the queried network service is achieved, which simplifies the operation process and saves computing resources and operation time.
请参见图7,其示出了本申请另一实施例提供的操作响应方法的方法流程图。该操作响应方法可以用于浏览器中,使客户端对加载于该浏览器中的网页中的预定操作进行响应。该操作响应方法可以包括:Referring to FIG. 7, a flowchart of a method for an operation response method provided by another embodiment of the present application is shown. The operational response method can be used in a browser to cause the client to respond to predetermined operations in web pages loaded in the browser. The operational response method can include:
步骤501,浏览器加载并显示网页; Step 501, the browser loads and displays the webpage;
具体的,用户可以手动打开浏览器,并在浏览器中输入指定网页的地址,或者从其它网页页面中点击相关链接进行跳转,加载并显示该指定网页。或者,当客户端的主程序已启动时,若客户端的界面中显示有指定网页的地址,且该指定网页不是客户端的内嵌网页,则当用户点击该地址的链接时,客户端可以通过操作系统API(Application Programming Interface,应用程序编程接口)调用浏览器加载并显示该指定网页。Specifically, the user can manually open the browser, enter the address of the specified webpage in the browser, or click the relevant link from other webpage pages to jump, load and display the specified webpage. Alternatively, when the client's main program is started, if the address of the specified webpage is displayed in the interface of the client, and the specified webpage is not the embedded webpage of the client, when the user clicks the link of the address, the client can pass the operating system. The API (Application Programming Interface) invokes the browser to load and display the specified web page.
步骤502,浏览器从当前显示的网页获取第二网页跳转信息,该第二网页跳转消息为该网页在可操作对象上接收到预定操作后生成的消息;Step 502: The browser obtains the second webpage jump information from the currently displayed webpage, where the second webpage jump message is a message generated after the webpage receives the predetermined operation on the operable object;
该网页中包含与客户端对应的可操作对象,可操作对象可以是客户端提供的网络业务的图标或者链接。比如,某业务的图标或者链接,用户点击该图标或者链接时,网页可以生成相应的第二网页跳转信息,浏览器根据该第二网页跳转信息提取操作指令。The webpage includes an operable object corresponding to the client, and the operable object may be an icon or a link of the network service provided by the client. For example, when an icon or a link of a certain service is clicked, the webpage may generate a corresponding second webpage jump information, and the browser extracts an operation instruction according to the second webpage jump information.
其中,该第二网页跳转信息可以是网页请求跳转的地址或者网页消息。The second webpage jump information may be an address of the webpage requesting jump or a webpage message.
步骤503,浏览器从该第二网页跳转信息中提取到操作指令;Step 503: The browser extracts an operation instruction from the second webpage jump information.
具体的,浏览器可以从第二网页跳转信息中提取命令代号,并根据该命令 代号生成该操作指令。Specifically, the browser may extract the command code from the second webpage jump information, and according to the command The code generates the operation instruction.
开发人员在开发网页时,可以在网页中的可操作对象对应的信息中写入相应的命令代号,用户对可操作对象进行预定操作,比如点击图标或者链接时,网页生成包含有该命令代号的网页跳转信息,该命令代号可以设置为固定格式的字符,浏览器监听到该第二网页跳转信息后,可以从该第二网页跳转信息中查找固定格式的字符并提取为命令代号。浏览器本地还存储有各个命令代号与对应的操作指令之间的对应关系,浏览器根据该命令代号生成该操作指令,其中,操作指令包括但不限于未携带命令行参数的启动指令、携带命令行参数的启动指令、业务开启指令、业务关闭指令或者升级指令等。When the developer develops the webpage, the corresponding command code may be written in the information corresponding to the operable object in the webpage, and the user performs a predetermined operation on the operable object, for example, when the icon or the link is clicked, the webpage generates the command code containing the command. The webpage jump information may be set to a fixed format character. After the browser listens to the second webpage jump information, the browser may search for the fixed format character from the second webpage jump information and extract it as a command code. The browser locally stores a correspondence between each command code and a corresponding operation instruction, and the browser generates the operation instruction according to the command code, where the operation instruction includes but is not limited to a start command and a carry command that do not carry the command line parameter. A start command, a service open command, a service close command, or an upgrade command of a line parameter.
比如,以第二网页跳转信息为网页请求跳转的地址为例,假设第二网页跳转信息中的命令代号的固定格式为“cmd:ooxxxx”,其中,“oo”对应于业务类型,比如启动、退出、升级等,“xxxx”对应于指定业务的业务号或者软件版本号,比如某一用户互动业务的标识或者客户端主程序的程序版本号,浏览器监听到该第二网页跳转消息并提取出命令代号为“ooxxxx”,并生成操作指令。For example, taking the second webpage jump information as the address of the webpage requesting the jump, for example, assuming that the fixed format of the command code in the second webpage jump information is “cmd:ooxxxx”, where “oo” corresponds to the service type. For example, start, exit, upgrade, etc., "xxxx" corresponds to the service number or software version number of the specified service, such as the identifier of a user interaction service or the program version number of the client main program, and the browser listens to the second page jump. Transfer the message and extract the command code as "ooxxxx" and generate an operation command.
步骤504,浏览器通过自身或者内置插件查找注册表,获得预定地址; Step 504, the browser searches the registry through itself or a built-in plug-in to obtain a predetermined address;
具体的,终端的操作系统安装客户端时,还可以一并安装客户端的外壳程序,并将客户端的外壳程序的地址写入注册表,浏览器在生成操作指令后,从注册表中查找该客户端的外壳程序的地址作为预定地址。Specifically, when the terminal operating system installs the client, the client shell may be installed together, and the address of the client shell is written into the registry, and the browser searches the registry for the client after generating the operation instruction. The address of the shell of the end is used as the predetermined address.
步骤505,浏览器通过该预定地址将该操作指令发送给该客户端,由该客户端根据该操作指令执行相应的操作。Step 505: The browser sends the operation instruction to the client through the predetermined address, and the client performs a corresponding operation according to the operation instruction.
浏览器可以根据该预定地址以命令行参数的方式启动该客户端的外壳程序,该命令行参数中可以携带该操作指令。客户端的外壳程序被启动后,可以将操作指令转发给客户端的主程序或者根据操作指令对客户端的主程序进行控制,使客户端的主程序根据该操作指令执行相应的操作。The browser can start the client's shell in a command line parameter according to the predetermined address, and the command line parameter can carry the operation instruction. After the client shell is started, the operation instruction can be forwarded to the main program of the client or the main program of the client can be controlled according to the operation instruction, so that the main program of the client performs the corresponding operation according to the operation instruction.
上述客户端接收浏览器发送的操作指令并执行相应的操作的具体步骤请参见图4所示方法中的步骤302,本申请实施例不再赘述。For the specific steps of the above-mentioned client to receive the operation command sent by the browser and perform the corresponding operation, refer to step 302 in the method shown in FIG. 4, which is not repeatedly described in the embodiment of the present application.
综上所述,本申请实施例提供的操作响应方法,通过获取网页在可操作对象上接收到预定操作后被生成的第二网页跳转消息,从第二网页跳转消息中提取到操作指令,并将操作指令发送给客户端,由客户端根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需 要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the operation response method provided by the embodiment of the present application extracts an operation instruction from the second webpage jump message by acquiring a second webpage jump message that is generated after the webpage receives the predetermined operation on the operable object. And the operation instruction is sent to the client, and the client performs the corresponding operation according to the operation instruction, which solves the problem that the user needs to browse the interested network service through the webpage query in the prior art. To manually open the network service queryed from the web page in the client, the operation process is simplified, and the operation resources and operation time are saved.
请参见图8,其示出了本申请一个实施例提供的操作响应方法的方法流程图。该操作响应方法可以用于使客户端对加载于该浏览器中的网页中的预定操作进行响应。该操作响应方法可以包括:Referring to FIG. 8, a flowchart of a method for an operation response method provided by an embodiment of the present application is shown. The operational response method can be used to cause the client to respond to predetermined operations in web pages loaded in the browser. The operational response method can include:
步骤601,浏览器加载并显示网页;Step 601, the browser loads and displays the webpage;
具体的,用户可以手动打开浏览器,并在浏览器中输入指定网页的地址,或者从其它网页页面中点击相关链接进行跳转,加载并显示该指定网页。或者,当客户端的主程序已启动时,若客户端的界面中显示有指定网页的地址,且该指定网页不是客户端的内嵌网页,则当用户点击该地址的链接时,客户端可以通过操作系统API(Application Programming Interface,应用程序编程接口)调用浏览器加载并显示该指定网页。Specifically, the user can manually open the browser, enter the address of the specified webpage in the browser, or click the relevant link from other webpage pages to jump, load and display the specified webpage. Alternatively, when the client's main program is started, if the address of the specified webpage is displayed in the interface of the client, and the specified webpage is not the embedded webpage of the client, when the user clicks the link of the address, the client can pass the operating system. The API (Application Programming Interface) invokes the browser to load and display the specified web page.
步骤602,浏览器从当前显示的网页获取第二网页跳转信息,该第二网页跳转消息为该网页在可操作对象上接收到预定操作后生成的消息;Step 602: The browser acquires second webpage jump information from the currently displayed webpage, where the second webpage jump message is a message generated after the webpage receives the predetermined operation on the operable object;
该网页中包含与客户端对应的可操作对象,可操作对象可以是客户端提供的网络业务的图标或者链接。比如,某业务的图标或者链接,用户点击该图标或者链接时,网页可以生成相应的第二网页跳转信息,浏览器根据该第二网页跳转信息提取操作指令。The webpage includes an operable object corresponding to the client, and the operable object may be an icon or a link of the network service provided by the client. For example, when an icon or a link of a certain service is clicked, the webpage may generate a corresponding second webpage jump information, and the browser extracts an operation instruction according to the second webpage jump information.
其中,该第二网页跳转信息可以是网页请求跳转的地址或者网页消息。The second webpage jump information may be an address of the webpage requesting jump or a webpage message.
步骤603,浏览器从该第二网页跳转信息中提取到操作指令;Step 603: The browser extracts an operation instruction from the second webpage jump information.
具体的,浏览器可以从该第二网页跳转信息中提取命令代号,并根据该命令代号生成该操作指令。Specifically, the browser may extract a command code from the second webpage jump information, and generate the operation instruction according to the command code.
开发人员在开发网页时,可以在网页中的可操作对象对应的信息中写入相应的命令代号,用户对可操作对象进行预定操作,比如点击图标或者链接时,网页生成包含有该命令代号的第二网页跳转信息,该命令代号可以设置为固定格式的字符,浏览器监听到该第二网页跳转信息后,可以从该第二网页跳转信息中查找固定格式的字符并提取为命令代号。浏览器本地还存储有各个命令代号与对应的操作指令之间的对应关系,浏览器根据该命令代号生成该操作指令,其中,操作指令包括但不限于未携带命令行参数的启动指令、携带命令行参数的启动指令、业务开启指令、业务关闭指令或者升级指令等。 When the developer develops the webpage, the corresponding command code may be written in the information corresponding to the operable object in the webpage, and the user performs a predetermined operation on the operable object, for example, when the icon or the link is clicked, the webpage generates the command code containing the command. The second webpage jump information, the command code may be set to a fixed format character, and after the browser listens to the second webpage jump information, the browser may search for the fixed format character from the second webpage jump information and extract the command as a command. Code. The browser locally stores a correspondence between each command code and a corresponding operation instruction, and the browser generates the operation instruction according to the command code, where the operation instruction includes but is not limited to a start command and a carry command that do not carry the command line parameter. A start command, a service open command, a service close command, or an upgrade command of a line parameter.
比如,以第二网页跳转信息为网页请求跳转的地址为例,假设第二网页跳转信息中的命令代号的固定格式为“cmd:ooxxxx”,其中,“oo”对应于业务类型,比如启动、退出、升级等,“xxxx”对应于指定业务的业务号或者软件版本号,比如某一用户互动业务的标识或者客户端主程序的程序版本号,浏览器监听到该第二网页跳转消息并提取出命令代号为“ooxxxx”,并生成操作指令。For example, taking the second webpage jump information as the address of the webpage requesting the jump, for example, assuming that the fixed format of the command code in the second webpage jump information is “cmd:ooxxxx”, where “oo” corresponds to the service type. For example, start, exit, upgrade, etc., "xxxx" corresponds to the service number or software version number of the specified service, such as the identifier of a user interaction service or the program version number of the client main program, and the browser listens to the second page jump. Transfer the message and extract the command code as "ooxxxx" and generate an operation command.
步骤604,浏览器通过自身或者内置插件查找注册表,获得预定地址;Step 604, the browser searches the registry through itself or a built-in plug-in to obtain a predetermined address;
具体的,终端的操作系统安装客户端时,还可以一并安装客户端的外壳程序,并将客户端的外壳程序的地址写入注册表,浏览器在生成操作指令后,从注册表中查找该客户端的外壳程序的地址作为预定地址。Specifically, when the terminal operating system installs the client, the client shell may be installed together, and the address of the client shell is written into the registry, and the browser searches the registry for the client after generating the operation instruction. The address of the shell of the end is used as the predetermined address.
步骤605,浏览器通过该预定地址将该操作指令发送给该客户端;Step 605: The browser sends the operation instruction to the client by using the predetermined address.
浏览器根据该预定地址以命令行参数的方式启动该客户端的外壳程序,该命令行参数中可以携带该操作指令。客户端的外壳程序被启动后,可以将操作指令转发给客户端的主程序或者根据操作指令对客户端的主程序进行控制。The browser starts the client's shell in a command line parameter according to the predetermined address, and the command line parameter may carry the operation instruction. After the client's shell is started, the operation instructions can be forwarded to the client's main program or the client's main program can be controlled according to the operation instructions.
步骤606,客户端根据该操作指令执行相应的操作。Step 606: The client performs a corresponding operation according to the operation instruction.
当客户端的主程序未启动时,若该操作指令为未携带有命令行参数的启动指令,则启动该客户端的主程序;若该操作指令为携带有命令行参数的启动指令,则启动该客户端的主程序,并执行该命令行参数所对应的操作。其中,该命令行参数对应的操作可以包括但不限于开启指定业务、结束指定业务或者对客户端的主程序进行在线升级等。When the main program of the client is not started, if the operation instruction is a startup instruction that does not carry a command line parameter, the main program of the client is started; if the operation instruction is a startup instruction carrying a command line parameter, the client is started. The main program of the terminal, and the operation corresponding to the command line parameters. The operation corresponding to the command line parameter may include, but is not limited to, opening a specified service, ending a specified service, or performing online upgrade of a client's main program.
当客户端的主程序已经启动时,若该操作指令为业务开启指令,则控制该客户端的主程序开启指定业务;若该操作指令为业务关闭指令,则控制该客户端的主程序结束指定业务;若该操作指令为升级指令,则控制对该客户端的主程序进行在线升级。When the main program of the client has been started, if the operation instruction is a service opening instruction, the main program controlling the client starts the specified service; if the operation instruction is a business shutdown instruction, the main program controlling the client ends the designated service; The operation instruction is an upgrade instruction, and then the online update of the main program of the client is controlled.
在实际应用中,浏览器生成操作指令时,可以将从第二网页跳转信息中提取出的命令代号作为操作指令,携带在命令行参数中发送给浏览器的外壳程序,或者,浏览器也可以根据命令代号生成客户端的主程序可直接执行的操作指令,由外壳程序转发给客户端的主程序。In an actual application, when the browser generates an operation instruction, the command code extracted from the second webpage jump information may be used as an operation instruction, and carried in a command line parameter to be sent to the browser shell, or the browser may also The operation instruction directly executable by the client's main program can be generated according to the command code, and the shell program forwards the program to the client.
需要说明的是,在浏览器生成操作指令时,客户端的主程序可以处于未启动状态,也可以处于启动状态。当客户端的主程序处于启动状态时,可以只启动一个用户进程,也可以同时启动多个用户进程;具体比如,用户启动客户端 时,可以通过用户名和登录密码进行登录,同一个客户端的主程序可以同时支持多个用户名登录,每个用户名对应一个独立的用户进程。It should be noted that when the browser generates an operation instruction, the client's main program may be in an inactive state or in a startup state. When the client's main program is in the startup state, you can start only one user process, or you can start multiple user processes at the same time; for example, the user starts the client. When logging in, the user name and login password can be used to log in. The main program of the same client can simultaneously support multiple user name logins, and each user name corresponds to an independent user process.
当浏览器将命令代号作为操作指令发送给客户端的外壳程序时,客户端的外壳程序可以通过读写系统共享内存技术查询当前是否启动有用户进程。若客户端的主程序未启动用户进程,则客户端的外壳程序可以先启动客户端的主程序,再向客户端的主程序启动的用户进程发送可执行的指令,由该用户进程执行相应的操作;或者,客户端的外壳程序可以通过命令行参数的形式启动客户端的主进程,使客户端的主程序启动用户进程后直接执行相应的操作。若客户端的主程序已经启动,且已经开启了至少一个用户进程,则浏览器向用户显示提示框,提示用户选择哪一个用户进程来执行相应的操作,并向用户选择的用户进程发送可直接执行的指令。When the browser sends the command code as an operation command to the client's shell, the client's shell can query whether the user process is currently started by reading and writing the system shared memory technology. If the client's main program does not start the user process, the client's shell program may first start the client's main program, and then send an executable instruction to the user process initiated by the client's main program, and the user process performs the corresponding operation; or The client shell can start the client's main process in the form of command line parameters, so that the client's main program can directly perform the corresponding operations after starting the user process. If the client's main program has been started and at least one user process has been started, the browser displays a prompt box to the user, prompting the user to select which user process to perform the corresponding operation, and sending the user process to the user-selected user process can be directly executed. Instructions.
当浏览器根据命令代号生成客户端的主程序可直接执行的操作指令时,客户端的外壳程序将接收到的操作指令直接转发给客户端的主程序。比如,浏览器通过读写系统共享内存技术查询当前是否启动有用户进程。若客户端的主程序未启动用户进程,则浏览器可以分别生成未携带有命令行参数的启动指令和命令代码对应的业务指令,业务指令可以包括业务开启指令、业务关闭指令或者升级指令等,浏览器首先将启动指令发送给客户端的外壳程序,由客户端的外壳程序将启动指令发送给客户端的主程序,并由客户端的主程序启动用户进程,用户进程启动完成后,浏览器再将业务指令发送给客户端的外壳程序,由客户端的外壳程序将业务指令发送给客户端的主程序启动的用户进程,由该用户进程执行相应的操作;或者,若客户端的主程序未启动用户进程,则浏览器可以生成携带有命令行参数的启动指令,并将该启动指令发送给客户端的外壳程序,客户端的外壳程序将该启动指令发送给客户端的主程序,客户端的主程序根据该启动指令启动用户进程并控制用户进程执行相应的操作。若客户端的主程序已经启动至少一个用户进程,则浏览器生成业务指令,并提示用户选择哪一个用户进程来执行相应的操作,并将生成的业务指令发送给客户端的外壳程序,由客户端的外壳程序向用户选择的用户进程发送该业务指令。When the browser generates an operation instruction directly executable by the client's main program according to the command code, the client's shell directly forwards the received operation instruction to the client's main program. For example, the browser queries whether the user process is currently started by reading and writing the system shared memory technology. If the main program of the client does not start the user process, the browser may separately generate a startup instruction and a service instruction corresponding to the command code that do not carry the command line parameter, and the service instruction may include a service start instruction, a service shutdown instruction, or an upgrade instruction, etc. The device first sends a startup command to the client's shell, and the client's shell sends the startup command to the client's main program, and the client's main program starts the user process. After the user process is started, the browser sends the service command. To the client's shell, the client's shell sends the business instructions to the client's main program-initiated user process, and the user process performs the corresponding operation; or, if the client's main program does not start the user process, the browser can Generating a startup instruction carrying a command line parameter, and sending the startup instruction to the client's shell, the client's shell sends the startup instruction to the client's main program, and the client's main program starts the user process according to the startup instruction and controls User entry The appropriate action. If the client's main program has started at least one user process, the browser generates a business instruction and prompts the user to select which user process to perform the corresponding operation, and sends the generated business instruction to the client's shell, by the client's shell. The program sends the business instruction to the user process selected by the user.
请参见图9,其示出了本申请一个实施例提供的操作响应方法的方法流程图。该方法的处理流程可以包括如下的步骤:Referring to FIG. 9, a flowchart of a method for an operation response method provided by an embodiment of the present application is shown. The processing flow of the method may include the following steps:
步骤701,获取操作指令,该操作指令是在接收到对应当前显示的网页上 可操作对象的预定操作时,从上述网页中获取的与可操作对象对应的操作指令;Step 701: Acquire an operation instruction, where the operation instruction is received on a webpage corresponding to the current display An operation instruction corresponding to the operable object acquired from the webpage when the predetermined operation of the object is operable;
步骤702,根据操作指令执行相应的操作。 Step 702, performing a corresponding operation according to the operation instruction.
综上所述,本申请实施例提供的操作响应方法,通过获取网页在可操作对象上接收到预定操作后,从该网页中获取到与可操作对象对应的操作指令,并将操作指令发送给客户端,由客户端根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the operation response method provided by the embodiment of the present application obtains an operation instruction corresponding to the operable object from the webpage after receiving the predetermined operation on the operable object by acquiring the webpage, and sends the operation instruction to the operation instruction. The client performs the corresponding operation according to the operation instruction, and solves the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. To achieve the purpose of simplifying the operation process and saving computing resources and operation time.
请参见图9,其示出了本申请一个实施例提供的操作响应方法的方法流程图。该方法可以用于某客户端中,其中,该客户端可以是任意客户端,例如,团队语音工具的客户端、即时通讯客户端等。Referring to FIG. 9, a flowchart of a method for an operation response method provided by an embodiment of the present application is shown. The method can be used in a client, wherein the client can be any client, for example, a client of a team voice tool, an instant messaging client, and the like.
下面将结合实施方式,对图9所示的处理流程进行详细的说明,内容可以如下:The processing flow shown in FIG. 9 will be described in detail below with reference to the embodiments, and the content can be as follows:
步骤701,获取操作指令,该操作指令是在接收到对应当前显示的网页上可操作对象的预定操作时,从上述网页中获取的与可操作对象对应的操作指令;Step 701: Acquire an operation instruction, where the operation instruction is an operation instruction corresponding to the operable object acquired from the webpage when receiving a predetermined operation corresponding to the operable object on the currently displayed webpage;
其中,网页可以是客户端的内嵌网页或者使用外部的浏览器开启的网页,内嵌网页可以是由技术人员通过某些编程语言编写,存储在客户端的安装包中,用户在安装该客户端时,可以将内嵌网页随客户端安装在终端的操作系统中;内嵌网页中可以设置有多个可操作对象,可以对每个可操作对象设置一个触发其执行的操作,作为预定操作;可操作对象可以是客户端提供的某网络业务的图标或者链接,可以为每个可操作对象设置相应的信息,如,操作指令等,该信息可以网页代码的形式设置在网页中;如果客户端中没有内嵌网页,则技术人员还可以开发应用于浏览器中的网页,该网页中也可以设置有多个可操作对象。The webpage may be an embedded webpage of the client or a webpage opened by using an external browser. The embedded webpage may be written by a technician in some programming languages and stored in a client installation package, when the user installs the client. The embedded webpage can be installed in the operating system of the terminal with the client; the embedded webpage can be provided with a plurality of operable objects, and an operation for triggering the execution of the operable object can be set as a predetermined operation; The operation object may be an icon or a link of a network service provided by the client, and may set corresponding information for each operable object, such as an operation instruction, etc., and the information may be set in a webpage in the form of a webpage code; if the client is in the client Without an embedded web page, the technician can also develop a web page that is applied to the browser, and the web page can also be provided with multiple operable objects.
在实施中,对于客户端中包含有内嵌网页的情况,客户端可以监听内嵌网页发送的网页消息,从而可以获取内嵌网页发送的操作指令,具体地,用户启动客户端的主程序后,终端可以显示客户端界面,客户端与服务器进行交互并进行同步更新时,可以从服务器获取内嵌网页的更新数据,终端可以在客户端 界面中显示该内嵌网页的链接,当用户点击该链接后,客户端可以显示内嵌网页,如果预定操作为点击操作,则用户点击内嵌网页中的可操作对象时,内嵌网页可以获取其存储的与该可操作对象对应的操作指令,生成相应的消息,向服务器发送,此时,客户端监听到内嵌网页发出该消息后,可以拦截该消息,并判断该消息中是否携带有操作指令,如果有,则可以获取该操作指令,如果没有,则可以将该消息发送给服务器。In the implementation, in the case that the client includes the embedded webpage, the client can listen to the webpage message sent by the embedded webpage, so that the operation instruction of the embedded webpage sending can be obtained, specifically, after the user starts the main program of the client, The terminal can display the client interface. When the client interacts with the server and performs synchronous update, the update data of the embedded webpage can be obtained from the server, and the terminal can be in the client. The link of the embedded webpage is displayed in the interface. When the user clicks the link, the client can display the embedded webpage. If the predetermined operation is a click operation, the embedded webpage can be obtained when the user clicks the operable object in the embedded webpage. The stored operation instruction corresponding to the operable object generates a corresponding message and sends the message to the server. At this time, after the client listens to the embedded webpage and sends the message, the client can intercept the message and determine whether the message carries The operation instruction, if any, can obtain the operation instruction, and if not, the message can be sent to the server.
对于客户端中不包含有内嵌网页的情况,用户可以手动打开浏览器,并在浏览器中输入指定网页的地址,或者从其它网页页面中点击相关链接后跳转到指定网页,这样,浏览器可以显示该指定网页,浏览器可以对用户在指定网页中操作(如点击操作等)进行检测,如果预定操作为点击操作,则用户点击指定网页中的可操作对象时,浏览器可以检测到该点击操作,可以预先为可操作对象设置一个对应的操作指令,此时,浏览器可以从指定网页中获取可操作对象对应的操作指令,并通过某些方式发送给客户端,客户端可以接收该操作指令。For the case where the client does not include the embedded webpage, the user can manually open the browser and input the address of the specified webpage in the browser, or click the relevant link from other webpage pages and jump to the designated webpage, so that browsing The browser can display the specified webpage, and the browser can detect the operation of the user in the specified webpage (such as a click operation, etc.). If the predetermined operation is a click operation, the browser can detect when the user clicks the operable object in the specified webpage. The click operation can preset a corresponding operation instruction for the operable object. At this time, the browser can obtain an operation instruction corresponding to the operable object from the specified webpage, and send the operation instruction to the client through some methods, and the client can receive the operation instruction. The operation instruction.
可选地,对于上述浏览器开启指定网页的处理方式可以多种多样,以下提供一种可选的处理方式,具体可以包括以下内容:客户端通过操作系统API调用浏览器加载并显示网页。Optionally, the method for processing the specified webpage by using the browser may be various. The following provides an optional processing manner, which may include the following content: the client invokes the browser through the operating system API to load and display the webpage.
在实施中,如果客户端的界面中显示有上述指定网页的地址,且该指定网页不是客户端的内嵌网页,则当用户点击该地址的链接时,客户端可以通过操作系统API提供的调用浏览器的接口,调用外部的浏览器,并可以将指定网页的地址输入到浏览器中,浏览器可以加载并显示该指定网页。In the implementation, if the address of the specified webpage is displayed in the interface of the client, and the specified webpage is not the embedded webpage of the client, when the user clicks the link of the address, the client can invoke the browser provided by the operating system API. The interface calls an external browser and can input the address of the specified web page into the browser, and the browser can load and display the specified web page.
可选地,上述步骤701的处理方式可以多种多样,以下提供一种可选的处理方式可以包括以下两种情况:Optionally, the processing manner of the foregoing step 701 can be various. The following provides an optional processing manner, which may include the following two situations:
情况一,客户端从客户端的内嵌网页生成的网页消息中提取操作指令,该网页消息是内嵌网页在页面上的可操作对象接收到预定操作后生成的。In the first case, the client extracts an operation instruction from the webpage message generated by the embedded webpage of the client, and the webpage message is generated after the operable object of the embedded webpage receives the predetermined operation on the page.
其中,网页消息可以是内嵌网页发送的任意消息,如网页消息可以为网页请求跳转的地址消息等。The webpage message may be any message sent by the embedded webpage, for example, the webpage message may be an address message for the webpage requesting to jump.
在实施中,开发人员在开发内嵌网页时,可以为其中的可操作对象设置相应的信息,该信息中可以包括操作指令等,该信息可以网页代码的形式表示,用户点击内嵌网页中的可操作对象时,触发内嵌网页在上述信息中获取对应的操作指令,生成网页消息,在内嵌网页将该网页消息发送时,客户端可以监听 到内嵌网页发送网页消息的操作,客户端可以截获该网页消息,并检测其中是否包含有预设的操作指令,如果该网页消息中包含有该操作指令,客户端可以提取该操作指令,相应的处理过程可以参见上述相关内容,在此不再赘述。In the implementation, when the developer develops the embedded webpage, the developer may set corresponding information for the operable object therein, and the information may include an operation instruction, etc., the information may be expressed in the form of a webpage code, and the user clicks on the embedded webpage. When the object is operable, the embedded webpage is triggered to obtain a corresponding operation instruction in the above information, and a webpage message is generated, and the client can monitor when the webpage message is sent by the embedded webpage. When the embedded webpage sends a webpage message, the client may intercept the webpage message and detect whether the preset operation instruction is included. If the webpage message includes the operation instruction, the client may extract the operation instruction, correspondingly For the processing of the above, refer to the related content above, and details are not described herein again.
可选地,上述情况一的处理方式可以多种多样,以下提供一种可选的处理方式,具体可以包括以下步骤:Optionally, the processing manner of the foregoing case 1 may be various. The following provides an optional processing manner, which may specifically include the following steps:
步骤一,当检测到客户端的内嵌网页生成网页消息时,客户端从该网页消息中提取命令代号;Step 1: When detecting the embedded webpage generating webpage message of the client, the client extracts the command code from the webpage message;
其中,命令代号可以是固定格式的字符串,如cmd:ooxxxx,其中,“oo”可以表示业务类型,比如启动、退出、升级等,“xxxx”可以表示指定业务的业务号或者客户端版本号等。The command code can be a fixed-format string, such as cmd:ooxxxx, where “oo” can indicate a service type, such as start, exit, upgrade, etc. “xxxx” can represent the service number or client version number of the specified service. Wait.
在实施中,开发人员在开发内嵌网页时,可以在内嵌网页中的可操作对象对应的信息中写入相应的命令代号,用户对可操作对象进行预定操作,比如点击图标或者链接时,内嵌网页生成包含有该命令代号的网页消息,客户端监听并截获该网页消息后,可以在该网页消息中查找,确定其中是否包含固定格式的字符串,如果包含,则将其提取为命令代号。In the implementation, when the developer develops the embedded webpage, the corresponding command code may be written into the information corresponding to the operable object in the embedded webpage, and the user performs a predetermined operation on the operable object, such as clicking an icon or a link. The embedded webpage generates a webpage message containing the command code. After the client listens and intercepts the webpage message, the client can search for the webpage message to determine whether the string contains a fixed format, and if it is included, extract the command as a command. Code.
步骤二,客户端根据命令代号在预设对应关系中查找得到操作指令,预设对应关系是不同命令代号与不同操作指令之间的对应关系。Step 2: The client searches for the operation instruction according to the command code in the preset correspondence relationship, and the preset correspondence relationship is a correspondence between different command codes and different operation instructions.
在实施中,客户端中可以存储有命令代号与操作指令的对应关系,客户端得到命令代号(可以称为第一命令代号)后,可以在上述命令代号与操作指令的对应关系中查找,得到第一命令代号对应的操作指令,其中,操作指令包括但不限于业务开启指令、业务关闭指令或者升级指令等。In the implementation, the client can store the correspondence between the command code and the operation instruction. After the client obtains the command code (which can be called the first command code), the client can search for the corresponding relationship between the command code and the operation command. The operation command corresponding to the first command code, wherein the operation instruction includes but is not limited to a service opening instruction, a service closing instruction, or an upgrade instruction.
情况二,客户端接收外部的浏览器发送的操作指令,该操作指令是浏览器在接收到对应当前显示的网页上可操作对象的预定操作时从可操作对象对应的网页执行代码中获取的。In the second case, the client receives an operation instruction sent by an external browser, and the operation instruction is obtained by the browser from the webpage execution code corresponding to the operable object when receiving the predetermined operation corresponding to the operable object on the currently displayed webpage.
在实施中,开发人员在开发指定网页时,可以为其中的可操作对象设置相应的信息,该信息中可以包括操作指令等,用户点击指定网页中的可操作对象时,浏览器可以检测到对可操作对象的点击操作,然后,可以获取可操作对象对应的网页执行代码中的操作指令,并通过某些传输方式发送给客户端,客户端可以接收该操作指令。In the implementation, when the developer develops the specified webpage, the developer may set corresponding information for the operable object therein, and the information may include an operation instruction, etc., when the user clicks on the operable object in the specified webpage, the browser may detect the pair. The click operation of the object can be operated, and then the operation instruction in the webpage execution code corresponding to the operable object can be obtained, and sent to the client through some transmission mode, and the client can receive the operation instruction.
可选地,上述情况二的处理方式可以多种多样,以下提供一种可选的处理方式,具体可以包括以下内容:客户端接收外部的浏览器通过预定地址发送的 操作指令,该预定地址是使用浏览器自身或者内置插件,通过网页中记录的可操作对象对应的客户端标识查找注册表后得到的。Optionally, the processing manner of the foregoing case 2 may be various. The following provides an optional processing manner, which may specifically include the following content: the client receives an external browser and sends the message through a predetermined address. The operation instruction is obtained by using the browser itself or a built-in plug-in to search the registry through the client identifier corresponding to the operable object recorded in the webpage.
在实施中,终端的操作系统安装客户端时,还可以一并安装客户端的外壳程序,并将客户端的外壳程序的安装地址写入注册表,浏览器在生成操作指令后,可以获取上述指定网页的网页代码中记录的相应客户端标识,可以通过自身或用于提供相应应用程序接口的插件,在注册表中查找,得到该客户端标识对应的客户端的外壳程序的地址,作为预定地址,并可以通过该预定地址以命令行参数的方式启动该客户端的外壳程序,该命令行参数中可以携带该操作指令,客户端的外壳程序被启动后,可以将操作指令转发给客户端的主程序。In the implementation, when the operating system of the terminal installs the client, the client shell may be installed together, and the installation address of the client shell is written into the registry, and the browser may obtain the specified webpage after generating the operation instruction. The corresponding client identifier recorded in the webpage code can be searched in the registry by itself or a plug-in for providing the corresponding application program interface, and the address of the client shell corresponding to the client identifier is obtained as a predetermined address, and The shell of the client may be started by using the predetermined address in a command line parameter. The command line parameter may carry the operation instruction, and after the client shell is started, the operation instruction may be forwarded to the client main program.
步骤702,根据操作指令执行相应的操作。 Step 702, performing a corresponding operation according to the operation instruction.
在实施中,操作指令可以包括多种,如业务开启指令、业务关闭指令、升级指令等,当该操作指令为业务开启指令时,则控制客户端的主程序开启指定业务;当该操作指令为业务关闭指令时,则控制客户端的主程序结束指定业务;当该操作指令为升级指令时,则对客户端的主程序进行在线升级等。In an implementation, the operation instruction may include multiple types, such as a service opening instruction, a service closing instruction, an upgrade instruction, and the like. When the operation instruction is a service opening instruction, the main program of the controlling client starts a specified service; when the operation instruction is a service When the instruction is closed, the main program of the control client ends the specified service; when the operation instruction is the upgrade instruction, the main program of the client is upgraded online.
可选地,当客户端的主程序未启动时,如果该操作指令为未携带有命令行参数的启动指令,则启动该客户端的主程序;如果该操作指令为携带有命令行参数的启动指令,则启动该客户端的主程序,并执行该命令行参数所对应的操作。当客户端的主程序已经启动时,如果该操作指令为业务开启指令,则控制该客户端的主程序开启指定业务;如果该操作指令为业务关闭指令,则控制该客户端的主程序结束指定业务;如果该操作指令为升级指令,则控制对该客户端的主程序进行在线升级。操作指令可以多种多样,并不限于上述四种,对于其他操作指令,可以参见上述相关内容,在此不再赘述。Optionally, when the main program of the client is not started, if the operation instruction is a startup instruction that does not carry a command line parameter, the main program of the client is started; if the operation instruction is a startup instruction carrying a command line parameter, Then start the client's main program and execute the operation corresponding to the command line parameters. When the main program of the client has been started, if the operation instruction is a service opening instruction, the main program controlling the client starts the specified service; if the operation instruction is a business shutdown instruction, the main program controlling the client ends the designated service; The operation instruction is an upgrade instruction, and then the online update of the main program of the client is controlled. The operation instructions may be various, and are not limited to the above four types. For other operation instructions, refer to the above related content, and details are not described herein again.
综上所述,本申请实施例提供的操作响应方法,通过获取网页在可操作对象上接收到预定操作后,从该网页中获取到与可操作对象对应的操作指令,并将操作指令发送给客户端,由客户端根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the operation response method provided by the embodiment of the present application obtains an operation instruction corresponding to the operable object from the webpage after receiving the predetermined operation on the operable object by acquiring the webpage, and sends the operation instruction to the operation instruction. The client performs the corresponding operation according to the operation instruction, and solves the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. To achieve the purpose of simplifying the operation process and saving computing resources and operation time.
请参见图10,其示出了本申请一个实施例提供的操作响应方法的方法流程图。该方法的处理流程可以包括如下的步骤: Referring to FIG. 10, a flowchart of a method for an operation response method provided by an embodiment of the present application is shown. The processing flow of the method may include the following steps:
步骤801,加载并显示网页,该网页中包含与客户端对应的可操作对象; Step 801, loading and displaying a webpage, where the webpage includes an operable object corresponding to the client;
步骤802,当接收到对应可操作对象的预定操作时,从该网页中获取可操作对象对应的操作指令; Step 802, when receiving a predetermined operation corresponding to the operable object, acquiring an operation instruction corresponding to the operable object from the webpage;
步骤803,将操作指令发送给客户端,由客户端根据操作指令执行相应的操作。Step 803: Send an operation instruction to the client, and the client performs a corresponding operation according to the operation instruction.
综上所述,本申请实施例提供的操作响应方法,通过获取网页在可操作对象上接收到预定操作后,从该网页中获取到与可操作对象对应的操作指令,并将操作指令发送给客户端,由客户端根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the operation response method provided by the embodiment of the present application obtains an operation instruction corresponding to the operable object from the webpage after receiving the predetermined operation on the operable object by acquiring the webpage, and sends the operation instruction to the operation instruction. The client performs the corresponding operation according to the operation instruction, and solves the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. To achieve the purpose of simplifying the operation process and saving computing resources and operation time.
请参见图10,其示出了本申请一个实施例提供的操作响应方法的方法流程图。该方法可以用于某客户端中,也可以用于浏览器中,其中,该客户端可以是包含有内嵌网页的任意客户端,例如,团队语音工具的客户端、即时通讯客户端等。可以对上述两种不同的应用场景分别结合具体实施方式进行详细说明,内容可以如下:Referring to FIG. 10, a flowchart of a method for an operation response method provided by an embodiment of the present application is shown. The method can be used in a client or in a browser, where the client can be any client that includes an embedded webpage, for example, a client of a team voice tool, an instant messaging client, and the like. The above two different application scenarios may be described in detail in combination with specific implementation manners, and the content may be as follows:
对于上述步骤801~步骤803用于浏览器中的场景,上述步骤801~步骤803可以包括以下内容:For the scenario in the browser, the foregoing steps 801 to 803 may include the following:
步骤一,浏览器加载并显示网页,该网页中包含与客户端对应的可操作对象;Step 1: The browser loads and displays a webpage, and the webpage includes an operable object corresponding to the client;
在实施中,用户可以采用多种方式,通过浏览器显示某页面,例如,用户可以手动打开浏览器,并在浏览器中输入指定网页的地址,或者从其它网页的页面中点击相关链接后跳转到指定网页,这样,浏览器可以加载并显示该指定网页,其中,技术人员可以在该指定网页中设置多个可操作对象,用于对客户端进行相应的操作。In the implementation, the user can display a certain page through the browser in various ways. For example, the user can manually open the browser, input the address of the specified webpage in the browser, or click the relevant link from the pages of other webpages to jump. Go to the specified web page, so that the browser can load and display the specified web page, wherein the technician can set a plurality of operable objects in the specified web page for corresponding operations on the client.
可选地,对于浏览器加载并显示网页的处理方式可以多种多样,以下提供一种可选的处理方式,具体可以包括以下内容:浏览器在客户端通过操作系统API的调用下加载并显示网页。Optionally, the manner in which the browser loads and displays the webpage can be various. The following provides an optional processing manner, which may include the following content: the browser loads and displays the client through the call of the operating system API. Web page.
具体的处理过程可以参见上述相关内容,在此不再赘述。For specific processing, refer to the related content above, and details are not described herein again.
步骤二,当接收到对应可操作对象的预定操作时,浏览器获取网页中可操 作对象对应的网页执行代码中记录的操作指令;Step 2: When receiving a predetermined operation corresponding to the operable object, the browser obtains a webpage operable An operation instruction recorded in a webpage execution code corresponding to the object;
在实施中,技术人员可以对上述指定页面中每个可操作对象设置一个触发其执行的操作,作为预定操作,也可以为每个可操作对象设置相应的信息,其中,该信息中可以包括操作指令等,该信息可以网页执行代码的形式设置在网页中。如果预定操作为点击操作,则用户点击指定网页中的可操作对象时,触发浏览器执行可操作对象对应网页执行代码,网页执行代码中记录有操作指令,此时,浏览器可以获取网页执行代码中记录的操作指令。In an implementation, the technician may set an operation for triggering its execution on each operable object in the specified page as a predetermined operation, or may set corresponding information for each operable object, wherein the information may include an operation. Instructions, etc., the information can be set in a web page in the form of a web page execution code. If the predetermined operation is a click operation, when the user clicks on the operable object in the specified webpage, the browser is triggered to execute the executable webpage execution code of the operable object, and the operation instruction is recorded in the webpage execution code. At this time, the browser can obtain the webpage execution code. The operation instructions recorded in .
步骤三,浏览器将操作指令发送给客户端,由客户端根据操作指令执行相应的操作。In step 3, the browser sends the operation instruction to the client, and the client performs the corresponding operation according to the operation instruction.
在实施中,技术人员可以对浏览器进行相应的设置,如可以将客户端接收信息的接口提供给浏览器等,这样,浏览器可以向客户端发送相关信息,当浏览器获取到操作指令后,可以将该操作指令通过上述相关接口发送给客户端,客户端可以接收该操作指令,并通过该操作指令进行相应的操作,具体可以参见上述相关内容,在此不再赘述。In the implementation, the technician can set the browser accordingly, for example, the interface for receiving the information from the client can be provided to the browser, etc., so that the browser can send relevant information to the client, when the browser obtains the operation instruction. The operation instruction can be sent to the client through the related interface, and the client can receive the operation instruction, and perform the corresponding operation by using the operation instruction. For details, refer to the related content, and details are not described herein again.
可选地,上述步骤三的处理方式可以多种多样,以下提供一种可选的处理方式,具体可以包括以下内容:浏览器通过该网页中记录的可操作对象对应的客户端标识,查找注册表,获得预定地址,并通过预定地址将操作指令发送给所述客户端。Optionally, the processing manner of the foregoing step 3 may be various. The following provides an optional processing manner, which may include the following content: the browser searches for the registration by using the client identifier corresponding to the operable object recorded in the webpage. A table obtains a predetermined address and transmits an operation instruction to the client through a predetermined address.
在实施中,终端的操作系统安装客户端时,还可以一并安装客户端的外壳程序,并将客户端的外壳程序的安装地址写入注册表,浏览器获取到操作指令后,浏览器可以继续执行上述网页执行代码,技术人员可以通过某些方式,使得浏览器可以具有读取终端的操作系统中的相关数据的权限,此时,浏览器在终端的操作系统的注册表中查找,得到该客户端标识对应的客户端的外壳程序的地址,作为预定地址,并可以通过该预定地址以命令行参数的方式启动该客户端的外壳程序,该命令行参数中可以携带该操作指令,客户端的外壳程序被启动后,可以将操作指令转发给客户端的主程序。In the implementation, when the terminal's operating system installs the client, the client's shell can also be installed together, and the installation address of the client's shell is written into the registry, and the browser can continue to execute after the browser obtains the operation instruction. The above webpage executes the code, and the technician can use some means to enable the browser to have the right to read the relevant data in the operating system of the terminal. At this time, the browser searches in the registry of the operating system of the terminal to obtain the client. The address of the client's shell corresponding to the end identifier is used as a predetermined address, and the shell of the client can be started by using the predetermined address in the command line parameter. The command line parameter can carry the operation instruction, and the client shell is After startup, the operation instructions can be forwarded to the client's main program.
可选地,对于上述获得预定地址的处理方式可以多种多样,以下提供一种可选的处理方式,可以包括以下内容:浏览器使用自身或者内置插件,通过该网页中记录的可操作对象对应的客户端标识,查找注册表,获得预定地址。Optionally, the processing manner for obtaining the predetermined address may be various. The following provides an optional processing manner, which may include the following content: the browser uses itself or a built-in plug-in to correspond to the operable object recorded in the webpage. The client ID, find the registry, and get the predetermined address.
在实施中,浏览器获取到操作指令后,浏览器可以继续执行上述网页执行代码,此时,可以触发浏览器加载相应的插件,通过该插件提供的应用程序的 接口读取终端的操作系统中的相关数据,具体的,该插件可以在终端的操作系统的注册表中查找,得到该客户端标识对应的客户端的外壳程序的地址,作为预定地址,或者,技术人员可以在上述网页执行代码中添加可以进入终端的操作系统中的注册表的接口,此时,浏览器可以通过该接口在注册表中查找,得到该客户端标识对应的客户端的外壳程序的地址,作为预定地址。In the implementation, after the browser obtains the operation instruction, the browser can continue to execute the above-mentioned webpage execution code, and at this time, the browser can be triggered to load the corresponding plug-in, and the application provided by the plug-in The interface reads related data in the operating system of the terminal. Specifically, the plug-in can be searched in the registry of the operating system of the terminal, and obtain the address of the client shell corresponding to the client identifier, as a predetermined address, or technology. The person can add an interface that can enter the registry in the operating system of the terminal in the above webpage execution code. At this time, the browser can look up in the registry through the interface, and obtain the address of the client shell corresponding to the client identifier. , as the predetermined address.
可选地,对于不同的操作指令,客户端可以执行不同的操作,操作指令和与该操作指令对应的操作可以多种多样,以下提供了可选的操作指令和对应的操作,具体可以包括以下内容:操作指令可以为未携带有命令行参数的启动指令;上述根据操作指令执行相应的操作,包括:启动客户端的主程序;或者,操作指令可以为携带有命令行参数的启动指令;上述根据操作指令执行相应的操作,包括:启动客户端的主程序,并执行命令行参数所对应的操作;或者,操作指令可以为业务开启指令;上述根据操作指令执行相应的操作,包括:控制客户端的主程序开启指定业务;或者,操作指令可以为业务关闭指令;上述根据操作指令执行相应的操作,包括:控制客户端的主程序结束指定业务;或者,操作指令可以为升级指令;上述根据操作指令执行相应的操作,包括:控制对客户端的主程序进行在线升级。Optionally, for different operation instructions, the client may perform different operations, and the operation instruction and the operation corresponding to the operation instruction may be various. The following provides an optional operation instruction and corresponding operation, and specifically may include the following Content: the operation instruction may be a startup instruction that does not carry a command line parameter; the foregoing operation according to the operation instruction includes: starting a main program of the client; or, the operation instruction may be a startup instruction carrying a command line parameter; The operation instruction performs a corresponding operation, including: starting a main program of the client, and executing an operation corresponding to the command line parameter; or, the operation instruction may be an operation start instruction; and performing the corresponding operation according to the operation instruction, including: controlling the client's main operation The program starts the specified service; or, the operation instruction may be a business shutdown instruction; the foregoing operation according to the operation instruction includes: controlling the main program of the client to end the specified service; or, the operation instruction may be an upgrade instruction; Operation Including: control of the main clients of the online upgrade.
对于上述步骤801~步骤803用于客户端的内嵌网页的场景,上述步骤801~步骤803可以包括以下内容:For the scenario in which the foregoing steps 801 to 803 are used for the embedded webpage of the client, the foregoing steps 801 to 803 may include the following contents:
步骤一,加载并显示客户端的内嵌网页,内嵌网页中包含与客户端对应的可操作对象;Step 1: loading and displaying the embedded webpage of the client, where the embedded webpage includes an operable object corresponding to the client;
在实施中,用户启动客户端的主程序后,在终端中显示客户端界面,客户端与服务器进行交互并进行同步更新时,可以从服务器获取内嵌网页的更新数据,可以在客户端界面中显示该内嵌网页的链接,用户点击该链接后,客户端可以加载并显示内嵌网页。In the implementation, after the user starts the main program of the client, the client interface is displayed in the terminal. When the client interacts with the server and performs synchronous update, the update data of the embedded webpage can be obtained from the server, and can be displayed in the client interface. The link of the embedded webpage, after the user clicks the link, the client can load and display the embedded webpage.
步骤二,当接收到对应可操作对象的预定操作时,内嵌网页获取其中包含的可操作对象对应的操作指令;Step 2: When receiving a predetermined operation corresponding to the operable object, the embedded webpage acquires an operation instruction corresponding to the operable object included therein;
在实施中,开发人员在开发内嵌网页时,可以为其中的可操作对象设置相应的信息,该信息中可以包含有操作指令等,用户点击内嵌网页中的可操作对象时,触发内嵌网页获取对应的操作指令。In the implementation, when the developer develops the embedded webpage, the developer may set corresponding information for the operable object therein, and the information may include an operation instruction, etc., and the user triggers the inline when the user clicks on the operable object in the embedded webpage. The web page obtains the corresponding operation instruction.
可选地,上述步骤二的处理方式可以多种多样,以下提供一种可选的处理 方式,具体可以包括以下内容:当检测到客户端的内嵌网页生成网页消息时,客户端从该网页消息中提取命令代号;客户端根据命令代号在预设对应关系中查找得到操作指令,预设对应关系是不同命令代号与不同操作指令之间的对应关系。Optionally, the processing manner of step 2 above may be various, and an optional processing is provided below. The method may include the following: when detecting the embedded webpage generating webpage message of the client, the client extracts the command code from the webpage message; the client searches for the operation instruction according to the command code in the preset correspondence relationship, and presets The correspondence relationship is the correspondence between different command codes and different operation instructions.
其中,命令代号可以是固定格式的字符串。The command code can be a fixed-format string.
在实施中,开发人员在开发内嵌网页时,可以在内嵌网页中的可操作对象对应的信息中写入相应的命令代号,用户对可操作对象进行预定操作,比如点击图标或者链接时,内嵌网页生成包含有该命令代号的网页消息,客户端监听并截获该网页消息后,可以在该网页消息中查找,确定其中是否包含固定格式的字符串,如果包含,则将其提取为命令代号。客户端中可以存储有命令代号与操作指令的对应关系,客户端得到命令代号(可以称为第一命令代号)后,可以在上述命令代号与操作指令的对应关系中查找,得到第一命令代号对应的操作指令,其中,操作指令包括但不限于业务开启指令、业务关闭指令或者升级指令等。In the implementation, when the developer develops the embedded webpage, the corresponding command code may be written into the information corresponding to the operable object in the embedded webpage, and the user performs a predetermined operation on the operable object, such as clicking an icon or a link. The embedded webpage generates a webpage message containing the command code. After the client listens and intercepts the webpage message, the client can search for the webpage message to determine whether the string contains a fixed format, and if it is included, extract the command as a command. Code. The client can store the correspondence between the command code and the operation command. After the client obtains the command code (which can be called the first command code), the client can search for the correspondence between the command code and the operation command to obtain the first command code. Corresponding operation instructions, wherein the operation instructions include, but are not limited to, a service open instruction, a service close instruction, or an upgrade instruction.
步骤三,内嵌网页发送携带有上操作指令的网页消息,以使客户端在网页消息中提取操作指令。Step 3: The embedded webpage sends a webpage message carrying the upper operation instruction, so that the client extracts the operation instruction in the webpage message.
在实施中,内嵌网页获取到相应的操作指令后,可以通过该操作指令生成网页消息,在内嵌网页将该网页消息发送时,客户端可以监听到内嵌网页发送网页消息的操作,客户端可以截获该网页消息,如果该网页消息中包含有操作指令,客户端可以提取该操作指令,相应的处理过程可以参见上述相关内容,在此不再赘述。In the implementation, after the embedded webpage obtains the corresponding operation instruction, the webpage message can be generated by the operation instruction, and when the embedded webpage sends the webpage message, the client can monitor the operation of the embedded webpage to send the webpage message, the client The webpage can intercept the webpage message. If the webpage message contains an operation instruction, the client can extract the operation instruction. For the corresponding processing, refer to the related content, and details are not described herein.
综上所述,本申请实施例提供的操作响应方法,通过获取网页在可操作对象上接收到预定操作后,从该网页中获取到与可操作对象对应的操作指令,并将操作指令发送给客户端,由客户端根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the operation response method provided by the embodiment of the present application obtains an operation instruction corresponding to the operable object from the webpage after receiving the predetermined operation on the operable object by acquiring the webpage, and sends the operation instruction to the operation instruction. The client performs the corresponding operation according to the operation instruction, and solves the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. To achieve the purpose of simplifying the operation process and saving computing resources and operation time.
请参见图11,其示出了本发明一个实施例提供的客户端的装置结构图,该客户端可以响应用户在指定网页中的操作。该客户端可以包括:Referring to FIG. 11, which is a structural diagram of a device of a client provided by an embodiment of the present invention, the client may respond to a user's operation in a specified webpage. The client can include:
指令获取模块901,用于从所述客户端的内嵌网页生成的第一网页跳转信 息中提取操作指令,所述第一网页跳转信息是所述内嵌网页在页面上与所述客户端对应的可操作对象接收到预定操作后生成的;或,接收外部的浏览器发送的所述操作指令,所述操作指令是所述浏览器从当前显示的网页生成的第二网页跳转信息中提取到的,所述第二网页跳转信息是所述网页的页面上与所述客户端对应的可操作对象接收到所述预定操作后生成的;An instruction obtaining module 901, configured to use a first webpage jump message generated from an embedded webpage of the client And extracting an operation instruction, where the first webpage jump information is generated by the embedded webpage after the operable object corresponding to the client on the page receives the predetermined operation; or receiving the external browser to send The operation instruction, the operation instruction is extracted by the browser from the second webpage jump information generated by the currently displayed webpage, where the second webpage jump information is on the page of the webpage and the The operable object corresponding to the client is generated after receiving the predetermined operation;
响应执行模块902,用于根据所述操作指令执行相应的响应。The response execution module 902 is configured to execute a corresponding response according to the operation instruction.
综上所述,本发明实施例提供的客户端,通过当客户端的内嵌网页或者外部浏览器显示的网页中与客户端对应的可操作对象被触发产生预定操作时,客户端获取该预定操作对应的操作指令,并根据该操作指令执行响应的响应,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the client provided by the embodiment of the present invention obtains the predetermined operation by triggering a predetermined operation when the executable object corresponding to the client is triggered by the embedded webpage of the client or the webpage displayed by the external browser. The corresponding operation instruction, and the response of the response is executed according to the operation instruction, which solves the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. To achieve the purpose of simplifying the operation process and saving computing resources and operation time.
请参见图12,其示出了本发明另一实施例提供的客户端的装置结构图,该客户端可以响应用户在指定网页中的操作。该客户端可以包括:Referring to FIG. 12, which is a structural diagram of a device of a client according to another embodiment of the present invention, the client may respond to a user's operation in a specified webpage. The client can include:
指令获取模块1001,用于从所述客户端的内嵌网页生成的第一网页跳转信息中提取操作指令,所述第一网页跳转信息是所述内嵌网页在页面上与所述客户端对应的可操作对象接收到预定操作后生成的;或,接收外部的浏览器发送的所述操作指令,所述操作指令是所述浏览器从当前显示的网页生成的第二网页跳转信息中提取到的,所述第二网页跳转信息是所述网页的页面上与所述客户端对应的可操作对象接收到所述预定操作后生成的;The instruction obtaining module 1001 is configured to extract an operation instruction from the first webpage jump information generated by the embedded webpage of the client, where the first webpage jump information is the embedded webpage on the page and the client The corresponding operable object is generated after receiving the predetermined operation; or receiving the operation instruction sent by an external browser, where the operation instruction is the second webpage jump information generated by the browser from the currently displayed webpage. Extracted, the second webpage jump information is generated after the operable object corresponding to the client on the page of the webpage receives the predetermined operation;
响应执行模块1002,用于根据所述操作指令执行相应的响应。The response execution module 1002 is configured to execute a corresponding response according to the operation instruction.
所述指令获取模块801,包括:The instruction obtaining module 801 includes:
获取单元1001a,从所述客户端的内嵌网页获取第一网页跳转信息;The obtaining unit 1001a obtains the first webpage jump information from the embedded webpage of the client;
提取单元1001b,用于从所述第一网页跳转信息中提取命令代号;An extracting unit 1001b, configured to extract a command code from the first webpage jump information;
查找单元1001c,用于根据所述命令代号在预设对应关系中查找得到所述操作指令,所述预设对应关系是不同命令代号与不同操作指令之间的对应关系。The searching unit 1001c is configured to search for the operation instruction according to the command code in a preset correspondence relationship, where the preset correspondence relationship is a correspondence between different command codes and different operation instructions.
或者,所述指令获取模块1001,包括:Alternatively, the instruction obtaining module 1001 includes:
接收单元1001d,用于接收所述浏览器通过预定地址发送的所述操作指令,所述预定地址是所述浏览器通过自身或者内置插件查找注册表后得到的。 The receiving unit 1001d is configured to receive the operation instruction sent by the browser by using a predetermined address, where the predetermined address is obtained by the browser searching the registry by itself or a built-in plug-in.
所述指令获取模块801还包括:The instruction acquisition module 801 further includes:
调用单元1001e,用于在所述接收单元接收所述浏览器发送的所述操作指令之前,通过操作系统API调用所述浏览器加载并显示所述网页。The calling unit 1001e is configured to: after the receiving unit receives the operation instruction sent by the browser, invoke the browser to load and display the webpage through an operating system API.
所述响应执行模块1002,包括:The response execution module 1002 includes:
第一执行单元10021,用于若所述操作指令为未携带有命令行参数的启动指令,则启动所述客户端的主程序;The first execution unit 10021 is configured to start the main program of the client if the operation instruction is a startup instruction that does not carry a command line parameter;
第二执行单元10022,用于若所述操作指令为携带有命令行参数的启动指令,则启动所述客户端的主程序,并执行所述命令行参数所对应的操作;The second execution unit 10022 is configured to: if the operation instruction is a startup instruction carrying a command line parameter, start a main program of the client, and execute an operation corresponding to the command line parameter;
第三执行单元10023,用于若所述操作指令为业务开启指令,则控制所述客户端的主程序开启指定业务;The third executing unit 10023 is configured to: if the operation instruction is a service opening instruction, control a main program of the client to start a specified service;
第四执行单元10024,用于若所述操作指令为业务关闭指令,则控制所述客户端的主程序结束指定业务;The fourth execution unit 10024 is configured to: if the operation instruction is a service shutdown instruction, control the main program of the client to end the designated service;
第五执行单元10025,用于若所述操作指令为升级指令,则控制对所述客户端的主程序进行在线升级。The fifth executing unit 10025 is configured to, if the operation instruction is an upgrade instruction, control online upgrade of the main program of the client.
综上所述,本发明实施例提供的客户端,通过当客户端的内嵌网页或者外部浏览器显示的网页中与客户端对应的可操作对象被触发产生预定操作时,客户端获取该预定操作对应的操作指令,并根据该操作指令执行响应的响应,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the client provided by the embodiment of the present invention obtains the predetermined operation by triggering a predetermined operation when the executable object corresponding to the client is triggered by the embedded webpage of the client or the webpage displayed by the external browser. The corresponding operation instruction, and the response of the response is executed according to the operation instruction, which solves the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. To achieve the purpose of simplifying the operation process and saving computing resources and operation time.
请参见图13,其示出了本发明一个实施例提供的浏览器的装置结构图,该浏览器可以用于使客户端对加载于该浏览器中的指定网页中的用户操作进行响应。该浏览器可以包括:Referring to FIG. 13, a device structure diagram of a browser provided by an embodiment of the present invention is provided, and the browser can be used to enable a client to respond to user operations in a specified webpage loaded in the browser. The browser can include:
加载模块1101,用于加载并显示网页,所述网页中包含与客户端对应的可操作对象;a loading module 1101, configured to load and display a webpage, where the webpage includes an operable object corresponding to the client;
信息获取模块1102,用于从当前显示的所述网页获取第二网页跳转信息,所述第二网页跳转信息为所述网页在所述可操作对象上接收到所述预定操作后被生成的信息;The information obtaining module 1102 is configured to obtain second webpage jump information from the currently displayed webpage, where the second webpage jump information is generated after the webpage receives the predetermined operation on the operable object. Information;
提取模块1103,用于从所述第二网页跳转信息中提取到操作指令;An extracting module 1103, configured to extract an operation instruction from the second webpage jump information;
指令发送模块1104,用于将所述操作指令发送给所述客户端,由所述客户 端根据所述操作指令执行相应的响应。An instruction sending module 1104, configured to send the operation instruction to the client, by the client The terminal performs a corresponding response according to the operation instruction.
综上所述,本发明实施例提供的浏览器,通过获取外部浏览器显示的网页在可操作对象上接收到预定操作后被生成的网页跳转消息,从网页跳转消息中提取到操作指令,并将操作指令发送给客户端,由客户端根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the browser provided by the embodiment of the present invention extracts an operation instruction from a webpage jump message by acquiring a webpage jump message generated after the webpage displayed by the external browser receives the predetermined operation on the operable object. And the operation instruction is sent to the client, and the client performs the corresponding operation according to the operation instruction, which solves the problem that the user in the prior art needs to manually open the webpage in the client after browsing the interested network service through the webpage query. The problem of the queried network service is achieved, which simplifies the operation process and saves computing resources and operation time.
请参见图14,其示出了本发明另一实施例提供的浏览器的装置结构图,该浏览器可以用于使客户端对加载于该浏览器中的网页中的预定操作进行响应。该浏览器可以包括:Referring to FIG. 14, which is a structural diagram of a device of a browser provided by another embodiment of the present invention, the browser may be configured to enable a client to respond to a predetermined operation in a webpage loaded in the browser. The browser can include:
加载模块1201,用于加载并显示网页,所述网页中包含与客户端对应的可操作对象;a loading module 1201, configured to load and display a webpage, where the webpage includes an operable object corresponding to the client;
信息获取模块1202,用于从当前显示的所述网页获取第二网页跳转信息,所述第二网页跳转信息为所述网页在所述可操作对象上接收到所述预定操作后被生成的信息;The information obtaining module 1202 is configured to obtain second webpage jump information from the currently displayed webpage, where the second webpage jump information is generated after the webpage receives the predetermined operation on the operable object. Information;
提取模块1203,用于从所述第二网页跳转信息中提取到操作指令;The extracting module 1203 is configured to extract an operation instruction from the second webpage jump information;
指令发送模块1204,用于将所述操作指令发送给所述客户端,由所述客户端根据所述操作指令执行相应的响应。The instruction sending module 1204 is configured to send the operation instruction to the client, and the client performs a corresponding response according to the operation instruction.
所述指令发送模块1204,包括:The instruction sending module 1204 includes:
查询单元12041,用于通过自身或者内置插件查找注册表,获得预定地址;The query unit 12041 is configured to search the registry by itself or a built-in plug-in to obtain a predetermined address.
发送单元12042,用于通过所述预定地址将所述操作指令发送给所述客户端。The sending unit 12042 is configured to send the operation instruction to the client by using the predetermined address.
所述加载模块1201,用于在所述客户端通过操作系统API的调用下加载并显示所述网页。The loading module 1201 is configured to load and display the webpage under the call of the operating system API by the client.
综上所述,本发明实施例提供的浏览器,通过获取外部浏览器显示的网页在可操作对象上接收到预定操作后被生成的网页跳转消息,从网页跳转消息中提取到操作指令,并将操作指令发送给客户端,由客户端根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。 In summary, the browser provided by the embodiment of the present invention extracts an operation instruction from a webpage jump message by acquiring a webpage jump message generated after the webpage displayed by the external browser receives the predetermined operation on the operable object. And the operation instruction is sent to the client, and the client performs the corresponding operation according to the operation instruction, which solves the problem that the user in the prior art needs to manually open the webpage in the client after browsing the interested network service through the webpage query. The problem of the queried network service is achieved, which simplifies the operation process and saves computing resources and operation time.
请参见图15,其示出了本发明一个实施例提供的操作响应系统的系统构成图,该系统包括:Referring to FIG. 15, a system configuration diagram of an operation response system according to an embodiment of the present invention is shown. The system includes:
如上述图11或图12所示的客户端001以及如上述图13或图14所示的浏览器002。The client 001 as shown in FIG. 11 or FIG. 12 above and the browser 002 as shown in FIG. 13 or FIG. 14 described above.
综上所述,本发明实施例提供的操作响应系统,通过当客户端的内嵌网页或者外部浏览器显示的网页中与客户端对应的可操作对象被触发产生预定操作时,客户端获取该预定操作对应的操作指令,并根据该操作指令执行响应的响应,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the operation response system provided by the embodiment of the present invention obtains the predetermined operation when the operable object corresponding to the client is triggered to generate a predetermined operation when the embedded webpage of the client or the webpage displayed by the external browser is triggered to generate a predetermined operation. The corresponding operation instruction is operated, and the response of the response is executed according to the operation instruction, which solves the problem that the user in the prior art needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query. The problem is to simplify the operation process and save computing resources and operation time.
请参见图16,其示出了本申请另一实施例提供的客户端的装置结构图,该客户端可以响应用户在指定网页中的操作。该客户端可以包括:Referring to FIG. 16, which is a structural diagram of a device of a client provided by another embodiment of the present application, the client may respond to a user's operation in a specified webpage. The client can include:
指令获取模块1301,用于获取操作指令,所述操作指令是在接收到对应当前显示的网页上可操作对象的预定操作时,从所述网页中获取的与所述可操作对象对应的操作指令;The instruction obtaining module 1301 is configured to acquire an operation instruction, where the operation instruction is an operation instruction corresponding to the operable object acquired from the webpage when receiving a predetermined operation corresponding to the operable object on the currently displayed webpage ;
响应执行模块1302,用于根据所述操作指令执行相应的操作。The response execution module 1302 is configured to perform a corresponding operation according to the operation instruction.
可选地,指令获取模块1301,用于从所述客户端的内嵌网页生成的网页消息中提取操作指令,所述网页消息是所述内嵌网页在页面上的可操作对象接收到预定操作后生成的;或,接收外部的浏览器发送的操作指令,所述操作指令是所述浏览器在接收到对应当前显示的网页上可操作对象的预定操作时从所述可操作对象对应的网页执行代码中获取的。Optionally, the instruction obtaining module 1301 is configured to extract an operation instruction from a webpage message generated by the embedded webpage of the client, where the webpage message is that the operable object of the embedded webpage receives a predetermined operation after the operation Or generating an operation instruction sent by an external browser, the operation instruction being executed by the browser from a webpage corresponding to the operable object when receiving a predetermined operation corresponding to the operable object on the currently displayed webpage Obtained in the code.
可选地,所述指令获取模块1301,用于:Optionally, the instruction obtaining module 1301 is configured to:
当检测到客户端的内嵌网页生成网页消息时,从所述网页消息中提取命令代号;Extracting a command code from the webpage message when detecting an embedded webpage generating webpage message of the client;
根据所述命令代号在预设对应关系中查找得到所述操作指令,所述预设对应关系是不同命令代号与不同操作指令之间的对应关系。And obtaining the operation instruction according to the command code in the preset correspondence relationship, where the preset correspondence relationship is a correspondence between different command codes and different operation instructions.
可选地,所述指令获取模块1301,用于:Optionally, the instruction obtaining module 1301 is configured to:
接收外部的浏览器通过预定地址发送的所述操作指令,所述预定地址是使用所述浏览器自身或者内置插件,通过所述网页中记录的所述可操作对象对应 的客户端标识查找注册表后得到的。Receiving, by the external browser, the operation instruction sent by the predetermined address, by using the browser itself or a built-in plug-in, corresponding to the operable object recorded in the webpage The client ID is obtained after looking up the registry.
可选地,所述指令获取模块1301还用于:Optionally, the instruction obtaining module 1301 is further configured to:
在所述接收单元接收所述浏览器发送的所述操作指令之前,通过操作系统API调用所述浏览器加载并显示所述网页。Before the receiving unit receives the operation instruction sent by the browser, the browser is called by the operating system API to load and display the webpage.
可选地,所述响应执行模块1302,用于:Optionally, the response execution module 1302 is configured to:
若所述操作指令为未携带有命令行参数的启动指令,则启动所述客户端的主程序;If the operation instruction is a startup instruction that does not carry a command line parameter, start the main program of the client;
若所述操作指令为携带有命令行参数的启动指令,则启动所述客户端的主程序,并执行所述命令行参数所对应的操作;If the operation instruction is a startup instruction carrying a command line parameter, start the main program of the client, and execute an operation corresponding to the command line parameter;
若所述操作指令为业务开启指令,则控制所述客户端的主程序开启指定业务;If the operation instruction is a service opening instruction, controlling the main program of the client to start a specified service;
若所述操作指令为业务关闭指令,则控制所述客户端的主程序结束指定业务;If the operation instruction is a service shutdown instruction, controlling the main program of the client to end the designated service;
若所述操作指令为升级指令,则控制对所述客户端的主程序进行在线升级。If the operation instruction is an upgrade instruction, controlling to perform online upgrade of the main program of the client.
综上所述,本申请实施例提供的客户端,通过当客户端的内嵌网页或者外部浏览器显示的网页中与客户端对应的可操作对象被触发产生预定操作时,客户端获取该预定操作对应的操作指令,并根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the client provided by the embodiment of the present application obtains the predetermined operation by triggering a predetermined operation when the executable object corresponding to the client is triggered by the embedded webpage of the client or the webpage displayed by the external browser. Corresponding operation instructions, and performing corresponding operations according to the operation instructions, solve the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. To achieve the purpose of simplifying the operation process and saving computing resources and operation time.
请参见图17,其示出了本申请另一实施例提供的浏览器的装置结构图,该浏览器可以用于使客户端对加载于该浏览器中的网页中的预定操作进行响应。该浏览器可以包括:Referring to FIG. 17, which is a structural diagram of a device of a browser provided by another embodiment of the present application, the browser may be used to enable a client to respond to a predetermined operation in a webpage loaded in the browser. The browser can include:
加载模块1401,用于加载并显示网页,所述网页中包含与客户端对应的可操作对象;a loading module 1401, configured to load and display a webpage, where the webpage includes an operable object corresponding to the client;
信息获取模块1402,用于当接收到对应所述可操作对象的预定操作时,从所述网页中获取所述可操作对象对应的操作指令;The information obtaining module 1402 is configured to: when receiving a predetermined operation corresponding to the operable object, acquire an operation instruction corresponding to the operable object from the webpage;
指令发送模块1403,用于将所述操作指令发送给所述客户端,由所述客户端根据所述操作指令执行相应的操作。 The instruction sending module 1403 is configured to send the operation instruction to the client, and the client performs a corresponding operation according to the operation instruction.
可选地,所述信息获取模块1402,用于:Optionally, the information obtaining module 1402 is configured to:
当接收到对应所述可操作对象的预定操作时,获取所述网页中所述可操作对象对应的网页执行代码中记录的操作指令。When receiving a predetermined operation corresponding to the operable object, acquiring an operation instruction recorded in a webpage execution code corresponding to the operable object in the webpage.
可选地,指令发送模块1403,用于:Optionally, the instruction sending module 1403 is configured to:
通过所述网页中记录的所述可操作对象对应的客户端标识,查找注册表,获得预定地址,并通过所述预定地址将所述操作指令发送给所述客户端。And searching for a registry by using a client identifier corresponding to the operable object recorded in the webpage, obtaining a predetermined address, and sending the operation instruction to the client by using the predetermined address.
可选地,所述指令发送模块1403,用于:Optionally, the instruction sending module 1403 is configured to:
使用自身或者内置插件,通过所述网页中记录的所述可操作对象对应的客户端标识,查找注册表,获得预定地址。Using the self or built-in plug-in, the registry identifier is searched for by the client identifier corresponding to the operable object recorded in the webpage, and the predetermined address is obtained.
可选地,在所述客户端通过操作系统API的调用下加载并显示网页。Optionally, the webpage is loaded and displayed under the call of the operating system API by the client.
综上所述,本申请实施例提供的浏览器,通过当客户端的内嵌网页或者外部浏览器显示的网页中与客户端对应的可操作对象被触发产生预定操作时,客户端获取该预定操作对应的操作指令,并根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the browser provided by the embodiment of the present application obtains the predetermined operation when the operation object corresponding to the client in the webpage displayed by the client or the webpage displayed by the external browser is triggered to generate a predetermined operation. Corresponding operation instructions, and performing corresponding operations according to the operation instructions, solve the problem that the user needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query in the prior art. To achieve the purpose of simplifying the operation process and saving computing resources and operation time.
需要说明的是:上述实施例提供的客户端和浏览器在对网页中的预定操作进行响应时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的客户端和浏览器与操作响应方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, when the client and the browser provided by the foregoing embodiment respond to the predetermined operation in the webpage, only the division of each functional module is used as an example. In an actual application, the foregoing function may be allocated according to requirements. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the client and the browser provided by the foregoing embodiment are in the same concept as the embodiment of the operation response method, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
请参考图18,其示出了本申请实施例所涉及的终端的结构示意图,该终端可以用于实施上述实施例中提供的操作响应方法。具体来讲:Please refer to FIG. 18, which is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal may be used to implement the operation response method provided in the foregoing embodiment. Specifically:
终端1800可以包括通信单元110、包括有一个或一个以上计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、WIFI(Wireless Fidelity,无线保真)模块170、包括有一个或者一个以上处理核心的处理器180、以及电源190等部件。本领域技术人员可以理解,图中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或 者组合某些部件,或者不同的部件布置。其中:The terminal 1800 can include a communication unit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a WIFI (Wireless Fidelity) module 170, A processor 180 having one or more processing cores, and a power supply 190 and the like are included. It will be understood by those skilled in the art that the terminal structure shown in the figure does not constitute a limitation of the terminal, and may include more or less components than illustrated, or Some combinations of parts, or different parts are arranged. among them:
通信单元110可用于收发信息或通话过程中,信号的接收和发送,该通信单元110可以为RF(Radio Frequency,射频)电路、路由器、调制解调器、等网络通信设备。特别地,当通信单元110为RF电路时,将基站的下行信息接收后,交由一个或者一个以上处理器180处理;另外,将涉及上行的数据发送给基站。通常,作为通信单元的RF电路包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,通信单元110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端1800的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器120还可以包括存储器控制器,以提供处理器180和输入单元130对存储器120的访问。The communication unit 110 can be used for transmitting and receiving information and receiving and transmitting signals during a call. The communication unit 110 can be an RF (Radio Frequency) circuit, a router, a modem, or the like. In particular, when the communication unit 110 is an RF circuit, the downlink information of the base station is received, and then processed by one or more processors 180; in addition, data related to the uplink is transmitted to the base station. Generally, RF circuits as communication units include, but are not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and a LNA (Low Noise Amplifier, low). Noise amplifier), duplexer, etc. In addition, the communication unit 110 can also communicate with the network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like. The memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120. The memory 120 may mainly 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 (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the terminal 1800 (such as audio data, phone book, etc.) and the like. Moreover, memory 120 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. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。优选地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触 摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。优选地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. Preferably, input unit 130 can include touch-sensitive surface 131 as well as other input devices 132. Touch-sensitive surface 131, also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program. Alternatively, the touch-sensitive surface 131 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 and converts it into contact coordinates, sends it to the processor 180, and receives the command from the processor 180 and executes it. In addition, the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 can also include other input devices 132. Preferably, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及终端1800的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图示中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal 1800, which can be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141. Alternatively, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141. Although in the illustration, touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
终端1800还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在终端1800移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端1800还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Terminal 1800 can also include at least one type of sensor 150, 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 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 and/or the backlight when the terminal 1800 moves to the ear. . As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal 1800 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here Let me repeat.
音频电路160、扬声器161,传声器162可提供用户与终端1800之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔, 以提供外设耳机与终端1800的通信。The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal 1800. The audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal, for example, via the RF circuit 110, or outputted to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack, To provide communication between the peripheral earphone and the terminal 1800.
为了实现无线通信,该终端上可以配置有无线通信单元170,该无线通信单元170可以为WIFI模块。WIFI属于短距离无线传输技术,终端1800通过无线通信单元170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图中示出了无线通信单元170,但是可以理解的是,其并不属于终端1800的必须构成,完全可以根据需要在不改变公开的本质的范围内而省略。In order to implement wireless communication, the terminal may be configured with a wireless communication unit 170, which may be a WIFI module. The WIFI is a short-range wireless transmission technology, and the terminal 1800 can help the user to send and receive emails, browse web pages, and access streaming media through the wireless communication unit 170, which provides wireless broadband Internet access for users. Although the wireless communication unit 170 is shown in the drawings, it can be understood that it does not belong to the essential configuration of the terminal 1800, and may be omitted as needed within the scope of not changing the essence of the disclosure.
处理器180是终端1800的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行终端1800的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is the control center of the terminal 1800, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the terminal 1800 are performed to perform overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
终端1800还包括给各个部件供电的电源190(比如电池),优选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal 1800 also includes a power source 190 (such as a battery) for powering various components. Preferably, the power source can be logically coupled to the processor 180 through a power management system to manage functions such as charging, discharging, and power management through the power management system. Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
尽管未示出,终端1800还可以包括摄像头、蓝牙模块等,在此不再赘述。在本实施例中,终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含的用于进行以下方法的指令:Although not shown, the terminal 1800 may further include a camera, a Bluetooth module, and the like, and details are not described herein again. In this embodiment, the terminal further includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to execute the one or more programs by one or more processors Contains instructions for making the following methods:
获取操作指令,所述操作指令是在接收到对应当前显示的网页上可操作对象的预定操作时,从所述网页中获取的与所述可操作对象对应的操作指令;Obtaining an operation instruction, where the operation instruction is an operation instruction corresponding to the operable object acquired from the webpage when receiving a predetermined operation corresponding to the operable object on the currently displayed webpage;
根据所述操作指令执行相应的操作。A corresponding operation is performed according to the operation instruction.
可选地,所述获取操作指令,包括:Optionally, the obtaining an operation instruction includes:
客户端从所述客户端的内嵌网页生成的网页消息中提取操作指令,所述网页消息是所述内嵌网页在页面上的可操作对象接收到预定操作后生成的;或,所述客户端接收外部的浏览器发送的操作指令,所述操作指令是所述浏览器在接收到对应当前显示的网页上可操作对象的预定操作时从所述可操作对象对 应的网页执行代码中获取的。The client extracts an operation instruction from the webpage message generated by the embedded webpage of the client, where the webpage message is generated after the operable object of the embedded webpage receives the predetermined operation on the page; or the client Receiving an operation instruction sent by an external browser, the operation instruction being from the operable object pair when the browser receives a predetermined operation corresponding to an operable object on a currently displayed webpage The web page should be obtained from the execution code.
可选地,所述客户端从所述客户端的内嵌网页生成的网页消息中提取操作指令,包括:Optionally, the client extracts an operation instruction from a webpage message generated by the embedded webpage of the client, including:
当检测到客户端的内嵌网页生成网页消息时,所述客户端从所述网页消息中提取命令代号;When detecting the embedded webpage generating webpage message of the client, the client extracts a command code from the webpage message;
所述客户端根据所述命令代号在预设对应关系中查找得到操作指令,所述预设对应关系是不同命令代号与不同操作指令之间的对应关系。The client searches for an operation instruction according to the command code in a preset correspondence relationship, where the preset correspondence relationship is a correspondence between different command codes and different operation instructions.
可选地,所述客户端接收外部的浏览器发送的操作指令,包括:Optionally, the client receives an operation instruction sent by an external browser, including:
所述客户端接收外部的浏览器通过预定地址发送的操作指令,所述预定地址是使用所述浏览器自身或者内置插件,通过所述网页中记录的所述可操作对象对应的客户端标识查找注册表后得到的。The client receives an operation instruction sent by an external browser through a predetermined address, and the predetermined address is searched by the client identifier corresponding to the operable object recorded in the webpage by using the browser itself or a built-in plug-in. Obtained after the registry.
可选地,所述客户端接收外部的浏览器发送的操作指令之前,还包括:Optionally, before the client receives the operation instruction sent by the external browser, the method further includes:
所述客户端通过操作系统的应用程序编程接口API调用所述浏览器加载并显示所述网页。The client invokes the browser to load and display the web page through an application programming interface API of the operating system.
可选地,所述根据所述操作指令执行相应的操作,包括:Optionally, the performing the corresponding operations according to the operation instruction, including:
若所述操作指令为未携带有命令行参数的启动指令,则启动所述客户端的主程序;If the operation instruction is a startup instruction that does not carry a command line parameter, start the main program of the client;
若所述操作指令为携带有命令行参数的启动指令,则启动所述客户端的主程序,并执行所述命令行参数所对应的操作;If the operation instruction is a startup instruction carrying a command line parameter, start the main program of the client, and execute an operation corresponding to the command line parameter;
若所述操作指令为业务开启指令,则控制所述客户端的主程序开启指定业务;If the operation instruction is a service opening instruction, controlling the main program of the client to start a specified service;
若所述操作指令为业务关闭指令,则控制所述客户端的主程序结束指定业务;If the operation instruction is a service shutdown instruction, controlling the main program of the client to end the designated service;
若所述操作指令为升级指令,则控制对所述客户端的主程序进行在线升级。If the operation instruction is an upgrade instruction, controlling to perform online upgrade of the main program of the client.
或者,在本实施例中,终端包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含的用于进行以下方法的指令:Alternatively, in the present embodiment, the terminal includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to execute the one or more by one or more processors The instructions contained in the program for the following methods:
加载并显示网页,所述网页中包含与客户端对应的可操作对象;Loading and displaying a webpage, the webpage containing an operable object corresponding to the client;
当接收到对应所述可操作对象的预定操作时,从所述网页中获取所述可操作对象对应的操作指令; Obtaining an operation instruction corresponding to the operable object from the webpage when receiving a predetermined operation corresponding to the operable object;
将所述操作指令发送给所述客户端,由所述客户端根据所述操作指令执行相应的操作。The operation instruction is sent to the client, and the client performs a corresponding operation according to the operation instruction.
可选地,所述网页为所述客户端的内嵌网页;Optionally, the webpage is an embedded webpage of the client;
所述当接收到对应所述可操作对象的预定操作时,从所述网页中获取所述可操作对象对应的操作指令,包括:当接收到对应所述可操作对象的预定操作时,所述内嵌网页获取其中包含的所述可操作对象对应的操作指令;When the predetermined operation corresponding to the operable object is received, acquiring an operation instruction corresponding to the operable object from the webpage includes: when receiving a predetermined operation corresponding to the operable object, The embedded webpage obtains an operation instruction corresponding to the operable object included therein;
所述将所述操作指令发送给所述客户端,包括:所述内嵌网页发送携带有上所述操作指令的网页消息,以使所述客户端在所述网页消息中提取所述操作指令。Sending the operation instruction to the client, the embedded webpage sending a webpage message carrying the operation instruction, so that the client extracts the operation instruction in the webpage message .
可选地,所述加载并显示网页,包括:浏览器加载并显示网页;Optionally, the loading and displaying the webpage includes: loading and displaying the webpage by the browser;
所述当接收到对应所述可操作对象的预定操作时,从所述网页中获取所述可操作对象对应的操作指令,包括:当接收到对应所述可操作对象的预定操作时,所述浏览器获取所述网页中所述可操作对象对应的网页执行代码中记录的操作指令;When the predetermined operation corresponding to the operable object is received, acquiring an operation instruction corresponding to the operable object from the webpage includes: when receiving a predetermined operation corresponding to the operable object, The browser acquires an operation instruction recorded in a webpage execution code corresponding to the operable object in the webpage;
所述将所述操作指令发送给所述客户端,包括:所述浏览器将所述操作指令发送给所述客户端。The sending the operation instruction to the client includes: the browser sending the operation instruction to the client.
可选地,所述浏览器将所述操作指令发送给所述客户端,包括:Optionally, the browser sends the operation instruction to the client, including:
所述浏览器通过所述网页中记录的所述可操作对象对应的客户端标识,查找注册表,获得预定地址,并通过所述预定地址将所述操作指令发送给所述客户端。The browser searches the registry through the client identifier corresponding to the operable object recorded in the webpage, obtains a predetermined address, and sends the operation instruction to the client by using the predetermined address.
可选地,所述浏览器通过所述网页中记录的所述可操作对象对应的客户端标识,查找注册表,获得预定地址,包括:Optionally, the browser searches the registry to obtain a predetermined address by using a client identifier corresponding to the operable object recorded in the webpage, and includes:
所述浏览器使用自身或者内置插件,通过所述网页中记录的所述可操作对象对应的客户端标识,查找注册表,获得预定地址。The browser uses its own or built-in plug-in to search the registry through the client identifier corresponding to the operable object recorded in the webpage to obtain a predetermined address.
可选地,所述浏览器加载并显示网页,包括:Optionally, the browser loads and displays the webpage, including:
所述浏览器在所述客户端通过操作系统的应用程序编程接口API的调用下加载并显示网页。The browser loads and displays the web page under the call of the client through the application programming interface API of the operating system.
可选地,所述操作指令为未携带有命令行参数的启动指令;所述根据所述操作指令执行相应的操作,包括:启动所述客户端的主程序;或者,Optionally, the operation instruction is a startup instruction that does not carry a command line parameter; and the performing the corresponding operation according to the operation instruction includes: starting a main program of the client; or
所述操作指令为携带有命令行参数的启动指令;所述根据所述操作指令执行相应的操作,包括:启动所述客户端的主程序,并执行所述命令行参数所对 应的操作;或者,The operation instruction is a startup instruction carrying a command line parameter; the performing the corresponding operation according to the operation instruction, comprising: starting a main program of the client, and executing the command line parameter The operation that should be performed; or,
所述操作指令为业务开启指令;所述根据所述操作指令执行相应的操作,包括:控制所述客户端的主程序开启指定业务;或者,The operation instruction is a service opening instruction; the performing the corresponding operation according to the operation instruction, comprising: controlling a main program of the client to start a specified service; or
所述操作指令为业务关闭指令;所述根据所述操作指令执行相应的操作,包括:控制所述客户端的主程序结束指定业务;或者,The operation instruction is a service shutdown instruction; the performing the corresponding operation according to the operation instruction, comprising: controlling the main program of the client to end the designated service; or
所述操作指令为升级指令;所述根据所述操作指令执行相应的操作,包括:控制对所述客户端的主程序进行在线升级。The operation instruction is an upgrade instruction; and the performing the corresponding operation according to the operation instruction comprises: controlling online upgrade of the main program of the client.
综上所述,本发明实施例提供的操作响应方法,通过当客户端的内嵌网页或者外部浏览器显示的网页中与客户端对应的可操作对象被触发产生预定操作时,客户端获取该预定操作对应的操作指令,并根据该操作指令执行相应的操作,解决了现有技术中用户通过网页查询浏览感兴趣的网络业务后,需要在客户端中手动开启从网页中查询到的网络业务的问题,达到简化操作过程,节约运算资源和操作时间的目的。In summary, the operation response method provided by the embodiment of the present invention obtains the predetermined operation when the operable object corresponding to the client is triggered to generate a predetermined operation when the embedded webpage of the client or the webpage displayed by the external browser is triggered to generate a predetermined operation. The corresponding operation instruction is operated, and the corresponding operation is performed according to the operation instruction, which solves the problem that the user in the prior art needs to manually open the network service queried from the webpage in the client after browsing the network service of interest through the webpage query. The problem is to simplify the operation process and save computing resources and operation time.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。 The above is only the preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application are included in the protection of the present application. Within the scope.

Claims (20)

  1. 一种操作响应方法,其特征在于,所述方法包括:An operational response method, the method comprising:
    获取操作指令,所述操作指令是在接收到对应当前显示的网页上可操作对象的预定操作时,从所述网页中获取的与所述可操作对象对应的操作指令;Obtaining an operation instruction, where the operation instruction is an operation instruction corresponding to the operable object acquired from the webpage when receiving a predetermined operation corresponding to the operable object on the currently displayed webpage;
    根据所述操作指令执行相应的操作。A corresponding operation is performed according to the operation instruction.
  2. 根据权利要求1所述的方法,其特征在于,所述获取操作指令,包括:The method of claim 1, wherein the obtaining an operation instruction comprises:
    客户端从所述客户端的内嵌网页生成的网页消息中提取操作指令,所述网页消息是所述内嵌网页在页面上的可操作对象接收到预定操作后生成的;或,所述客户端接收外部的浏览器发送的操作指令,所述操作指令是所述浏览器在接收到对应当前显示的网页上可操作对象的预定操作时从所述可操作对象对应的网页执行代码中获取的。The client extracts an operation instruction from the webpage message generated by the embedded webpage of the client, where the webpage message is generated after the operable object of the embedded webpage receives the predetermined operation on the page; or the client Receiving an operation instruction sent by an external browser, the operation instruction being obtained by the browser from a webpage execution code corresponding to the operable object when receiving a predetermined operation corresponding to the operable object on the currently displayed webpage.
  3. 根据权利要求2所述的方法,其特征在于,所述客户端从所述客户端的内嵌网页生成的网页消息中提取操作指令,包括:The method according to claim 2, wherein the client extracts an operation instruction from a webpage message generated by the embedded webpage of the client, including:
    当检测到客户端的内嵌网页生成网页消息时,所述客户端从所述网页消息中提取命令代号;When detecting the embedded webpage generating webpage message of the client, the client extracts a command code from the webpage message;
    所述客户端根据所述命令代号在预设对应关系中查找得到操作指令,所述预设对应关系是不同命令代号与不同操作指令之间的对应关系。The client searches for an operation instruction according to the command code in a preset correspondence relationship, where the preset correspondence relationship is a correspondence between different command codes and different operation instructions.
  4. 根据权利要求2所述的方法,其特征在于,所述客户端接收外部的浏览器发送的操作指令,包括:The method according to claim 2, wherein the client receives an operation instruction sent by an external browser, including:
    所述客户端接收外部的浏览器通过预定地址发送的操作指令,所述预定地址是使用所述浏览器自身或者内置插件,通过所述网页中记录的所述可操作对象对应的客户端标识查找注册表后得到的。The client receives an operation instruction sent by an external browser through a predetermined address, and the predetermined address is searched by the client identifier corresponding to the operable object recorded in the webpage by using the browser itself or a built-in plug-in. Obtained after the registry.
  5. 根据权利要求2所述的方法,其特征在于,所述客户端接收外部的浏览器发送的操作指令之前,还包括:The method according to claim 2, wherein before the client receives the operation instruction sent by the external browser, the method further includes:
    所述客户端通过操作系统的应用程序编程接口API调用所述浏览器加载并显示所述网页。 The client invokes the browser to load and display the web page through an application programming interface API of the operating system.
  6. 根据权利要求1所述的方法,其特征在于,所述根据所述操作指令执行相应的操作,包括:The method according to claim 1, wherein the performing the corresponding operation according to the operation instruction comprises:
    若所述操作指令为未携带有命令行参数的启动指令,则启动所述客户端的主程序;If the operation instruction is a startup instruction that does not carry a command line parameter, start the main program of the client;
    若所述操作指令为携带有命令行参数的启动指令,则启动所述客户端的主程序,并执行所述命令行参数所对应的操作;If the operation instruction is a startup instruction carrying a command line parameter, start the main program of the client, and execute an operation corresponding to the command line parameter;
    若所述操作指令为业务开启指令,则控制所述客户端的主程序开启指定业务;If the operation instruction is a service opening instruction, controlling the main program of the client to start a specified service;
    若所述操作指令为业务关闭指令,则控制所述客户端的主程序结束指定业务;If the operation instruction is a service shutdown instruction, controlling the main program of the client to end the designated service;
    若所述操作指令为升级指令,则控制对所述客户端的主程序进行在线升级。If the operation instruction is an upgrade instruction, controlling to perform online upgrade of the main program of the client.
  7. 一种操作响应方法,其特征在于,所述方法包括:An operational response method, the method comprising:
    加载并显示网页,所述网页中包含与客户端对应的可操作对象;Loading and displaying a webpage, the webpage containing an operable object corresponding to the client;
    当接收到对应所述可操作对象的预定操作时,从所述网页中获取所述可操作对象对应的操作指令;Obtaining an operation instruction corresponding to the operable object from the webpage when receiving a predetermined operation corresponding to the operable object;
    将所述操作指令发送给所述客户端,由所述客户端根据所述操作指令执行相应的操作。The operation instruction is sent to the client, and the client performs a corresponding operation according to the operation instruction.
  8. 根据权利要求7所述的方法,其特征在于,所述网页为所述客户端的内嵌网页;The method according to claim 7, wherein the webpage is an embedded webpage of the client;
    所述当接收到对应所述可操作对象的预定操作时,从所述网页中获取所述可操作对象对应的操作指令,包括:当接收到对应所述可操作对象的预定操作时,所述内嵌网页获取其中包含的所述可操作对象对应的操作指令;When the predetermined operation corresponding to the operable object is received, acquiring an operation instruction corresponding to the operable object from the webpage includes: when receiving a predetermined operation corresponding to the operable object, The embedded webpage obtains an operation instruction corresponding to the operable object included therein;
    所述将所述操作指令发送给所述客户端,包括:所述内嵌网页发送携带有上所述操作指令的网页消息,以使所述客户端在所述网页消息中提取所述操作指令。Sending the operation instruction to the client, the embedded webpage sending a webpage message carrying the operation instruction, so that the client extracts the operation instruction in the webpage message .
  9. 根据权利要求7所述的方法,其特征在于,所述加载并显示网页,包括:浏览器加载并显示网页; The method according to claim 7, wherein the loading and displaying the webpage comprises: loading and displaying the webpage by the browser;
    所述当接收到对应所述可操作对象的预定操作时,从所述网页中获取所述可操作对象对应的操作指令,包括:当接收到对应所述可操作对象的预定操作时,所述浏览器获取所述网页中所述可操作对象对应的网页执行代码中记录的操作指令;When the predetermined operation corresponding to the operable object is received, acquiring an operation instruction corresponding to the operable object from the webpage includes: when receiving a predetermined operation corresponding to the operable object, The browser acquires an operation instruction recorded in a webpage execution code corresponding to the operable object in the webpage;
    所述将所述操作指令发送给所述客户端,包括:所述浏览器将所述操作指令发送给所述客户端。The sending the operation instruction to the client includes: the browser sending the operation instruction to the client.
  10. 根据权利要求9所述的方法,其特征在于,所述浏览器将所述操作指令发送给所述客户端,包括:The method according to claim 9, wherein the browser sends the operation instruction to the client, including:
    所述浏览器通过所述网页中记录的所述可操作对象对应的客户端标识,查找注册表,获得预定地址,并通过所述预定地址将所述操作指令发送给所述客户端。The browser searches the registry through the client identifier corresponding to the operable object recorded in the webpage, obtains a predetermined address, and sends the operation instruction to the client by using the predetermined address.
  11. 根据权利要求10所述的方法,其特征在于,所述浏览器通过所述网页中记录的所述可操作对象对应的客户端标识,查找注册表,获得预定地址,包括:The method according to claim 10, wherein the browser searches the registry to obtain a predetermined address by using a client identifier corresponding to the operable object recorded in the webpage, and includes:
    所述浏览器使用自身或者内置插件,通过所述网页中记录的所述可操作对象对应的客户端标识,查找注册表,获得预定地址。The browser uses its own or built-in plug-in to search the registry through the client identifier corresponding to the operable object recorded in the webpage to obtain a predetermined address.
  12. 根据权利要求9所述的方法,其特征在于,所述浏览器加载并显示网页,包括:The method according to claim 9, wherein the browser loads and displays the webpage, including:
    所述浏览器在所述客户端通过操作系统的应用程序编程接口API的调用下加载并显示网页。The browser loads and displays the web page under the call of the client through the application programming interface API of the operating system.
  13. 根据权利要求7所述的方法,其特征在于,The method of claim 7 wherein:
    所述操作指令为未携带有命令行参数的启动指令;所述根据所述操作指令执行相应的操作,包括:启动所述客户端的主程序;或者,The operation instruction is a startup instruction that does not carry a command line parameter; and the performing the corresponding operation according to the operation instruction includes: starting a main program of the client; or
    所述操作指令为携带有命令行参数的启动指令;所述根据所述操作指令执行相应的操作,包括:启动所述客户端的主程序,并执行所述命令行参数所对应的操作;或者,The operation instruction is a startup instruction carrying a command line parameter; the performing the corresponding operation according to the operation instruction includes: starting a main program of the client, and executing an operation corresponding to the command line parameter; or
    所述操作指令为业务开启指令;所述根据所述操作指令执行相应的操作, 包括:控制所述客户端的主程序开启指定业务;或者,The operation instruction is a service opening instruction; the performing the corresponding operation according to the operation instruction, The method includes: controlling a main program of the client to open a specified service; or
    所述操作指令为业务关闭指令;所述根据所述操作指令执行相应的操作,包括:控制所述客户端的主程序结束指定业务;或者,The operation instruction is a service shutdown instruction; the performing the corresponding operation according to the operation instruction, comprising: controlling the main program of the client to end the designated service; or
    所述操作指令为升级指令;所述根据所述操作指令执行相应的操作,包括:控制对所述客户端的主程序进行在线升级。The operation instruction is an upgrade instruction; and the performing the corresponding operation according to the operation instruction comprises: controlling online upgrade of the main program of the client.
  14. 一种终端,其特征在于,所述终端包括存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含的用于进行以下方法的指令:A terminal, characterized in that the terminal comprises a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to execute the one or one by one or more processors The above program contains instructions for performing the following methods:
    加载并显示网页,所述网页中包含与客户端对应的可操作对象;Loading and displaying a webpage, the webpage containing an operable object corresponding to the client;
    当接收到对应所述可操作对象的预定操作时,从所述网页中获取所述可操作对象对应的操作指令;Obtaining an operation instruction corresponding to the operable object from the webpage when receiving a predetermined operation corresponding to the operable object;
    将所述操作指令发送给所述客户端,由所述客户端根据所述操作指令执行相应的操作。The operation instruction is sent to the client, and the client performs a corresponding operation according to the operation instruction.
  15. 根据权利要求14所述的终端,其特征在于,所述网页为所述客户端的内嵌网页;The terminal according to claim 14, wherein the webpage is an embedded webpage of the client;
    所述当接收到对应所述可操作对象的预定操作时,从所述网页中获取所述可操作对象对应的操作指令,包括:当接收到对应所述可操作对象的预定操作时,所述内嵌网页获取其中包含的所述可操作对象对应的操作指令;When the predetermined operation corresponding to the operable object is received, acquiring an operation instruction corresponding to the operable object from the webpage includes: when receiving a predetermined operation corresponding to the operable object, The embedded webpage obtains an operation instruction corresponding to the operable object included therein;
    所述将所述操作指令发送给所述客户端,包括:所述内嵌网页发送携带有上所述操作指令的网页消息,以使所述客户端在所述网页消息中提取所述操作指令。Sending the operation instruction to the client, the embedded webpage sending a webpage message carrying the operation instruction, so that the client extracts the operation instruction in the webpage message .
  16. 根据权利要求14所述的终端,其特征在于,所述加载并显示网页,包括:浏览器加载并显示网页;The terminal according to claim 14, wherein the loading and displaying the webpage comprises: loading and displaying the webpage by the browser;
    所述当接收到对应所述可操作对象的预定操作时,从所述网页中获取所述可操作对象对应的操作指令,包括:当接收到对应所述可操作对象的预定操作时,所述浏览器获取所述网页中所述可操作对象对应的网页执行代码中记录的操作指令; When the predetermined operation corresponding to the operable object is received, acquiring an operation instruction corresponding to the operable object from the webpage includes: when receiving a predetermined operation corresponding to the operable object, The browser acquires an operation instruction recorded in a webpage execution code corresponding to the operable object in the webpage;
    所述将所述操作指令发送给所述客户端,包括:所述浏览器将所述操作指令发送给所述客户端。The sending the operation instruction to the client includes: the browser sending the operation instruction to the client.
  17. 根据权利要求16所述的终端,其特征在于,所述浏览器将所述操作指令发送给所述客户端,包括:The terminal according to claim 16, wherein the browser sends the operation instruction to the client, including:
    所述浏览器通过所述网页中记录的所述可操作对象对应的客户端标识,查找注册表,获得预定地址,并通过所述预定地址将所述操作指令发送给所述客户端。The browser searches the registry through the client identifier corresponding to the operable object recorded in the webpage, obtains a predetermined address, and sends the operation instruction to the client by using the predetermined address.
  18. 根据权利要求17所述的终端,其特征在于,所述浏览器通过所述网页中记录的所述可操作对象对应的客户端标识,查找注册表,获得预定地址,包括:The terminal according to claim 17, wherein the browser searches for a registry by using a client identifier corresponding to the operable object recorded in the webpage to obtain a predetermined address, including:
    所述浏览器使用自身或者内置插件,通过所述网页中记录的所述可操作对象对应的客户端标识,查找注册表,获得预定地址。The browser uses its own or built-in plug-in to search the registry through the client identifier corresponding to the operable object recorded in the webpage to obtain a predetermined address.
  19. 根据权利要求16所述的终端,其特征在于,所述浏览器加载并显示网页,包括:The terminal according to claim 16, wherein the browser loads and displays the webpage, including:
    所述浏览器在所述客户端通过操作系统的应用程序编程接口API的调用下加载并显示网页。The browser loads and displays the web page under the call of the client through the application programming interface API of the operating system.
  20. 根据权利要求14所述的终端,其特征在于,The terminal according to claim 14, wherein
    所述操作指令为未携带有命令行参数的启动指令;所述根据所述操作指令执行相应的操作,包括:启动所述客户端的主程序;或者,The operation instruction is a startup instruction that does not carry a command line parameter; and the performing the corresponding operation according to the operation instruction includes: starting a main program of the client; or
    所述操作指令为携带有命令行参数的启动指令;所述根据所述操作指令执行相应的操作,包括:启动所述客户端的主程序,并执行所述命令行参数所对应的操作;或者,The operation instruction is a startup instruction carrying a command line parameter; the performing the corresponding operation according to the operation instruction includes: starting a main program of the client, and executing an operation corresponding to the command line parameter; or
    所述操作指令为业务开启指令;所述根据所述操作指令执行相应的操作,包括:控制所述客户端的主程序开启指定业务;或者,The operation instruction is a service opening instruction; the performing the corresponding operation according to the operation instruction, comprising: controlling a main program of the client to start a specified service; or
    所述操作指令为业务关闭指令;所述根据所述操作指令执行相应的操作,包括:控制所述客户端的主程序结束指定业务;或者,The operation instruction is a service shutdown instruction; the performing the corresponding operation according to the operation instruction, comprising: controlling the main program of the client to end the designated service; or
    所述操作指令为升级指令;所述根据所述操作指令执行相应的操作,包括: 控制对所述客户端的主程序进行在线升级。 The operation instruction is an upgrade instruction; the performing the corresponding operation according to the operation instruction, including: Control online upgrade of the client's main program.
PCT/CN2014/094851 2013-12-24 2014-12-24 Operation response method, client, browser and system WO2015096747A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310721914.2A CN103729425B (en) 2013-12-24 2013-12-24 Operate response method, client, browser and system
CN201310721914.2 2013-12-24

Publications (1)

Publication Number Publication Date
WO2015096747A1 true WO2015096747A1 (en) 2015-07-02

Family

ID=50453499

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/094851 WO2015096747A1 (en) 2013-12-24 2014-12-24 Operation response method, client, browser and system

Country Status (2)

Country Link
CN (1) CN103729425B (en)
WO (1) WO2015096747A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111128145A (en) * 2018-10-31 2020-05-08 佳能株式会社 Electronic device, control method, and storage medium
CN111538922A (en) * 2019-01-18 2020-08-14 百度在线网络技术(北京)有限公司 Link skip method, application client, device and storage medium
CN111680066A (en) * 2020-05-25 2020-09-18 泰康保险集团股份有限公司 Information processing method, information processing device, storage medium and electronic equipment

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729425B (en) * 2013-12-24 2018-11-16 腾讯科技(深圳)有限公司 Operate response method, client, browser and system
CN104809213B (en) * 2015-04-29 2017-04-05 努比亚技术有限公司 Start the methods, devices and systems of application software client
CN107016000A (en) * 2016-01-28 2017-08-04 五八同城信息技术有限公司 The method and device of exhibition information
CN106230601B (en) * 2016-09-09 2019-05-17 武汉斗鱼网络科技有限公司 A kind of client embeds the exchange of token method and system of webpage
CN106899455A (en) * 2017-03-07 2017-06-27 广州优视网络科技有限公司 The method and apparatus that a kind of client is interacted with webpage
CN108111676B (en) * 2017-12-14 2021-06-08 维沃移动通信有限公司 Application program control method, mobile terminal and computer readable storage medium
CN110674436B (en) * 2018-06-15 2022-12-23 视联动力信息技术股份有限公司 Data processing method and device based on browser
CN110069308B (en) * 2019-04-22 2020-11-24 北京字节跳动网络技术有限公司 Page starting method and device, electronic equipment and storage medium
CN110633163B (en) * 2019-09-26 2022-12-09 深圳市七星石科技有限公司 Development method for preventing application program from crashing based on multi-process server
CN110691136B (en) * 2019-09-29 2022-01-21 广州华多网络科技有限公司 Data interaction method and device, electronic equipment and storage medium
CN111190492B (en) * 2019-12-25 2023-07-18 曙光信息产业(北京)有限公司 Method and device for starting KVM

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010016873A1 (en) * 2000-02-15 2001-08-23 International Business Machines Corporation Method for acquiring content information, and software product, collaboration system and collaboration server for acquiring content information
CN101770517A (en) * 2010-01-14 2010-07-07 深圳市同洲电子股份有限公司 Method and device for navigating embedded browser and receiving terminal of digital television
CN102609522A (en) * 2012-02-09 2012-07-25 张士益 Integrated interaction control method and system of website information and client programs
CN103136034A (en) * 2011-11-25 2013-06-05 腾讯科技(深圳)有限公司 Method and browser of processing information
CN103729425A (en) * 2013-12-24 2014-04-16 腾讯科技(深圳)有限公司 Operation response method, client, browser and operation response system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101500002A (en) * 2008-01-28 2009-08-05 中国科学院声学研究所 Fusion publishing method and apparatus oriented to Web content
CN102169486A (en) * 2010-02-25 2011-08-31 腾讯科技(深圳)有限公司 File downloading method and device
CN102868590B (en) * 2011-07-08 2017-09-12 腾讯科技(北京)有限公司 It is a kind of to call the method and system of client by embedding webpage
CN102946343B (en) * 2012-10-15 2015-12-16 腾讯科技(深圳)有限公司 The method and system of access audio frequency and video community virtual room

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010016873A1 (en) * 2000-02-15 2001-08-23 International Business Machines Corporation Method for acquiring content information, and software product, collaboration system and collaboration server for acquiring content information
CN101770517A (en) * 2010-01-14 2010-07-07 深圳市同洲电子股份有限公司 Method and device for navigating embedded browser and receiving terminal of digital television
CN103136034A (en) * 2011-11-25 2013-06-05 腾讯科技(深圳)有限公司 Method and browser of processing information
CN102609522A (en) * 2012-02-09 2012-07-25 张士益 Integrated interaction control method and system of website information and client programs
CN103729425A (en) * 2013-12-24 2014-04-16 腾讯科技(深圳)有限公司 Operation response method, client, browser and operation response system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111128145A (en) * 2018-10-31 2020-05-08 佳能株式会社 Electronic device, control method, and storage medium
CN111538922A (en) * 2019-01-18 2020-08-14 百度在线网络技术(北京)有限公司 Link skip method, application client, device and storage medium
CN111538922B (en) * 2019-01-18 2023-11-21 百度在线网络技术(北京)有限公司 Link jump method, application client, device and storage medium
CN111680066A (en) * 2020-05-25 2020-09-18 泰康保险集团股份有限公司 Information processing method, information processing device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN103729425A (en) 2014-04-16
CN103729425B (en) 2018-11-16

Similar Documents

Publication Publication Date Title
WO2015096747A1 (en) Operation response method, client, browser and system
WO2017008551A1 (en) Bullet screen display method and apparatus
US11864248B2 (en) Application function implementation method and electronic device
WO2016150331A1 (en) Method and device for operating game client
US9489469B2 (en) Page display method, apparatus and terminal
US20160314219A1 (en) Method and apparatus for invoking application programming interface
CN108039963B (en) Container configuration method and device and storage medium
WO2018077041A1 (en) Method and apparatus for running application
WO2016127795A1 (en) Service processing method, server, and terminal
WO2014206143A1 (en) Method, apparatus and device for displaying number of unread messages
CN105975190B (en) Graphical interface processing method, device and system
CN106254910B (en) Method and device for recording image
WO2018095130A1 (en) Method and system for determining duration of live streaming
CN106406924B (en) Control method and device for starting and quitting picture of application program and mobile terminal
CN110020293B (en) Multimedia data display method, device and storage medium
US20140351212A1 (en) Method and apparatus for processing reading history
WO2015010466A1 (en) Information display method and apparatus, and mobile terminal
WO2019007414A1 (en) Method for realizing support of application for multiple languages, storage device, and mobile terminal
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
WO2014153998A1 (en) Method for controlling process of application and computer system
CN111557097B (en) Control method of power key in virtual remote controller and terminal
WO2014166307A1 (en) Method for determining performance of process of application and computer system
CN106095423B (en) Method, terminal and server for providing browsing service
WO2014026581A1 (en) Information management method, client, and mobile terminal
CN108959062B (en) Webpage element acquisition method and device

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

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 1205N DATED 30/08/2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14874126

Country of ref document: EP

Kind code of ref document: A1