CN109710331A - A method of calling local application from webpage - Google Patents

A method of calling local application from webpage Download PDF

Info

Publication number
CN109710331A
CN109710331A CN201811610798.6A CN201811610798A CN109710331A CN 109710331 A CN109710331 A CN 109710331A CN 201811610798 A CN201811610798 A CN 201811610798A CN 109710331 A CN109710331 A CN 109710331A
Authority
CN
China
Prior art keywords
program
application
catalogue
information
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811610798.6A
Other languages
Chinese (zh)
Inventor
黄华
肖海一
宋梦月
易平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Yi Model Polytron Technologies Inc
Original Assignee
Wuhan Yi Model Polytron Technologies Inc
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 Wuhan Yi Model Polytron Technologies Inc filed Critical Wuhan Yi Model Polytron Technologies Inc
Priority to CN201811610798.6A priority Critical patent/CN109710331A/en
Publication of CN109710331A publication Critical patent/CN109710331A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The method that the present invention relates to a kind of to call local application from webpage, it include: S1, the linking button for clicking web terminal, obtain the information for needing to use in the application, then clipbook object is created, the information of needs is copied to Clipboard, the href value of link is then revised as VirtualFactory;S2, link find the HKEY_CLASSES_ROOT catalogue under computer registration table root according to modified href value, then find catalogue VirtualFactory under this catalogue, and the installation path for obtaining program finds application file startup program;After S3, program starting, the parameter in shear plate is obtained, value is transmitted to the place for needing to use;The present invention solves and can not limit the next customized URLProtocol of client, and value can be all got in application program without quantity limitation come Transfer Parameters by shear plate.

Description

A method of calling local application from webpage
Technical field
The present invention relates to technical field of data processing, specifically a kind of side that local application is called from webpage Method.
Background technique
When doing web application, we be frequently encountered in web call local application the problem of, such as A button is clicked in web, then opens oneself is write or others application program.
The technology called at present is generally acknowledged several ways, and js calls activeObject to handle, but this is related to To the problem of safety, and can only be just able to achieve at ie;Application program is called using customized URL Protocol, but It is the path of program is fixed;And it can not effective Transfer Parameters.
The mode of customized URL Protocol is more convenient, but customized path be it is fixed, use can not be limited The operation at family.
Based on this, for limitation present in above-mentioned status, the invention proposes one kind to call local answer from webpage With the method for program.
Summary of the invention
It is an object of the invention to aiming at the defects existing in the prior art, provide one kind to call locally applied journey from webpage The method of sequence.
The technical solution adopted by the present invention to solve the technical problems is:
A method of calling local application from webpage, comprising the following steps:
S1, the linking button for clicking web terminal obtain the information for needing to use in the application, then create clipbook Object copies to Clipboard the information of needs, and the href value of link is then revised as VirtualFactory, wherein VirtualFactory is a catalogue of the customized URL Protocol under registration table;
The HKEY_CLASSES_ROOT under computer registration table root is found in S2, link according to modified href value Catalogue, then catalogue VirtualFactory is found under this catalogue, the installation path for obtaining program finds application file and opens Dynamic program;
After S3, program starting, the parameter in shear plate is obtained, value is transmitted to the place for needing to use, then empties shearing The information of plate.
Further, the step S1 specifically:
First the customized installation path of user is write using reg to change text in the text of suffix when the application is installed Part is stored in the installation kit of this application program;
Application program can be automatically opened when application program is installed, program allows program to execute suffix after opening be reg File, by some relevant information of program be written in the registration table of computer so as to subsequent web pages calling;
The method of the entitled dvirtualFactory of invoking page method creates clipbook object in this method, will need Parameter copy to Clipboard;
To one chained address of link clicked after the success of shear plate assignment, it is worth for the machine computer registration table with using journey The catalogue of sequence information.
Compared with prior art, the beneficial effects of the present invention are:
1, the Google's browser of the invention that solves calls local exe program (to click some button opening on the page It is already installed on an application program of the machine), the actual installation path of application program is programmed into pair of registration table by when installation In the file answered, this addresses the problem that can not limit client to carry out customized URLProtocol, parameter also is realized using shear plate Transmitting;
2, the present invention writes the customized installation path of user when installation after client selects installation path automatically Information solves the problems, such as to need client's manual modification, meanwhile, by shear plate come Transfer Parameters, limited without quantity, it can The parameter needed to be all put into shear plate, value can be all got in application program.
Detailed description of the invention
Fig. 1 is the overall flow schematic diagram in one embodiment of the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
As shown in Figure 1, the method that the embodiment of the invention provides a kind of to call local application from webpage, including with Lower step:
S1, the linking button for clicking web terminal obtain the information for needing to use in the application, then create clipbook Object copies to Clipboard the information of needs, and the href value of link is then revised as VirtualFactory, wherein VirtualFactory is a catalogue of the customized URL Protocol under registration table;
The HKEY_CLASSES_ROOT under computer registration table root is found in S2, link according to modified href value Catalogue, then catalogue VirtualFactory is found under this catalogue, the installation path for obtaining program finds application file and opens Dynamic program;
After S3, program starting, the parameter in shear plate is obtained, value is transmitted to the place for needing to use, then empties shearing The information of plate.
When it is implemented, the step S1 specifically:
First the customized installation path of user is write using reg to change text in the text of suffix when the application is installed Part is stored in the installation kit of this application program;
Application program can be automatically opened when application program is installed, program allows program to execute suffix after opening be reg File, by some relevant information of program be written in the registration table of computer so as to subsequent web pages calling;
The method of the entitled dvirtualFactory of invoking page method creates clipbook object in this method, will need Parameter copy to Clipboard;
To one chained address of link clicked after the success of shear plate assignment, it is worth for the machine computer registration table with using journey The catalogue of sequence information.
In the above-mentioned technical solutions, the peace that application program is written to the registration table of computer using .reg file generally acknowledged at present Dress path is write dead, and the information of installation procedure in user's manual modification registration table, in this way use are needed after program installation With regard to inconvenient.The method that the present invention uses is to write user automatically when installation certainly after client selects installation path The installation path information of definition solves the problems, such as to need client's manual modification.
Meanwhile the method for Transfer Parameters generally acknowledged at present is to splice parameter behind chained address, the parameter transmitted in this way Small number, the parameter transmitted in this way have character length limitation when application program obtains, are unable to satisfy our need It wants.The method that the present invention uses is limited, the parameter of needs can all be put without quantity come Transfer Parameters by shear plate To in shear plate, value can be all got in application program.
The basic principles, main features and advantages of the present invention have been shown and described above.The technology of the industry Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the above embodiments and description only describe this The principle of invention, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these changes Change and improvement all fall within the protetion scope of the claimed invention.The claimed scope of the invention by appended claims and its Equivalent thereof.

