CN104461542A - Method and device for pop-up box warning processing - Google Patents

Method and device for pop-up box warning processing Download PDF

Info

Publication number
CN104461542A
CN104461542A CN201410758367.XA CN201410758367A CN104461542A CN 104461542 A CN104461542 A CN 104461542A CN 201410758367 A CN201410758367 A CN 201410758367A CN 104461542 A CN104461542 A CN 104461542A
Authority
CN
China
Prior art keywords
pop
box
display
error
error message
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.)
Granted
Application number
CN201410758367.XA
Other languages
Chinese (zh)
Other versions
CN104461542B (en
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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201410758367.XA priority Critical patent/CN104461542B/en
Publication of CN104461542A publication Critical patent/CN104461542A/en
Application granted granted Critical
Publication of CN104461542B publication Critical patent/CN104461542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for pop-up box warning processing. The method includes: when detecting running errors of an application, acquiring error information of the application; determining error level of the running errors of the application according to the error information, wherein the error level is error level preset according to severity of the running errors of the application; acquiring display parameters according to the error information and the determined error level, wherein the display parameters are parameters which are inputted by a user and used for setting pop-up box display modes of the running errors of the application; calling an application programming interface to generate a pop-up box on the basis of the display parameters; and displaying a generated pop-up box. By the method and device, the problem that display of the pop-up box cannot be adjusted flexibly according to the error type in related technologies is solved.

Description

The disposal route that pop-up box is reported to the police and device
Technical field
The present invention relates to pop-up box field, the disposal route of reporting to the police in particular to a kind of pop-up box and device.
Background technology
The situation run and make mistakes inevitably is there is in application program in operational process.When application program operation makes mistakes, usually can be undertaken reporting to the police to point out user to run by pop-up window on display interface and pop-up box and make mistakes.
Existing pop-up box at the placed in the middle and focus capture of screen, makes user can not carry out other operations usually, can only click and after processing this pop-up box, just can carry out other and operate.But, and makeing mistakes of not all needs user to process, after some application programs are run and are made mistakes, can regulate voluntarily and process, operate without the need to user, and when these error situations produce, still adopt above-mentioned treatment mechanism that the display of pop-up box cannot be adjusted neatly according to type of makeing mistakes, affect Consumer's Experience.
For the problem that the display of pop-up box in prior art cannot adjust neatly according to type of makeing mistakes, at present effective solution is not yet proposed.
Summary of the invention
The disposal route that fundamental purpose of the present invention is to provide a kind of pop-up box to report to the police and device, the problem that cannot adjust neatly according to type of makeing mistakes with the display solving pop-up box in prior art.
To achieve these goals, according to an aspect of the embodiment of the present invention, provide the disposal route that a kind of pop-up box is reported to the police.The disposal route that pop-up box according to the present invention is reported to the police can comprise: when detecting that application program operation makes mistakes, obtain the error message of above-mentioned application program; Determine that above-mentioned application program runs the error level of makeing mistakes according to above-mentioned error message, wherein, above-mentioned error level is run according to above-mentioned application program the errorlevel that the order of severity of makeing mistakes pre-sets; Obtain display parameter according to above-mentioned error message and the error level determined, above-mentioned display parameter are the parameter running the pop-up box display mode of makeing mistakes for arranging above-mentioned application program that user inputs; Invokes application DLL (dynamic link library) generates pop-up box based on above-mentioned display parameter; And the pop-up box that display generates.
Further, obtain display parameter according to above-mentioned error message and the error level determined can comprise: obtain location parameter according to above-mentioned error message and the above-mentioned error level determined, above-mentioned location parameter is the parameter of the display position for arranging above-mentioned pop-up box of above-mentioned user input, and the pop-up box that display generates can comprise: the pop-up box showing above-mentioned generation at above-mentioned display position place.
Further, obtain display parameter according to above-mentioned error message and the error level determined can comprise: obtain dimensional parameters according to above-mentioned error message and the above-mentioned error level determined, above-mentioned dimensional parameters is the parameter of the size for arranging above-mentioned pop-up box of above-mentioned user input, invokes application DLL (dynamic link library) generates pop-up box based on above-mentioned display parameter and can comprise: call above-mentioned application programming interface and generate the pop-up box corresponding with above-mentioned dimensional parameters according to above-mentioned dimensional parameters, the pop-up box that display generates can comprise: export and show the pop-up box corresponding with above-mentioned dimensional parameters generated.
Further, judge whether above-mentioned error level exceedes pre-set level; If judge that above-mentioned error level exceedes above-mentioned pre-set level, then show the pop-up box of above-mentioned generation until receive the control command of the pop-up box for the treatment of above-mentioned generation; If judge that above-mentioned error level does not exceed above-mentioned pre-set level, then, after the pop-up box Preset Time of the above-mentioned generation of display, close the pop-up box of above-mentioned generation.
Further, the pop-up box of above-mentioned generation will be shown on all elements on the display interface of the operating system residing for above-mentioned application program.
To achieve these goals, according to the another aspect of the embodiment of the present invention, provide the treating apparatus that a kind of pop-up box is reported to the police.The treating apparatus that pop-up box according to the present invention is reported to the police can comprise: the first acquiring unit, for when detecting that application program operation makes mistakes, obtains the error message of above-mentioned application program; Determining unit, for determining that according to above-mentioned error message above-mentioned application program runs the error level of makeing mistakes, wherein, above-mentioned error level is run according to above-mentioned application program the errorlevel that the order of severity of makeing mistakes pre-sets; Second acquisition unit, for obtaining display parameter according to above-mentioned error message and the error level determined, above-mentioned display parameter are the parameter running the pop-up box display mode of makeing mistakes for arranging above-mentioned application program that user inputs; Call unit, generates pop-up box for invokes application DLL (dynamic link library) based on above-mentioned display parameter; And display unit, for showing the pop-up box of generation.
Further, above-mentioned second acquisition unit can comprise: the first acquisition module, for obtaining location parameter according to above-mentioned error message and the above-mentioned error level determined, above-mentioned location parameter is the parameter of the display position for arranging above-mentioned pop-up box of above-mentioned user input, above-mentioned display unit can comprise: the first display module, for showing the pop-up box of above-mentioned generation at above-mentioned display position place.
Further, above-mentioned second acquisition unit can comprise: the second acquisition module, for obtaining dimensional parameters according to above-mentioned error message and the above-mentioned error level determined, above-mentioned dimensional parameters is the parameter of the size for arranging above-mentioned pop-up box of above-mentioned user input, above-mentioned call unit can comprise: calling module, the pop-up box corresponding with above-mentioned dimensional parameters is generated according to above-mentioned dimensional parameters for calling above-mentioned application programming interface, above-mentioned display unit can comprise: the second display module, for exporting and showing the pop-up box corresponding with above-mentioned dimensional parameters generated.
Further, above-mentioned display unit can comprise: judge module, for judging whether above-mentioned error level exceedes pre-set level; 3rd display module, if for judging that above-mentioned error level exceedes above-mentioned pre-set level, then show the pop-up box of above-mentioned generation until receive the control command of the pop-up box for the treatment of above-mentioned generation; Closing module, if for judging that above-mentioned error level does not exceed above-mentioned pre-set level, then, after the pop-up box Preset Time of the above-mentioned generation of display, closes the pop-up box of above-mentioned generation.
Further, above-mentioned display unit can comprise: the 4th display module, for the pop-up box by showing above-mentioned generation on all elements on the display interface of the operating system residing for above-mentioned application program.
According to inventive embodiments, by when detecting that application program operation makes mistakes, obtain the error message of application program; Run the error level of makeing mistakes according to error message determination application program, wherein, error level is run according to application program the errorlevel that the order of severity of makeing mistakes pre-sets; Obtain display parameter according to error message and the error level determined, display parameter are the parameter running the pop-up box display mode of makeing mistakes for arranging application program that user inputs; Invokes application DLL (dynamic link library) generates pop-up box based on display parameter; And the pop-up box that display generates, the problem that the display solving pop-up box in prior art cannot adjust neatly according to type of makeing mistakes, the effect that the display reaching pop-up box can adjust neatly according to type of makeing mistakes.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the disposal route of reporting to the police according to the pop-up box of the embodiment of the present invention; And
Fig. 2 is the schematic diagram of the treating apparatus of reporting to the police according to the pop-up box of the embodiment of the present invention.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged, in the appropriate case so that embodiments of the invention described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiments provide the disposal route that a kind of pop-up box is reported to the police.
Fig. 1 is the process flow diagram of the disposal route of reporting to the police according to the pop-up box of the embodiment of the present invention.As shown in Figure 1, it is as follows that the disposal route that this pop-up box is reported to the police can comprise step:
Step S102, when detecting that application program operation makes mistakes, obtains the error message of aforementioned applications program.
Step S104, runs the error level of makeing mistakes according to aforementioned error message determination aforementioned applications program, and wherein, aforementioned error level is run according to aforementioned applications program the errorlevel that the order of severity of makeing mistakes pre-sets.
Before the error message obtaining application program, the error message that this application program is run when makeing mistakes can be divided into different error levels according to the order of severity of makeing mistakes, such as, the error level arranged can comprise: A level, B level, C level, D level, wherein, error level is the error message of A level can be fatefulue error message, and the error message of this rank can be the information that must solve at once at short notice after occurring, if not emergency treatment, application crash may be caused; Error level is the error message of B level can be the error message of Materiality, the error message of this rank is the error message of A level relative to error level, can for there is no the information of necessary especially emergency treatment at short notice, but still need just to make application program normally run after the treatment; Error level is the error message of C level can be the error message of secondary property, and the error message of this rank can for not affecting the information that application program is normally run; Error level is the error message of D level can be general error message, and the error message of this rank is the error message of C level relative to error level, can be more secondary error message.According to the error level pre-set, determine that this application program runs the error level of error message when makeing mistakes, particularly, can be that the error message that the error message of acquisition and each error level comprise is mated, the error level residing for the error message matched is run the error level of makeing mistakes as application program.
Step S106, obtain display parameter according to aforementioned error message and the error level determined, aforementioned display parameter are the parameter running the pop-up box display mode of makeing mistakes for arranging aforementioned applications program that user inputs.
When application program operation makes mistakes, the pop-up box of error prompting can be ejected, the display mode of this pop-up box can be arranged as required, particularly, user can input the display parameter of corresponding pop-up box according to the error message pre-setting different errorlevel, in order to arrange the pop-up box of this error message.Wherein, these display parameter can be with the location parameter of the error level setting determined and/or according to the dimensional parameters of error message with the error level setting determined according to error message.When application program operation makes mistakes, according to the location parameter obtained, pop-up box is presented at corresponding display position on interface; And/or, according to the display size of dimensional parameters display pop-up box on interface obtained.
Step S108, invokes application DLL (dynamic link library) generates pop-up box based on aforementioned display parameter.
Usual pop-up box is generated by the application programming interface (Application Programming interface, referred to as API) of the operating system residing for invokes application.Particularly, pop-up box can for using HTML (Hypertext Markup Language) (Hyper Text Mark-up Language, referred to as HTML) generate, the element in this pop-up box can comprise header area, title icon district, error message viewing area, copy errors message area, X button, check Detail button and error message prompting.Wherein, dynamically can generate the HTML of this pop-up box with Javascript, add X button event, click and check detailed event, copy errors message event, user can arrange the title of this pop-up box, error level, width, highly, and error message.
Step S110, the pop-up box that display generates.
Specifically, the pop-up box that display generates can select corresponding display mode to show pop-up box according to the error message in pop-up box.Such as, when application program run-time error, if the error message in pop-up box is A level or B staging error information, then this pop-up box can stop always, until processed; If the error message in pop-up box is C level or D staging error information, then user can click X button directly by its closedown or the timed task calling Javascript, in Preset Time, automatically close this pop-up box.
According to the embodiment of the present invention, by determining that according to described error message described application program runs the error level of makeing mistakes, display parameter are obtained according to error message and the error level determined, these display parameter are the parameter running the pop-up box display mode of makeing mistakes for arranging described application program that user inputs, display parameter according to error level and acquisition generate corresponding pop-up box, the pop-up box realizing different error message displays is different, the problem that the display solving pop-up box in prior art cannot adjust neatly according to type of makeing mistakes, the effect that the display reaching pop-up box can adjust neatly according to type of makeing mistakes.
Preferably, in embodiments of the present invention, obtain display parameter according to aforementioned error message and the error level determined can comprise: obtain location parameter according to aforementioned error message and the aforementioned error level determined, aforementioned location parameter is the parameter of the display position for arranging aforementioned pop-up box of aforementioned user input.The pop-up box that display generates can comprise: the pop-up box showing aforementioned generation at aforementioned display position place.
Such as, when application program operation makes mistakes, pop-up box obtains location parameter according to error message and the error level determined, the highlighting of the display position of pop-up box on interface reduces from A level, B level, C level, D level successively.Particularly, if the errorlevel of error message in pop-up box is A level, then the position that this pop-up box ejects on interface can be in interface central authorities, like this, observably call user's attention also can process this error message in time to the error message in this pop-up box; If the errorlevel of error message in pop-up box is D level, then the position that this pop-up box ejects on interface can be in the lower right corner, interface, like this, and would not the operation of interference user in this application program.
According to the embodiment of the present invention, owing to obtaining location parameter according to error message and the error level determined, at the pop-up box that the display of display position place generates, the effect that the display position therefore reaching pop-up box can adjust neatly according to type of makeing mistakes.
Preferably, in embodiments of the present invention, obtain display parameter according to aforementioned error message and the error level determined can comprise: obtain dimensional parameters according to aforementioned error message and the aforementioned error level determined, aforementioned dimensions parameter is the parameter of the size for arranging aforementioned pop-up box of aforementioned user input.Invokes application DLL (dynamic link library) generates pop-up box based on aforementioned display parameter and can comprise: call aforementioned applications Program Interfaces and generate the pop-up box corresponding with aforementioned dimensions parameter according to aforementioned dimensions parameter.The pop-up box that display generates can comprise: export and show the pop-up box corresponding with aforementioned dimensions parameter generated.
Such as, when application program operation makes mistakes, pop-up box obtains dimensional parameters according to error message and the error level determined, the display size of pop-up box on interface diminishes from A level, B level, C level, D successively.Particularly, if the errorlevel of error message in pop-up box is A level, the size that then this pop-up box ejects on interface can be all larger than the area of the pop-up box of the error message of other grades, like this, observably call user's attention also this error message can be processed in time to the error message in this pop-up box; If the errorlevel of error message in pop-up box is D level, then the size that this pop-up box ejects on interface can be all less than the area of the pop-up box of the error message of other grades, like this, and would not the operation of interference user in this application program.
According to the embodiment of the present invention, owing to obtaining dimensional parameters according to error message and the error level determined, at the pop-up box that the display of display position place generates, the effect that the display size therefore reaching pop-up box can adjust neatly according to type of makeing mistakes.
Preferably, in embodiments of the present invention, the pop-up box that display generates can comprise: judge whether aforementioned error level exceedes pre-set level.If judge that aforementioned error level exceedes aforementioned pre-set level, then show the pop-up box of aforementioned generation until receive the control command of the pop-up box for the treatment of aforementioned generation.If judge that aforementioned error level does not exceed aforementioned pre-set level, then, after stating the pop-up box Preset Time of generation before display, close the pop-up box of aforementioned generation.
Such as, if the error level of error message in pop-up box B level and more than, then this pop-up box can rest on interface always, until this pop-up box receives the control command of user to it.If the error level of error message in pop-up box is below B level, then this pop-up box automatically can be closed in Preset Time, wherein can call the timed task of Javascript, is automatically closed by this pop-up box in 5 seconds.
According to the embodiment of the present invention, owing to error level and pre-set level being contrasted, therefore according to comparing result, can be set the residence time of pop-up box on interface, the effect that the displaying time reaching pop-up box can adjust neatly according to type of makeing mistakes.
Preferably, in embodiments of the present invention, the pop-up box that display generates can comprise: the pop-up box showing aforementioned generation on all elements on the display interface of the operating system residing for aforementioned applications program.By on all elements that pop-up box is presented at display interface, in order to play better reminding effect.
In the embodiment of the present invention, preferred pop-up box not focus capture, like this, user can not process this pop-up box and perform other operations.
The embodiment of the present invention additionally provides the treating apparatus that a kind of pop-up box is reported to the police.This device can realize its function by computer equipment.It should be noted that, the disposal route that the pop-up box that the treating apparatus that the pop-up box of the embodiment of the present invention is reported to the police may be used for performing the embodiment of the present invention and provides is reported to the police, the treating apparatus that the pop-up box that the disposal route that the pop-up box of the embodiment of the present invention is reported to the police also can be provided by the embodiment of the present invention is reported to the police performs.
Fig. 2 is the schematic diagram of the treating apparatus of reporting to the police according to the pop-up box of the embodiment of the present invention.As shown in Figure 2, the treating apparatus that this pop-up box is reported to the police can comprise: the first acquiring unit 10, determining unit 20, second acquisition unit 30, call unit 40 and display unit 50.
First acquiring unit 10, for when detecting that application program operation makes mistakes, obtains the error message of aforementioned applications program.
Determining unit 20 is for running the error level of makeing mistakes according to aforementioned error message determination aforementioned applications program, and wherein, aforementioned error level is run according to aforementioned applications program the errorlevel that the order of severity of makeing mistakes pre-sets.
Before the error message obtaining application program, the error message that this application program is run when makeing mistakes can be divided into different error levels according to the order of severity of makeing mistakes, such as, the error level arranged can comprise: A level, B level, C level, D level, wherein, error level is the error message of A level can be fatefulue error message, and the error message of this rank can be the information that must solve at once at short notice after occurring, if not emergency treatment, application crash may be caused; Error level is the error message of B level can be the error message of Materiality, the error message of this rank is the error message of A level relative to error level, can for there is no the information of necessary especially emergency treatment at short notice, but still need just to make application program normally run after the treatment; Error level is the error message of C level can be the error message of secondary property, and the error message of this rank can for not affecting the information that application program is normally run; Error level is the error message of D level can be general error message, and the error message of this rank is the error message of C level relative to error level, can be more secondary error message.According to the error level pre-set, determine that this application program runs the error level of error message when makeing mistakes, particularly, can be that the error message that the error message of acquisition and each error level comprise is mated, the error level residing for the error message matched is run the error level of makeing mistakes as application program.
Second acquisition unit 30 is for obtaining display parameter according to aforementioned error message and the error level determined, aforementioned display parameter are the parameter running the pop-up box display mode of makeing mistakes for arranging aforementioned applications program that user inputs.
When application program operation makes mistakes, the pop-up box of error prompting can be ejected, the display mode of this pop-up box can be arranged as required, particularly, user can input the display parameter of corresponding pop-up box according to the error message pre-setting different errorlevel, in order to arrange the pop-up box of this error message.Wherein, these display parameter can be with the location parameter of the error level setting determined and/or according to the dimensional parameters of error message with the error level setting determined according to error message.When application program operation makes mistakes, according to the location parameter obtained, pop-up box is presented at corresponding display position on interface; And/or, according to the display size of dimensional parameters display pop-up box on interface obtained.
Call unit 40 generates pop-up box for invokes application DLL (dynamic link library) based on aforementioned display parameter.
Usual pop-up box is generated by the application programming interface (Application Programming interface, referred to as API) of the operating system residing for invokes application.Particularly, pop-up box can for using HTML (Hypertext Markup Language) (Hyper Text Mark-up Language, referred to as HTML) generate, the element in this pop-up box can comprise header area, title icon district, error message viewing area, copy errors message area, X button, check Detail button and error message prompting.Wherein, dynamically can generate the HTML of this pop-up box with Javascript, add X button event, click and check detailed event, copy errors message event, user can arrange the title of this pop-up box, error level, width, highly, and error message.
Display unit 50 is for showing the pop-up box of generation.
Particularly, the pop-up box that display generates can select corresponding display mode to show pop-up box according to the error message in pop-up box.Such as, when application program run-time error, if the error message in pop-up box is A level or B staging error information, then this pop-up box can stop always, until processed; If the error message in pop-up box is C level or D staging error information, then user can click X button directly by its closedown or the timed task calling Javascript, in Preset Time, automatically close this pop-up box.
According to the embodiment of the present invention, by determining that according to described error message described application program runs the error level of makeing mistakes, display parameter are obtained according to error message and the error level determined, these display parameter are the parameter running the pop-up box display mode of makeing mistakes for arranging described application program that user inputs, display parameter according to error level and acquisition generate corresponding pop-up box, the pop-up box realizing different error message displays is different, the problem that the display solving pop-up box in prior art cannot adjust neatly according to type of makeing mistakes, the effect that the display reaching pop-up box can adjust neatly according to type of makeing mistakes.
Preferably, in embodiments of the present invention, aforementioned second acquisition unit 30 can comprise: the first acquisition module.First acquisition module is used for obtaining location parameter according to aforementioned error message and the aforementioned error level determined, aforementioned location parameter is the parameter of the display position for arranging aforementioned pop-up box of aforementioned user input.Aforementioned display unit 50 can comprise: the first display module.First display module is used for the pop-up box showing aforementioned generation at aforementioned display position place.
Such as, when application program operation makes mistakes, pop-up box obtains location parameter according to error message and the error level determined, the highlighting of the display position of pop-up box on interface reduces from A level, B level, C level, D level successively.Particularly, if the errorlevel of error message in pop-up box is A level, then the position that this pop-up box ejects on interface can be in interface central authorities, like this, observably call user's attention also can process this error message in time to the error message in this pop-up box; If the errorlevel of error message in pop-up box is D level, then the position that this pop-up box ejects on interface can be in the lower right corner, interface, like this, and would not the operation of interference user in this application program.
According to the embodiment of the present invention, owing to obtaining location parameter according to error message and the error level determined, at the pop-up box that the display of display position place generates, the effect that the display position therefore reaching pop-up box can adjust neatly according to type of makeing mistakes.
Preferably, in embodiments of the present invention, aforementioned second acquisition unit 30 can comprise: the second acquisition module.Second acquisition module is used for obtaining dimensional parameters according to aforementioned error message and the aforementioned error level determined, aforementioned dimensions parameter is the parameter of the size for arranging aforementioned pop-up box of aforementioned user input.Aforementioned call unit 40 can comprise: calling module.Calling module generates the pop-up box corresponding with aforementioned dimensions parameter for calling aforementioned applications Program Interfaces according to aforementioned dimensions parameter.Aforementioned display unit 50 can comprise: the second display module.Second display module is for exporting and showing the pop-up box corresponding with aforementioned dimensions parameter generated.
Such as, when application program operation makes mistakes, pop-up box obtains dimensional parameters according to error message and the error level determined, the display size of pop-up box on interface diminishes from A level, B level, C level, D successively.Particularly, if the errorlevel of error message in pop-up box is A level, the size that then this pop-up box ejects on interface can be all larger than the area of the pop-up box of the error message of other grades, like this, observably call user's attention also this error message can be processed in time to the error message in this pop-up box; If the errorlevel of error message in pop-up box is D level, then the size that this pop-up box ejects on interface can be all less than the area of the pop-up box of the error message of other grades, like this, and would not the operation of interference user in this application program.
According to the embodiment of the present invention, owing to obtaining dimensional parameters according to error message and the error level determined, at the pop-up box that the display of display position place generates, the effect that the display size therefore reaching pop-up box can adjust neatly according to type of makeing mistakes.
Preferably, aforementioned display unit 50 can comprise in embodiments of the present invention: judge module.Judge module is for judging whether aforementioned error level exceedes pre-set level.3rd display module, if for judging that aforementioned error level exceedes aforementioned pre-set level, then show the pop-up box of aforementioned generation until receive the control command of the pop-up box for the treatment of aforementioned generation.Closing module, if for judging that aforementioned error level does not exceed aforementioned pre-set level, then, after stating the pop-up box Preset Time of generation before display, close the pop-up box of aforementioned generation.
Such as, if the error level of error message in pop-up box B level and more than, then this pop-up box can rest on interface always, until this pop-up box receives the control command of user to it.If the error level of error message in pop-up box is below B level, then this pop-up box automatically can be closed in Preset Time, wherein can call the timed task of Javascript, is automatically closed by this pop-up box in 5 seconds.
According to the embodiment of the present invention, owing to error level and pre-set level being contrasted, therefore according to comparing result, can be set the residence time of pop-up box on interface, the effect that the displaying time reaching pop-up box can adjust neatly according to type of makeing mistakes.
Preferably, in embodiments of the present invention, aforementioned display unit 50 comprises: the 4th display module.The pop-up box of aforementioned generation is shown on all elements of 4th display module on the display interface in the operating system residing for aforementioned applications program.By on all elements that pop-up box is presented at display interface, in order to play better reminding effect.
In the embodiment of the present invention, preferred pop-up box not focus capture, like this, user can not process this pop-up box and perform other operations.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed device, the mode by other realizes.Such as, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, mobile terminal, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a disposal route for pop-up box warning, is characterized in that, comprising:
When detecting that application program operation makes mistakes, obtain the error message of described application program;
Determine that described application program runs the error level of makeing mistakes according to described error message, wherein, described error level is run according to described application program the errorlevel that the order of severity of makeing mistakes pre-sets;
Obtain display parameter according to described error message and the error level determined, described display parameter are the parameter running the pop-up box display mode of makeing mistakes for arranging described application program that user inputs;
Invokes application DLL (dynamic link library) generates pop-up box based on described display parameter; And
The pop-up box that display generates.
2. disposal route according to claim 1, is characterized in that,
Obtain display parameter according to described error message and the error level determined to comprise: obtain location parameter according to described error message and the described error level determined, described location parameter is the parameter of the display position for arranging described pop-up box of described user input
The pop-up box that display generates comprises: the pop-up box showing described generation at described display position place.
3. disposal route according to claim 1, is characterized in that,
Obtain display parameter according to described error message and the error level determined to comprise: obtain dimensional parameters according to described error message and the described error level determined, described dimensional parameters is the parameter of the size for arranging described pop-up box of described user input
Invokes application DLL (dynamic link library) generates pop-up box based on described display parameter and comprises: call described application programming interface and generate the pop-up box corresponding with described dimensional parameters according to described dimensional parameters,
The pop-up box that display generates comprises: export and show the pop-up box corresponding with described dimensional parameters generated.
4. disposal route according to claim 1, is characterized in that, the pop-up box that display generates comprises:
Judge whether described error level exceedes pre-set level;
If judge that described error level exceedes described pre-set level, then show the pop-up box of described generation until receive the control command of the pop-up box for the treatment of described generation;
If judge that described error level does not exceed described pre-set level, then, after the pop-up box Preset Time of the described generation of display, close the pop-up box of described generation.
5. disposal route according to any one of claim 1 to 4, is characterized in that, the pop-up box that display generates comprises:
The pop-up box of described generation is shown on all elements on the display interface of the operating system residing for described application program.
6. a treating apparatus for pop-up box warning, is characterized in that, comprising:
First acquiring unit, for when detecting that application program operation makes mistakes, obtains the error message of described application program;
Determining unit, for determining that according to described error message described application program runs the error level of makeing mistakes, wherein, described error level is run according to described application program the errorlevel that the order of severity of makeing mistakes pre-sets;
Second acquisition unit, for obtaining display parameter according to described error message and the error level determined, described display parameter are the parameter running the pop-up box display mode of makeing mistakes for arranging described application program that user inputs;
Call unit, generates pop-up box for invokes application DLL (dynamic link library) based on described display parameter; And
Display unit, for showing the pop-up box of generation.
7. treating apparatus according to claim 6, is characterized in that,
Described second acquisition unit comprises: the first acquisition module, and for obtaining location parameter according to described error message and the described error level determined, described location parameter is the parameter of the display position for arranging described pop-up box of described user input,
Described display unit comprises: the first display module, for showing the pop-up box of described generation at described display position place.
8. treating apparatus according to claim 6, is characterized in that,
Described second acquisition unit comprises: the second acquisition module, and for obtaining dimensional parameters according to described error message and the described error level determined, described dimensional parameters is the parameter of the size for arranging described pop-up box of described user input,
Described call unit comprises: calling module, generates the pop-up box corresponding with described dimensional parameters for calling described application programming interface according to described dimensional parameters,
Described display unit comprises: the second display module, for exporting and showing the pop-up box corresponding with described dimensional parameters generated.
9. treating apparatus according to claim 6, is characterized in that, described display unit comprises:
Judge module, for judging whether described error level exceedes pre-set level;
3rd display module, if for judging that described error level exceedes described pre-set level, then show the pop-up box of described generation until receive the control command of the pop-up box for the treatment of described generation;
Closing module, if for judging that described error level does not exceed described pre-set level, then, after the pop-up box Preset Time of the described generation of display, closes the pop-up box of described generation.
10. the treating apparatus according to any one of claim 6 to 9, is characterized in that, described display unit comprises:
4th display module, shows the pop-up box of described generation on all elements on the display interface in the operating system residing for described application program.
CN201410758367.XA 2014-12-10 2014-12-10 The treating method and apparatus of pop-up box alarm Active CN104461542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410758367.XA CN104461542B (en) 2014-12-10 2014-12-10 The treating method and apparatus of pop-up box alarm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410758367.XA CN104461542B (en) 2014-12-10 2014-12-10 The treating method and apparatus of pop-up box alarm

Publications (2)

Publication Number Publication Date
CN104461542A true CN104461542A (en) 2015-03-25
CN104461542B CN104461542B (en) 2018-02-02

Family

ID=52907653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410758367.XA Active CN104461542B (en) 2014-12-10 2014-12-10 The treating method and apparatus of pop-up box alarm

Country Status (1)

Country Link
CN (1) CN104461542B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126397A (en) * 2016-06-19 2016-11-16 乐视控股(北京)有限公司 The processing method of program crashing message and system
CN107040670A (en) * 2016-08-23 2017-08-11 平安科技(深圳)有限公司 The methods of exhibiting and device of reminder message
CN108090035A (en) * 2016-11-23 2018-05-29 北京国双科技有限公司 Data processing method and device
CN110399129A (en) * 2019-07-30 2019-11-01 网易(杭州)网络有限公司 A kind of error-reporting method and device of trigger
CN111367593A (en) * 2018-12-25 2020-07-03 龙芯中科技术有限公司 Method and device for displaying prompt message in application program
CN111966562A (en) * 2020-07-21 2020-11-20 北京视博云信息技术有限公司 Monitoring method and device of cloud platform and readable storage medium
CN114217717A (en) * 2021-11-22 2022-03-22 阿里巴巴新加坡控股有限公司 Information processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859271A (en) * 2009-04-08 2010-10-13 北京博越世纪科技有限公司 Grading exception handling technique
CN102946468A (en) * 2012-10-18 2013-02-27 广东欧珀移动通信有限公司 Automatic mobile phone operating program abnormality alarming method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859271A (en) * 2009-04-08 2010-10-13 北京博越世纪科技有限公司 Grading exception handling technique
CN102946468A (en) * 2012-10-18 2013-02-27 广东欧珀移动通信有限公司 Automatic mobile phone operating program abnormality alarming method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126397A (en) * 2016-06-19 2016-11-16 乐视控股(北京)有限公司 The processing method of program crashing message and system
CN107040670A (en) * 2016-08-23 2017-08-11 平安科技(深圳)有限公司 The methods of exhibiting and device of reminder message
CN108090035A (en) * 2016-11-23 2018-05-29 北京国双科技有限公司 Data processing method and device
CN111367593A (en) * 2018-12-25 2020-07-03 龙芯中科技术有限公司 Method and device for displaying prompt message in application program
CN110399129A (en) * 2019-07-30 2019-11-01 网易(杭州)网络有限公司 A kind of error-reporting method and device of trigger
CN111966562A (en) * 2020-07-21 2020-11-20 北京视博云信息技术有限公司 Monitoring method and device of cloud platform and readable storage medium
CN114217717A (en) * 2021-11-22 2022-03-22 阿里巴巴新加坡控股有限公司 Information processing method and device

Also Published As

Publication number Publication date
CN104461542B (en) 2018-02-02

Similar Documents

Publication Publication Date Title
CN104461542A (en) Method and device for pop-up box warning processing
CN110377851B (en) Method and device for realizing multi-stage linkage drop-down frame and computer equipment
US10884891B2 (en) Interactive detection of system anomalies
CN110826071B (en) Software vulnerability risk prediction method, device, equipment and storage medium
US8015550B2 (en) Systems and methods for hazards analysis
CN108459792B (en) Flow switching method and device and computer equipment
CN109766142B (en) Method for customizing user interface, self-service terminal equipment, server and storage medium
CN105528135A (en) Information presenting method and device and electronic apparatus
CN105183291A (en) Method and system for extracting information in display interface
CN105335383A (en) Input information processing method and device
CN104506941A (en) Key event processing method and device in smart television
CN105279431A (en) Method, device, and system for recording operation information in mobile device
CN106341731A (en) Method and device for responding to remote-control key of intelligent television
CN112634090A (en) Home decoration information reporting management method, system, computer device and storage medium
CN115659045A (en) User operation identification method and device, storage medium and electronic equipment
CN105824606A (en) Scroll input method and terminal
CN111143526B (en) Method and device for generating and controlling configuration information of counsel service control
CN111478886B (en) Traffic guidance and claim settlement service data processing method, device and client
Kopácsi et al. Ambient intelligence as enabling technology for modern business paradigms
CN110262844B (en) Dialog box component calling method, dialog box component calling device, dialog box component server and storage medium
CN113377634A (en) Monitoring method for backtracking user operation, user operation backtracking method and device
CN106775184A (en) APP tabs exhibiting method and electronic equipment
CN111399836A (en) Method and device for modifying page attribute
US11822519B2 (en) Multi-dimensional database platform including an apache kafka framework and an auxiliary database for event data processing and provisioning
CN115993916A (en) Workflow modeling control method, device, medium and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method and device for pop-up box warning processing

Effective date of registration: 20190531

Granted publication date: 20180202

Pledgee: Shenzhen Black Horse World Investment Consulting Co., Ltd.

Pledgor: Beijing Guoshuang Technology Co.,Ltd.

Registration number: 2019990000503

PE01 Entry into force of the registration of the contract for pledge of patent right
CP02 Change in the address of a patent holder

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Patentee after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Patentee before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder