CN110569093A - Method for managing desktop application program and realizing plug-in based on embedded browser - Google Patents
Method for managing desktop application program and realizing plug-in based on embedded browser Download PDFInfo
- Publication number
- CN110569093A CN110569093A CN201810466155.2A CN201810466155A CN110569093A CN 110569093 A CN110569093 A CN 110569093A CN 201810466155 A CN201810466155 A CN 201810466155A CN 110569093 A CN110569093 A CN 110569093A
- Authority
- CN
- China
- Prior art keywords
- plug
- browser
- desktop application
- setting
- embedded browser
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
the invention relates to a method for managing a desktop application program based on an embedded browser and realizing plug-in, which comprises the following steps: s1, creating a desktop application program; s2, setting parameters; s3, starting the embedded browser, acquiring a loading address and loading a plug-in program; s4, creating a parallel page of the browser and the plug-in process, adding a page management queue, supporting page dragging, and monitoring whether the operation is normal or not in real time; and S5, storing the configuration related data for reusing the same configuration information starting program, realizing the plug-in process between the webpage object and the desktop application program, performing multi-screen operation on the webpage object, and enabling a user to start a browser and load a plug-in more conveniently and quickly. The method of the invention can automatically complete the loading of the plug-in when the embedded browser is started, and can detect the normal operation between the browser process and the plug-in time.
Description
Technical Field
The invention belongs to the technical field of multiprocess management and browser plug-in display, and particularly relates to a method for managing a desktop application program based on an embedded browser and realizing plug-in.
background
With the rapid development of computer network technology, people have higher and higher requirements on various application software, and under normal conditions, when a plug-in needs to be loaded by using a traditional embedded browser, the plug-in needs to be manually completed, and when people need to start N (N is larger than or equal to 1) embedded browser processes, N (N is larger than or equal to 1) operations need to be manually completed, which often wastes a great deal of time and energy to perform tedious operations.
Disclosure of Invention
technical problem to be solved
The invention mainly aims to provide a desktop application program management and plug-in realization method based on an embedded browser, aiming at solving the problems that the loading of a plug-in can be automatically completed when the embedded browser is started, the normal operation between a browser process and the plug-in can be timely detected, and the associated browser process and the plug-in can be timely processed if problems occur, so that the long-time stable operation between the browser process and the plug-in is ensured, and a large amount of manpower is saved to maintain the normal operation of the browser process and the plug-in.
(II) technical scheme
In order to achieve the purpose, the invention provides a desktop application program management and plug-in realization method based on an embedded browser.
A method for managing and realizing plug-in of desktop application programs based on an embedded browser comprises the following steps:
S1, creating a desktop application program;
s2, setting parameters, including the parameter setting of browser closing overtime and the parameter setting of plug-in;
S3, starting the embedded browser, acquiring a loading address and loading a plug-in program;
S4, creating a parallel page of the browser and the plug-in process, adding a page management queue, supporting page dragging, and monitoring whether the operation is normal or not in real time;
And S5, storing the configuration related data for the program to be started by using the same configuration information again, and realizing the plug-in process between the webpage object and the desktop application program and the multi-screen operation of the webpage object.
Preferably, after the desktop application is started to perform parameter setting, in step S2, after the browser is abnormal in parameter setting, the time setting for closing and restarting the browser should be no less than 20 seconds.
Preferably, after the desktop application is started to perform parameter setting, in step S2, the setting of the plug-in parameter in number setting includes: code parameter setting, autoStart setting, debug mode setting, JS path setting, plug-in path setting, time setting when a plug-in is closed and then restarted when an exception occurs.
Preferably, after the desktop application is started to perform parameter setting, in step S2, in the plug-in parameter setting, after the plug-in is closed when an exception occurs, the time setting for restarting the plug-in should be no less than 20 seconds.
Preferably, from the start of the desktop application, the embedded browser in step S3 is in the multi-process mode, and no more than 15 browser clients preset may be started.
Preferably, according to a preset plug-in address, a preset number of plug-in programs not exceeding 15 can be started, and whether a trigger operation for triggering the terminal to enter the icon switching state is acquired or not is detected.
Preferably, in step S4, the method includes creating a parallel relationship between the browser and the plug-in process, a page display position, and a loading address attribute, adding a page management queue and supporting page dragging, and monitoring whether the browser normally operates in real time.
Preferably, in step S5, the configuration file is saved to the configuration data in the desktop application for starting the program again using the same configuration information.
Preferably, in the steps S3, S4 and S5, the desktop application module, the embedded browser module and the plug-in process module are jointly created in a B/S mode or a C/S mode.
Compared with the prior art, the invention has the following beneficial effects: the invention adopts the method of desktop application program management based on the embedded browser and realizes the plug-in, can conveniently and quickly start the browser client, quickly load the plug-in, and simultaneously can realize the safety of monitoring the browser and the process operation of the plug-in.
drawings
The accompanying drawings, which are incorporated in and constitute a part of this patent, illustrate embodiments of the invention and, together with the description, serve to explain the invention without limitation.
FIG. 1 is a schematic flow diagram of a method according to an embodiment of the invention.
Fig. 2 is a block diagram of a system configuration according to an embodiment of the present invention.
Detailed Description
the following detailed description of the present patent is to be read in connection with the accompanying drawings and is given by way of illustration and explanation only and is not intended to limit the scope of the present patent. Furthermore, features from embodiments in this document and from different embodiments may be combined accordingly by a person skilled in the art from the description in this document.
referring to fig. 1, the present invention provides a method for managing and implementing plug-in of a desktop application based on an embedded browser, and the specific implementation manner is as follows:
(1) Creating a desktop application: the method includes the steps that a corresponding desktop application program is created according to actual requirements of a user, and if a current computer is used for the first time, an instruction file of instruction bat needs to be executed first, and then a BsProcessManage.
(2) Setting parameters: wherein, the maximum quantity of starting plug-in components and browser clients is 15, and the browser parameters are set as follows: after the browser is abnormal, the time setting for closing and restarting the browser is not less than 20 seconds; and the plug-in parameter setting comprises the following contents: when the plug-in is abnormal, the time setting for closing and restarting the plug-in is not less than 20 seconds, the code setting (the mode setting for loading the JS file), the autoStart setting (the default startup setting when the computer is abnormal), the debugging mode setting, the path setting of the folder where the JS file is located and the path setting of the folder where the plug-in is located, and the next operation can be carried out after the parameter setting is finished.
(3) Starting the embedded browser: after the embedded browser is started, the page management interface queue generates information corresponding to the browser process and the plug-in process, and at the moment, a loading address is obtained and the plug-in program is loaded.
(4) And establishing a parallel page of the browser and the plug-in process, adding a page management queue and supporting page dragging, monitoring whether the browser normally operates in real time, if the browser process or the plug-in process is abnormal, closing the embedded browser, restarting the embedded browser and loading the plug-in.
(5) After the relevant starting information is set, the 'setting' in the page management interface is clicked to store the configuration information, and when the application program is started again, the configuration information stored last time is defaulted.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and substitutions can be made without departing from the patented principle of the present invention, and these modifications and substitutions should also be regarded as the protection scope of the present invention.
Claims (10)
1. A method for managing and realizing plug-in of desktop application programs based on an embedded browser is characterized by comprising the following steps:
S1, creating a desktop application program;
S2, setting parameters, including browser closing overtime parameter setting and plug-in parameter setting;
S3, starting the embedded browser, acquiring a loading address and loading a plug-in program;
s4, creating a parallel page of the browser and the plug-in process, adding a page management queue, supporting page dragging, and monitoring whether the operation is normal or not in real time;
And S5, storing the configuration related data for the program to be started by using the same configuration information again, and realizing the plug-in process between the webpage object and the desktop application program and the multi-screen operation of the webpage object.
2. The method as claimed in claim 1, wherein in step S2, the time setting for restarting the browser after the browser is turned off after the browser is abnormal in the setting of the parameters should be no less than 20 seconds.
3. The method for managing and implementing plug-in based on desktop application of embedded browser as claimed in claim 1, wherein in said step S2, the setting of plug-in parameters in parameter setting includes: code parameter setting, autoStart setting, debug mode setting, JS path setting, plug-in path setting, time setting when a plug-in is closed and then restarted when an exception occurs.
4. The method for managing and implementing plug-in of desktop application based on embedded browser as claimed in claim 1, wherein in said step S2, the time setting for the plug-in to be closed and then restarted when the plug-in is abnormal should be not less than 20 seconds.
5. the method for managing and implementing plug-in of desktop application based on embedded browser as claimed in claim 2, wherein in said step S2, no more than 15 browser clients can be started.
6. The method for managing and implementing plug-in of desktop application based on embedded browser as claimed in claim 2, wherein in step S2, no more than 15 preset plug-ins can be started, and it is detected whether a trigger operation for triggering the terminal to enter the icon switching state is obtained.
7. the method for managing and implementing plug-in of desktop application based on embedded browser as claimed in claim 1, wherein in step S3, the embedded browser is in multi-process mode from the start of the desktop application.
8. The method as claimed in claim 3, wherein the step S4 includes creating a parallel relationship between the browser and the plug-in process, a page display position, and a loading address attribute, and adding a page management queue and supporting page dragging to monitor whether the operation is normal or not in real time.
9. the method as claimed in claim 1, wherein the step S5 is implemented by saving the configuration file to the configuration data in the desktop application for starting the program again using the same configuration information.
10. The method as claimed in claim 1, wherein in the steps S1, S3, S4 and S5, the desktop application module, the embedded browser module and the plug-in process module are created together in B/S mode or C/S mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810466155.2A CN110569093A (en) | 2018-05-17 | 2018-05-17 | Method for managing desktop application program and realizing plug-in based on embedded browser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810466155.2A CN110569093A (en) | 2018-05-17 | 2018-05-17 | Method for managing desktop application program and realizing plug-in based on embedded browser |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110569093A true CN110569093A (en) | 2019-12-13 |
Family
ID=68772466
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810466155.2A Pending CN110569093A (en) | 2018-05-17 | 2018-05-17 | Method for managing desktop application program and realizing plug-in based on embedded browser |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110569093A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111580878A (en) * | 2020-04-29 | 2020-08-25 | 浙江大华技术股份有限公司 | Method, device, equipment and medium for realizing linkage of page and client application |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103177095A (en) * | 2013-03-15 | 2013-06-26 | 成都三零凯天通信实业有限公司 | Embedded browser and implement method thereof |
CN103677823A (en) * | 2013-12-06 | 2014-03-26 | 北京奇虎科技有限公司 | Method and device for managing browser plug-ins |
CN106445503A (en) * | 2016-08-31 | 2017-02-22 | 武汉烽火众智数字技术有限责任公司 | Desktop application method and system based on embedded browser |
-
2018
- 2018-05-17 CN CN201810466155.2A patent/CN110569093A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103177095A (en) * | 2013-03-15 | 2013-06-26 | 成都三零凯天通信实业有限公司 | Embedded browser and implement method thereof |
CN103677823A (en) * | 2013-12-06 | 2014-03-26 | 北京奇虎科技有限公司 | Method and device for managing browser plug-ins |
CN106445503A (en) * | 2016-08-31 | 2017-02-22 | 武汉烽火众智数字技术有限责任公司 | Desktop application method and system based on embedded browser |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111580878A (en) * | 2020-04-29 | 2020-08-25 | 浙江大华技术股份有限公司 | Method, device, equipment and medium for realizing linkage of page and client application |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107451040B (en) | Method and device for positioning fault reason and computer readable storage medium | |
US20190332513A1 (en) | Method and apparatus for dealing with abnormality of application program and storage medium | |
EP2763034B1 (en) | Method and device for image-capturing application screen for use in mobile terminal | |
CN108804215B (en) | Task processing method and device and electronic equipment | |
US11960869B2 (en) | Android penetration method and device for implementing silent installation based on accessibility services | |
CN104794016A (en) | Mobile terminal crash testing and processing method and system | |
CN109325349A (en) | A kind of method for managing security, terminal device and computer readable storage medium | |
CN110650164B (en) | File uploading method and device, terminal and computer storage medium | |
WO2018019242A1 (en) | Self-recovery method and self-recovery system for web server | |
CN113407383B (en) | Main and standby system switching method and device, server and main and standby system | |
CA3129985A1 (en) | Abnormal operation environment restoration method and device, computer equipment and storage medium | |
CN106569917B (en) | Data backup method and mobile terminal | |
CN104461563A (en) | Method for remotely and regularly detecting newly added file of FTP server under linux | |
CN103870750B (en) | A kind of method and device for realizing equipment safety scanning in a browser | |
CN107222340A (en) | A kind of fault handling method and device based on cloud platform | |
CN104346279A (en) | Method and device for software testing | |
CN112380478A (en) | Webpage screenshot method and device, computer equipment and computer-readable storage medium | |
CN111124761B (en) | Equipment restarting method, device, equipment and medium | |
KR101974989B1 (en) | Method and apparatus for determining behavior information corresponding to a dangerous file | |
CN110928630A (en) | Activation control method, device and equipment for application program window and storage medium | |
CN110569093A (en) | Method for managing desktop application program and realizing plug-in based on embedded browser | |
CN114184885A (en) | Fault detection method, device and storage medium | |
CN114816482A (en) | Method and device for upgrading block storage service, computer equipment and storage medium | |
CN115600261A (en) | Data security protection method, device, equipment and medium | |
CN106598687B (en) | Script preheating method and device |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20191213 |
|
WD01 | Invention patent application deemed withdrawn after publication |