Claims (2)

1. a kind of method for calling local application from webpage, which comprises the following steps:
S1, the linking button for clicking web terminal obtain the information for needing to use in the application, then create clipbook object, The information of needs is copied to Clipboard, the href value of link is then revised as VirtualFactory, wherein VirtualFactory is a catalogue of the customized URL Protocol under registration table;
The HKEY_CLASSES_ROOT catalogue under computer registration table root is found in S2, link according to modified href value, Catalogue VirtualFactory is found under this catalogue again, the installation path for obtaining program finds application file starting journey Sequence;
After S3, program starting, the parameter in shear plate is obtained, value is transmitted to the place for needing to use, then empties shear plate Information.
2. a kind of method for calling local application from webpage according to claim 1, which is characterized in that the step Rapid S1 specifically:
First the customized installation path of user is write using reg to change file and depositing in the text of suffix when the application is installed It is placed in the installation kit of this application program;
Application program can be automatically opened when application program is installed, program allows program to execute the text that suffix is reg after opening Some relevant information of program are written in the registration table of computer so as to subsequent web pages calling by part;
The method of the entitled dvirtualFactory of invoking page method creates clipbook object, by the ginseng of needs in this method Number copies to Clipboard;
To one chained address of link clicked after the success of shear plate assignment, it is worth and believes for the machine computer registration table with application program The catalogue of breath.
CN201811610798.6A 2018-12-27 2018-12-27 A method of calling local application from webpage Pending CN109710331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811610798.6A CN109710331A (en) 2018-12-27 2018-12-27 A method of calling local application from webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811610798.6A CN109710331A (en) 2018-12-27 2018-12-27 A method of calling local application from webpage

Publications (1)

Publication Number Publication Date
CN109710331A true CN109710331A (en) 2019-05-03

Family

ID=66258676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811610798.6A Pending CN109710331A (en) 2018-12-27 2018-12-27 A method of calling local application from webpage

Country Status (1)

Country Link
CN (1) CN109710331A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247901A (en) * 2019-05-29 2019-09-17 苏宁云计算有限公司 The cross-platform method for exempting from close sign-on access, system and equipment
CN110276038A (en) * 2019-06-27 2019-09-24 中国石油集团东方地球物理勘探有限责任公司 A kind of data processing method
CN110309476A (en) * 2019-07-05 2019-10-08 上海中通吉网络技术有限公司 The method and device of web browser calling local application
CN111309399A (en) * 2020-02-26 2020-06-19 北京思特奇信息技术股份有限公司 Method, system, medium and device for starting easy-to-ask native client
CN111708501A (en) * 2020-06-23 2020-09-25 北京思特奇信息技术股份有限公司 Entrance ticket remote safe printing system and method
CN113268277A (en) * 2021-04-27 2021-08-17 深圳震有科技股份有限公司 Web-based client access method and terminal equipment
CN113448654A (en) * 2020-12-07 2021-09-28 北京新氧科技有限公司 Interaction method and device for web application program and native application program
CN113778714A (en) * 2021-09-13 2021-12-10 北京技德系统技术有限公司 Linux-compatible Android-compatible shear plate sharing method and device
CN114297539A (en) * 2021-11-29 2022-04-08 山东齐鲁数通科技有限公司 Quick access method, system and terminal for third-party application

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786565A (en) * 2016-02-24 2016-07-20 锐达互动科技股份有限公司 Method for calling background control program through WEB end
CN106372250A (en) * 2016-09-23 2017-02-01 郑州云海信息技术有限公司 Parameter passing method and device capable of starting local application through URL protocol
CN107092534A (en) * 2017-04-22 2017-08-25 李虎 A kind of web site calls the method and device of local program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786565A (en) * 2016-02-24 2016-07-20 锐达互动科技股份有限公司 Method for calling background control program through WEB end
CN106372250A (en) * 2016-09-23 2017-02-01 郑州云海信息技术有限公司 Parameter passing method and device capable of starting local application through URL protocol
CN107092534A (en) * 2017-04-22 2017-08-25 李虎 A kind of web site calls the method and device of local program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
春哥也编程: ""从网页Web上调用本地应用程序(.jar、.exe)的主流处理方法"", 《WWW.CNBLOGS.COM/ZCY_SOFT/P/3542501.HTML》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247901A (en) * 2019-05-29 2019-09-17 苏宁云计算有限公司 The cross-platform method for exempting from close sign-on access, system and equipment
CN110276038A (en) * 2019-06-27 2019-09-24 中国石油集团东方地球物理勘探有限责任公司 A kind of data processing method
CN110309476A (en) * 2019-07-05 2019-10-08 上海中通吉网络技术有限公司 The method and device of web browser calling local application
CN110309476B (en) * 2019-07-05 2021-05-25 上海中通吉网络技术有限公司 Method and device for calling local application program by webpage browser
CN111309399A (en) * 2020-02-26 2020-06-19 北京思特奇信息技术股份有限公司 Method, system, medium and device for starting easy-to-ask native client
CN111708501A (en) * 2020-06-23 2020-09-25 北京思特奇信息技术股份有限公司 Entrance ticket remote safe printing system and method
CN113448654A (en) * 2020-12-07 2021-09-28 北京新氧科技有限公司 Interaction method and device for web application program and native application program
CN113448654B (en) * 2020-12-07 2024-03-01 北京新氧科技有限公司 Interaction method and device for web application program and native application program
CN113268277A (en) * 2021-04-27 2021-08-17 深圳震有科技股份有限公司 Web-based client access method and terminal equipment
CN113778714A (en) * 2021-09-13 2021-12-10 北京技德系统技术有限公司 Linux-compatible Android-compatible shear plate sharing method and device
CN113778714B (en) * 2021-09-13 2024-01-09 北京技德系统技术有限公司 Shared shear plate method and device compatible with Android for Linux
CN114297539A (en) * 2021-11-29 2022-04-08 山东齐鲁数通科技有限公司 Quick access method, system and terminal for third-party application

Similar Documents

Publication Publication Date Title
CN109710331A (en) A method of calling local application from webpage
CN104866383B (en) Interface calling method and device and terminal
US9021367B2 (en) Metadata capture for screen sharing
CN104980512B (en) It is a kind of to provide the method and apparatus of target object based on mobile application
US8719706B2 (en) Cloud-based application help
CN109033406B (en) Method, apparatus and storage medium for searching blockchain data
US7801996B2 (en) Systems and methods for providing a local client proxy
US9727354B2 (en) System and methods for loading an application and its modules in a client device
CN109033403B (en) Method, apparatus and storage medium for searching blockchain data
US11252148B2 (en) Secure web application delivery platform
RU2008122403A (en) APPENDIX ACTIVE NOTES
CN104317570B (en) The apparatus and method of dynamic analysis Web applications
DE112010004847T5 (en) Managed channel for asynchronous requests
CN110808868B (en) Test data acquisition method and device, computer equipment and storage medium
US9292252B2 (en) Methods and apparatus for voiced-enabling a web application
CN106446617B (en) A kind of static page access method with source file defencive function
US20070050476A1 (en) Mechanism for generating dynamic content without a web server
CN109240664A (en) A kind of method and terminal acquiring user behavior information
WO2019000897A1 (en) Data acquisition method and device
US9135232B2 (en) Inputting information into an electronic form
CN102063560A (en) Method for automatically scoring in steps in computer test and system thereof
CN110941471A (en) Method and device for internationalizing basic data of software system
CN109145209B (en) Method, apparatus and storage medium for searching blockchain data
CN105488054B (en) A kind of method and device of browsing pictures
JP7201098B2 (en) Information linkage system and information linkage method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190503