CN105204832A - System and method for achieving script engine - Google Patents

System and method for achieving script engine Download PDF

Info

Publication number
CN105204832A
CN105204832A CN201410289647.0A CN201410289647A CN105204832A CN 105204832 A CN105204832 A CN 105204832A CN 201410289647 A CN201410289647 A CN 201410289647A CN 105204832 A CN105204832 A CN 105204832A
Authority
CN
China
Prior art keywords
script
module
listing interface
order information
file
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
CN201410289647.0A
Other languages
Chinese (zh)
Other versions
CN105204832B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410289647.0A priority Critical patent/CN105204832B/en
Publication of CN105204832A publication Critical patent/CN105204832A/en
Application granted granted Critical
Publication of CN105204832B publication Critical patent/CN105204832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a system and method for achieving a script engine. The system and method are used for improving script calling efficiency and script maintaining efficiency and applied to a server. The system comprises a reeling-unreeling bar module, a tool function library, a script configuration module and a script module. The script module is used for saving various script files. The script configuration module is used for recording script sequence information in a script list interface and the corresponding relationship of the script files and the script sequence information. The reeling-unreeling bar module is used for receiving a script calling request triggered by a user on a terminal, and calling a script calling function in the tool function library according to the script calling request, and the script calling request comprises the script sequence information of a to-be-called script in the script list interface. The script calling function in the tool function library is used for reading the corresponding relationship through the script configuration module, calling the script files corresponding to the script sequence information and returning the script files to the terminal.

Description

A kind of system and method realizing script engine
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of system and method realizing script engine.
Background technology
In some application programs, need the support of a lot of derivative, these instruments generally realize correlation function by Run Script, such as realize three-dimensional (3D, 3Dimensions) the generation of animation, need to use 3DStudioMax software complete playing up of three-dimensional animation and make, for a complicated cartoon making project, can relate to the realization of the dissimilar animation of the scene fine arts, the special efficacy fine arts, the animation fine arts etc., each type all needs a lot of script to have assisted corresponding function.
In the prior art, generally load the local script preserved in the application to perform corresponding operation by user, but along with increasing of required script quantity, user needs the expensive time to go to find corresponding script, load operating, and efficiency is very low; Meanwhile, if there is newly-increased script or script more news, user needs to download new script in the resource bag of local application, when script quantity is very many, also needs the at substantial time to the maintenance of script file with renewal.Therefore, calling and safeguarding to there is efficiency lower technical matters to script file in prior art.
Summary of the invention
In view of this, the invention provides a kind of system and method realizing script engine, to solve calling and safeguarding to there is efficiency lower technical matters to script file in prior art.
For solving the problem, technical scheme provided by the invention is as follows:
Realize a system for script engine, described system is applied in server, and described system comprises:
Volume exhibition hurdle module, tool function storehouse, script configuration module and script module;
Described script module, for preserving all kinds of script file;
Described script configuration module, for recording the corresponding relation of script order information in script listing interface and described script file and described script order information;
Described volume exhibition hurdle module, for receiving the script call request that user triggers in terminal, call the script call function in described tool function storehouse according to described script call request, described script call request comprises the script order information of script to be called in script listing interface;
Script call function in described tool function storehouse is used for reading described corresponding relation by calling described script configuration module, transfers script file corresponding to described script order information and returns to described terminal.
Accordingly, described volume exhibition hurdle module, also for calling the script listing interface measure for fulfill in described tool function storehouse, shows the script listing interface generated;
Script listing interface measure for fulfill in described tool function storehouse is used for reading script order information in described script listing interface by calling described script configuration module, generates described script listing interface and return to described volume exhibition hurdle module to show according to described script order information.
Accordingly, described script listing interface is shown described script order information with tree structure, describedly shows it is that described volume exhibition hurdle module utilizes the tree structure function of ActiveX control to realize with tree structure to described script order information.
Accordingly, described volume exhibition hurdle module, also for calling access external tool function, to access external file, webpage and/or third party's instrument.
Accordingly, described system also comprises:
Tool configuration module, for register system essential information, described system essential information comprises width information, elevation information, window type information, the version number information at described script listing interface;
Script listing interface measure for fulfill in described tool function storehouse, also for reading described system essential information by calling described tool configuration module, adjusting described script listing interface according to described system essential information and returning to described volume exhibition hurdle module and showing.
Accordingly, also comprise in described script module:
Script function storehouse, for preserving the script function needed for described script file.
Accordingly, described system also comprises:
Application environment configuration module, for preserving the assembly needed for application program;
Batch processing module, generate autoexec for carrying out encapsulation to described application environment configuration module and described volume exhibition hurdle module, described autoexec is used in the application program of described terminal, install described volume exhibition hurdle module.
A kind of method realizing script engine, described method is applied in server, described server preserves all kinds of script file, and the corresponding relation of the script order information passed through in script configuration module record script listing interface and described script file and described script order information; Described method comprises:
By the script call request that volume exhibition hurdle module receives user triggers in terminal, according to the script call function in described script call request calls tool function library, described script call request comprises the script order information of script to be called in script listing interface;
Script call function in described tool function storehouse is used for reading described corresponding relation by calling described script configuration module, transfers script file corresponding to described script order information and returns to described terminal.
Accordingly, described method also comprises:
The script listing interface measure for fulfill in described tool function storehouse is called by volume exhibition hurdle module; Script listing interface measure for fulfill in described tool function storehouse is used for reading script order information in described script listing interface by calling described script configuration module, generates described script listing interface according to described script order information;
Show the described script listing interface generated.
Accordingly, the described described script listing interface showing generation, comprising:
Call the tree structure function of ActiveX control, with tree structure, the described script order information in described script listing interface is shown.
Accordingly, described method also comprises:
By calling access external tool function access external file, webpage and/or third party's instrument.
Accordingly, described method also comprises:
By tool configuration module register system essential information, described system essential information comprises width information, elevation information, window type information, the version number information at described script listing interface;
Script listing interface measure for fulfill in described tool function storehouse also for reading described system essential information by calling described tool configuration module, adjusts described script listing interface according to described system essential information.
Accordingly, described method also comprises:
Carry out encapsulation to described application environment configuration module and described volume exhibition hurdle module and generate autoexec, described autoexec is used in the application program of described terminal, install described volume exhibition hurdle module; Application environment configuration module is for preserving the assembly needed for application program.
As can be seen here, the embodiment of the present invention has following beneficial effect:
In embodiment of the present invention server, the script file needed for types of applications program is preserved, and record the corresponding relation of each script file and the script order information in script listing interface, user only needs the required script clicked in script listing interface can send script call request to server, the script order information of the script to be called carried in server by utilizing script call request in script listing interface, can read corresponding script file and return to the terminal that user uses.Such one side user does not need oneself to find script file position, loading running in local terminal; The script file being kept on the other hand server can real-time update, the script file returning to terminal according to script call request is all up-to-date script files, user does not need to safeguard script file, thus the embodiment of the present invention improves the efficiency called with safeguard to script file.
Accompanying drawing explanation
The schematic diagram of the system embodiment one that realize script engine of Fig. 1 for providing in the embodiment of the present invention;
The schematic diagram of the system embodiment two that realize script engine of Fig. 2 for providing in the embodiment of the present invention;
The schematic diagram of the system embodiment three that realize script engine of Fig. 3 for providing in the embodiment of the present invention;
The schematic diagram of the system embodiment four that realize script engine of Fig. 4 for providing in the embodiment of the present invention;
The schematic diagram that realize the embodiment of the method for script engine of Fig. 5 for providing in the embodiment of the present invention;
A kind of schematic diagram of server example of Fig. 6 for providing in the embodiment of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, are described in further detail the embodiment of the present invention below in conjunction with the drawings and specific embodiments.
The embodiment of the present invention is for calling and safeguarding to there is efficiency lower technical matters to script file in prior art, such as use 3DStudioMax (being called for short 3DMax) software, realize some specific functions to need to call max script, but user uses max script all to need to find this script file in local resource bag at every turn, and in 3DMax software load and execution, and at each change script or newly-increased new script, user needs again to download max script in local resource bag, the namely user effort plenty of time has gone to safeguard script, thus occupy the time using 3DMax software simulating function itself.For this reason, the embodiment of the present invention proposes to utilize script engine to realize gathering and management a large amount of script, and provide the system and method realizing script engine, this system is applied in server, in the server the script file needed for types of applications program is preserved, and record the corresponding relation of each script file and the script order information in script listing interface, user only needs the required script clicked in script listing interface can send script call request to server, the script order information of the script to be called carried in server by utilizing script call request in script listing interface, corresponding script file can be read and return to the terminal that user uses, in this process, user no longer needs to find in local resource bag after required script also loads in the application and could perform, spended time is not needed to go to safeguard script file yet, thus improve script file and call and the efficiency safeguarded.
The embodiment of the present invention is described from the system perspective realizing script engine, and this system realizing script engine specifically can be in the client integrated, and this client can be loaded in the server.
Shown in Figure 1, be a kind of system embodiment one realizing script engine that the embodiment of the present invention provides, this system can be applied in server, and this system can comprise:
Volume exhibition hurdle module 101, tool function storehouse 102, script configuration module 103 and script module 104.
Wherein, volume exhibition hurdle module can each function in calls tool function library, function in tool function storehouse can invoke script configuration module, script configuration file can invoke script module preserve script file, adopt the mode called layer by layer, can ensure that logic is rigorous, certain module in system, function or file can not be caused too tediously long, safeguard inconvenience.
Script module 104, for preserving all kinds of script file.
The script file used needed in application program is a lot, can classify in the server and script file preserved, such as use some animation needed for game of 3DMax software development, may need to call all kinds of script of generic script, scene script, role's script, action special efficacy script etc., then these script files can be preserved according to generic in script module.
Script configuration module 103, for recording the corresponding relation of script order information in script listing interface and script file and script order information.
Script configuration module can be realized by script ini configuration file, ini configuration file is the abbreviation of initialization file, i.e. initialization files, can utilize the corresponding relation of script order information in script ini configuration file record script listing interface and script file and script order information.Script order information represents the DISPLAY ORDER of script in script listing interface, the script order information such as revising contrast script is the script order information that the first page Section 1 of this script in script listing interface carries out showing, revising brightness script is that the first page Section 2 of this script in script listing interface shows, etc.The corresponding relation of script file and script order information is then which script file that this script order information corresponds in script module, the script that first page Section 1 such as in script listing interface carries out showing corresponds to the amendment contrast script file in script module, the script that first page Section 2 in script listing interface carries out showing corresponds to the amendment brightness script file in script module, etc.Like this, when server receive user click the trigger pip of certain script shown in script listing interface time, corresponding script order information can be obtained, the script file of association can be obtained further.
Tool function storehouse 102, for preserving sorts of systems function, such as script call function, script listing interface measure for fulfill etc., these functions are the embodiment of the present invention for realizing script engine and self-defining function.
Volume exhibition hurdle module 101, for receiving the script call request that user triggers in terminal, according to the script call function in script call request calls tool function library, script call request comprises the script order information of script to be called in script listing interface.
Volume exhibition hurdle module in server can according to function corresponding in script call request or other function request call tool function storehouses.In the present embodiment, user can utilize the script listing interface in end application to click required script, namely triggers script call request, and the volume exhibition hurdle module in server is according to the script call function in this script trigger pip calls tool function library.
Script call function in tool function storehouse is used for reading corresponding relation by invoke script configuration module, transfers script file corresponding to script order information and returns to terminal.
Namely script call function invoke script configuration module reads the corresponding relation of script file and script order information, transfers corresponding script file.Such as, what user triggered is the script of first page Section 1 in script listing interface, then carry the script order information of the first page Section 1 of script to be triggered in script listing interface in script trigger request, script call function in volume exhibition hurdle module calls tool function library, script call function reads the corresponding relation that this script order information corresponds to the amendment contrast script file in script module, the amendment contrast script file of correspondence is returned to terminal, thus realizes the quick calling of user to script.Simultaneously, the script called all is preserved in script module in the server, all kinds of script files in script module can real-time update, thus ensure that the script that user calls is up-to-date script file, do not need user manually to carry out the operations such as upgrading to script file, improve the efficiency that script file is safeguarded.
In some embodiments of the invention, volume exhibition hurdle module can also be used for can script listing interface measure for fulfill in calls tool function library, shows the script listing interface generated.Script listing interface measure for fulfill in tool function storehouse is used for the script order information read by invoke script configuration module in script listing interface, returns to volume exhibition hurdle module show according to script order information generation script list interface.
Before volume exhibition hurdle module receives script call request, also need the script listing interface measure for fulfill in calls tool function library, with generation script list interface, by volume exhibition hurdle module, script listing interface is shown.Script listing interface measure for fulfill can comprise the measure for fulfill of script listing interface split screen, create the measure for fulfill etc. at interface, script listing interface measure for fulfill reads script order information, the DISPLAY ORDER of each script in script listing interface can be obtained, thus return to volume exhibition hurdle module according to script order information generation script list interface and show.
In some embodiments of the invention, script listing interface is shown script order information with tree structure, shows it is that volume exhibition hurdle module utilizes the tree structure function of ActiveX control to realize with tree structure to script order information.
ActiveX is Microsoft for the general designation of a series of tactic object-oriented program technology and instrument, and wherein main technology is the Component Object Model (COM).One large advantage of assembly can be re-used by most of application program exactly, and these application programs are called assembly container.A com component and ActiveX control can be developed by the developing instrument of different language, comprise C++, VisualBasic or PowerBuilder, also comprise max script simultaneously.Volume exhibition hurdle module utilizes the tree structure function of ActiveX control to simulate the form of tree list, adjusts further the concrete exhibition method at script listing interface, thus user-friendly.
In some embodiments of the invention, volume exhibition hurdle module also accesses external tool function, to access external file, webpage and/or third party's instrument for calling.Thus strengthen the extendability of system, realize the third-party instrument of interlock video, webpage etc.
Like this, in embodiment of the present invention server, the script file needed for types of applications program is preserved, and record the corresponding relation of each script file and the script order information in script listing interface, user only needs the required script clicked in script listing interface can send script call request to server, the script order information of the script to be called carried in server by utilizing script call request in script listing interface, can read corresponding script file and return to the terminal that user uses.Such one side user does not need oneself to find script file position, loading running in local terminal; The script file being kept on the other hand server can real-time update, the script file returning to terminal according to script call request is all up-to-date script files, user does not need to safeguard script file, thus the embodiment of the present invention improves the efficiency called with safeguard to script file.
Shown in Figure 2, be a kind of system embodiment two realizing script engine that the embodiment of the present invention provides, this system can be applied in server, can comprise:
Volume exhibition hurdle module 201, tool function storehouse 202, script configuration module 203, script module 204 and tool configuration module 205.
Script module 204, for preserving all kinds of script file 2041;
In some embodiments of the invention, can also comprise in script module 204: script function storehouse 2042, for preserving the script function needed for script file.Script function is all script file services, some power functions that some are conventional, special or loaded down with trivial details, and concludes in script function storehouse, avoids the script work of repeatability and loaded down with trivial details code.
Script configuration module 203, for recording the corresponding relation of script order information in script listing interface and script file and script order information.
Tool configuration module 205, for register system essential information, system essential information comprises the essential information required for whole system such as width information, elevation information, window type information, version number information at script listing interface.
In tool function storehouse, 202 comprise the function such as script call function, script listing interface measure for fulfill.
Then volume exhibition hurdle module 201 can be divided into three partial functions substantially:
First aspect, volume exhibition hurdle module can complete the displaying to generation script list interface.Concrete, volume exhibition hurdle module may be used for the script listing interface measure for fulfill in calls tool function library, shows the script listing interface generated; Script listing interface measure for fulfill in tool function storehouse is used for the script order information read by invoke script configuration module in script listing interface, and by calls tool configuration module reading system essential information; According to script order information generation script list interface, and return to volume exhibition hurdle module show according to system essential information adjustment script listing interface.Volume exhibition hurdle module can utilize the tree structure function of ActiveX control to realize script listing interface to show script order information with tree structure.
Second aspect, volume exhibition hurdle module can receive script call request, and triggers calling of script file.Concrete, volume exhibition hurdle module may be used for the script call request that reception user triggers in terminal, according to the script call function in script call request calls tool function library, script call request comprises the script order information of script to be called in script listing interface; Script call function in tool function storehouse is used for reading corresponding relation by invoke script configuration module, transfers script file corresponding to script order information and returns to terminal.
The third aspect, volume exhibition hurdle module may be used for calling access external tool function, to access external file, webpage and/or third party's instrument.Thus strengthen the extendability of system, realize the third-party instrument of interlock video, webpage etc.
In the present embodiment, add tool configuration module and can realize record to some essential informations of system and displaying, meanwhile, script module comprises script file and script function can simplify script file, avoid the script work of repeatability, thus save system resource.
Shown in Figure 3, be a kind of system embodiment three realizing script engine that the embodiment of the present invention provides, this system can be applied in server, can comprise:
Volume exhibition hurdle module 301, tool function storehouse 302, script configuration module 303, script module 304, tool configuration module 305, batch processing module 306 and application environment configuration module 307.
Wherein, volume exhibition hurdle module 301, tool function storehouse 302, script configuration module 303, script module 304, tool configuration module 305 are same with the above-mentioned embodiment, and detailed description see above-described embodiment, can not repeat them here.
Application environment configuration module 307, for preserving the assembly needed for application program.
Batch processing module 306, carries out encapsulation for application programs environment configurations module and volume exhibition hurdle module and generates autoexec, and autoexec is used in the application program of terminal, install volume exhibition hurdle module.
The system application of what the embodiment of the present invention provided realize script engine and server end, also need terminal to roll up exhibition hurdle in corresponding end application to show script listing interface, receive the script call request that user triggers simultaneously, and send to the volume exhibition hurdle module of server end.Like this, then need batch processing module application programs environment configurations module and volume exhibition hurdle module to carry out encapsulation and generate autoexec, autoexec is preserved on data resource management instrument in the server, facilitate user directly obtain and install, thus volume exhibition hurdle module can be installed in the application program of terminal.Application environment configuration module is then be the more necessary assemblies of coupling application program in installation process, such as Basic Elements of Graphic User Interface, Plugin plug-in unit etc.
In the present embodiment, application environment configuration module and batch processing module complete the encapsulation to script engine installation file, after script engine being installed in end application to make user, can realize to script file transfer fast and without the need to safeguarding script file again.
Below to realize max script engine, the system realizing script engine that the embodiment of the present invention provides is described.Shown in Figure 4, be a kind of system embodiment four realizing script engine that the embodiment of the present invention provides, this system can be applied in server, can comprise:
Volume exhibition hurdle ROLLOUT module, tool function storehouse, instrument ini configuration file, script ini configuration file, script file (comprising generic script, scene script, role's script, action special efficacy script and other scripts), script function, autoexec BATFile and application environment configuration module (comprising graphic element icons, preloaded components Startup, Plugin plug-in unit, Macroscripts).
Generic script, scene script, role's script, action special efficacy script and other scripts adopt maxscript language in animation process, to need to use script file classify all and preserve.
Script ini configuration file may be used for there is several split screen in note script listing interface, script order (the script order information namely in script listing interface) corresponding in each split screen and the corresponding relation of script file and script order information.
Script function is all script file services, and some are commonly used, special, some loaded down with trivial details power functions, and concludes in this function library, avoids the script work of repeatability and loaded down with trivial details code.
Instrument ini configuration file have recorded the essential information of whole system, such as version number, width, highly, multipath window type etc.
Each class function required for the preservation of tool function storehouse, and the information of index instrument ini configuration file and script ini configuration file summarizes some functions, such as script call function, data syn-chronization function, script listing interface measure for fulfill, specifically can comprise again the measure for fulfill of split screen, create the function etc. at interface.
ROLLOUT volume exhibition hurdle, whole framework is built in index tool function storehouse, can each class function in calls tool function library, and utilizes the form of the tree structure functional simulation of ActiveX control tree list to show script listing interface.The graphical interfaces that unit usually improves whole framework can also be obtained from icons.Meanwhile, also achieve access external file, webpage, the function of third party's instrument.
Plugin comprises the dll file compiling out by third party's instrument, is the port for accessing third party's engine, is script file service.Can be realized by Plugin plug-in unit when needing access third party engine in script file.
Macroscript can with shortcut, menu and button binding.The function that some are conventional makes Macroscript, uses after convenient.Namely Macroscript can be understood as icon icon in 3DMax, the trigger event of tips and button.
Startup is then the information of each 3Dmax institute's prestrain when opening, and can read all functions, ROLLOUT, graphical interfaces UI and protection mechanism.
Icons then comprises all Basic Elements of Graphic User Interface.
Above Icons, Startup, Plugin, Macroscripts then for realizing the application environment configuration module required for script engine in 3DMax.
Batch processing module all above Document encapsulation on the server, sub-directories different under utilizing autoexec BATFILE can call the max root directory of correspondence.BATFILE is placed on server data resource management instrument, facilitates user directly find and install.The benefit of putting on the server can when amendment or newly-increased script, and do not need again to go loading one time, max opens and again can automatically travel through one time.
Like this, in embodiment of the present invention server, the script file needed for types of applications program is preserved, and record the corresponding relation of each script file and the script order information in script listing interface, user only needs the required script clicked in script listing interface can send script call request to server, the script order information of the script to be called carried in server by utilizing script call request in script listing interface, can read corresponding script file and return to the terminal that user uses.Such one side user does not need oneself to find script file position, loading running in local terminal; The script file being kept on the other hand server can real-time update, the script file returning to terminal according to script call request is all up-to-date script files, user does not need to safeguard script file, thus the embodiment of the present invention improves the efficiency called with safeguard to script file.
Accordingly, shown in Figure 5, it is a kind of embodiment of the method one realizing script engine that the embodiment of the present invention provides, the method embodiment can be applied in server, all kinds of script file is preserved in server, and the corresponding relation of the script order information passed through in script configuration module record script listing interface and script file and script order information; The method embodiment can comprise the following steps:
Step 501: the script call request triggered in terminal by volume exhibition hurdle module receives user.
Step 502: according to the script call function in script call request calls tool function library, script call request comprises the script order information of script to be called in script listing interface; Script call function in tool function storehouse is used for reading corresponding relation by invoke script configuration module, transfers script file corresponding to script order information and returns to terminal.
In some embodiments of the invention, the method realizing script engine that the embodiment of the present invention provides can also comprise:
By the script listing interface measure for fulfill in volume exhibition hurdle module calls tool function library; Script listing interface measure for fulfill in tool function storehouse is used for the script order information read by invoke script configuration module in script listing interface, according to script order information generation script list interface;
Show the script listing interface generated.
In some embodiments of the invention, show that the realization at the script listing interface generated can comprise:
Call the tree structure function of ActiveX control, with tree structure, the script order information in script listing interface is shown.
In some embodiments of the invention, the method realizing script engine that the embodiment of the present invention provides can also comprise:
By calling access external tool function access external file, webpage and/or third party's instrument.
In some embodiments of the invention, the method realizing script engine that the embodiment of the present invention provides can also comprise:
By tool configuration module register system essential information, system essential information comprises width information, elevation information, window type information, the version number information at script listing interface;
Script listing interface measure for fulfill in tool function storehouse also for by calls tool configuration module reading system essential information, adjusts script listing interface according to system essential information.
In some embodiments of the invention, the method realizing script engine that the embodiment of the present invention provides can also comprise:
Application programs environment configurations module and volume exhibition hurdle module are carried out encapsulation and are generated autoexec, and autoexec is used in the application program of terminal, install volume exhibition hurdle module; Application environment configuration module is for preserving the assembly needed for application program.
Like this, in embodiment of the present invention server, the script file needed for types of applications program is preserved, and record the corresponding relation of each script file and the script order information in script listing interface, user only needs the required script clicked in script listing interface can send script call request to server, the script order information of the script to be called carried in server by utilizing script call request in script listing interface, can read corresponding script file and return to the terminal that user uses.Such one side user does not need oneself to find script file position, loading running in local terminal; The script file being kept on the other hand server can real-time update, the script file returning to terminal according to script call request is all up-to-date script files, user does not need to safeguard script file, thus the embodiment of the present invention improves the efficiency called with safeguard to script file.
Accordingly, the embodiment of the present invention also provides a kind of server, shown in Figure 6, can comprise:
Processor 601, storer 602, input media 603 and output unit 604.The quantity of the processor 601 in browser server can be one or more, for a processor in Fig. 6.In some embodiments of the invention, processor 601, storer 602, input media 603 are connected by bus or alternate manner with output unit 604, wherein, to be connected by bus in Fig. 6.
Storer 602 can be used for storing software program and module, and processor 601 is stored in software program and the module of storer 602 by running, thus performs various function application and the data processing of browser server.Storer 602 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program etc. needed at least one function.In addition, storer 602 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Input media 603 can be used for the numeral or the character information that receive input, and generation arranges with the user of browser server and function controls the input of relevant key signals.
Specifically in the present embodiment, processor 601 can according to following instruction, executable file corresponding for the process of one or more application program is loaded in storer 602, and runs storage application program in the memory 602 by processor 601, thus realize various function:
Preserve all kinds of script file, and the corresponding relation of the script order information passed through in script configuration module record script listing interface and script file and script order information;
By the script call request that volume exhibition hurdle module receives user triggers in terminal, according to the script call function in script call request calls tool function library, script call request comprises the script order information of script to be called in script listing interface;
Script call function in tool function storehouse is used for reading corresponding relation by invoke script configuration module, transfers script file corresponding to script order information and returns to terminal.
Accordingly, can also comprise:
By the script listing interface measure for fulfill in volume exhibition hurdle module calls tool function library; Script listing interface measure for fulfill in tool function storehouse is used for the script order information read by invoke script configuration module in script listing interface, according to script order information generation script list interface;
Show the script listing interface generated.
Accordingly, show that the realization at the script listing interface generated can comprise:
Call the tree structure function of ActiveX control, with tree structure, the script order information in script listing interface is shown.
Accordingly, can also comprise:
By calling access external tool function access external file, webpage and/or third party's instrument.
Accordingly, can also comprise:
By tool configuration module register system essential information, system essential information comprises width information, elevation information, window type information, the version number information at script listing interface;
Script listing interface measure for fulfill in tool function storehouse also for by calls tool configuration module reading system essential information, adjusts script listing interface according to system essential information.
Accordingly, can also comprise: application programs environment configurations module and volume exhibition hurdle module are carried out encapsulation and generated autoexec, autoexec is used in the application program of terminal, install volume exhibition hurdle module; Application environment configuration module is for preserving the assembly needed for application program.
Like this, in embodiment of the present invention server, the script file needed for types of applications program is preserved, and record the corresponding relation of each script file and the script order information in script listing interface, user only needs the required script clicked in script listing interface can send script call request to server, the script order information of the script to be called carried in server by utilizing script call request in script listing interface, can read corresponding script file and return to the terminal that user uses.Such one side user does not need oneself to find script file position, loading running in local terminal; The script file being kept on the other hand server can real-time update, the script file returning to terminal according to script call request is all up-to-date script files, user does not need to safeguard script file, thus the embodiment of the present invention improves the efficiency called with safeguard to script file.
It should be noted that, in this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For system disclosed in embodiment or device, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (13)

1. realize a system for script engine, it is characterized in that, described system is applied in server, and described system comprises:
Volume exhibition hurdle module, tool function storehouse, script configuration module and script module;
Described script module, for preserving all kinds of script file;
Described script configuration module, for recording the corresponding relation of script order information in script listing interface and described script file and described script order information;
Described volume exhibition hurdle module, for receiving the script call request that user triggers in terminal, call the script call function in described tool function storehouse according to described script call request, described script call request comprises the script order information of script to be called in script listing interface;
Script call function in described tool function storehouse is used for reading described corresponding relation by calling described script configuration module, transfers script file corresponding to described script order information and returns to described terminal.
2. system according to claim 1, is characterized in that,
Described volume exhibition hurdle module, also for calling the script listing interface measure for fulfill in described tool function storehouse, shows the script listing interface generated;
Script listing interface measure for fulfill in described tool function storehouse is used for reading script order information in described script listing interface by calling described script configuration module, generates described script listing interface and return to described volume exhibition hurdle module to show according to described script order information.
3. system according to claim 2, it is characterized in that, described script listing interface is shown described script order information with tree structure, describedly shows it is that described volume exhibition hurdle module utilizes the tree structure function of ActiveX control to realize with tree structure to described script order information.
4. the system according to any one of claim 1, is characterized in that, described volume exhibition hurdle module, also for calling access external tool function, to access external file, webpage and/or third party's instrument.
5. system according to claim 2, is characterized in that, described system also comprises:
Tool configuration module, for register system essential information, described system essential information comprises width information, elevation information, window type information, the version number information at described script listing interface;
Script listing interface measure for fulfill in described tool function storehouse, also for reading described system essential information by calling described tool configuration module, adjusting described script listing interface according to described system essential information and returning to described volume exhibition hurdle module and showing.
6. system according to claim 1, is characterized in that, also comprises in described script module:
Script function storehouse, for preserving the script function needed for described script file.
7. the system according to any one of claim 1-6, is characterized in that, described system also comprises:
Application environment configuration module, for preserving the assembly needed for application program;
Batch processing module, generate autoexec for carrying out encapsulation to described application environment configuration module and described volume exhibition hurdle module, described autoexec is used in the application program of described terminal, install described volume exhibition hurdle module.
8. one kind realizes the method for script engine, it is characterized in that, described method is applied in server, described server preserves all kinds of script file, and the corresponding relation of the script order information passed through in script configuration module record script listing interface and described script file and described script order information; Described method comprises:
By the script call request that volume exhibition hurdle module receives user triggers in terminal, according to the script call function in described script call request calls tool function library, described script call request comprises the script order information of script to be called in script listing interface;
Script call function in described tool function storehouse is used for reading described corresponding relation by calling described script configuration module, transfers script file corresponding to described script order information and returns to described terminal.
9. method according to claim 8, is characterized in that, described method also comprises:
The script listing interface measure for fulfill in described tool function storehouse is called by volume exhibition hurdle module; Script listing interface measure for fulfill in described tool function storehouse is used for reading script order information in described script listing interface by calling described script configuration module, generates described script listing interface according to described script order information;
Show the described script listing interface generated.
10. method according to claim 9, is characterized in that, the described described script listing interface showing generation, comprising:
Call the tree structure function of ActiveX control, with tree structure, the described script order information in described script listing interface is shown.
11. methods according to claim 8, is characterized in that, described method also comprises:
By calling access external tool function access external file, webpage and/or third party's instrument.
12. methods according to claim 9, is characterized in that, described method also comprises:
By tool configuration module register system essential information, described system essential information comprises width information, elevation information, window type information, the version number information at described script listing interface;
Script listing interface measure for fulfill in described tool function storehouse also for reading described system essential information by calling described tool configuration module, adjusts described script listing interface according to described system essential information.
13. methods according to claim 8, is characterized in that, described method also comprises:
Carry out encapsulation to described application environment configuration module and described volume exhibition hurdle module and generate autoexec, described autoexec is used in the application program of described terminal, install described volume exhibition hurdle module; Application environment configuration module is for preserving the assembly needed for application program.
CN201410289647.0A 2014-06-24 2014-06-24 A kind of system and method for realizing script engine Active CN105204832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410289647.0A CN105204832B (en) 2014-06-24 2014-06-24 A kind of system and method for realizing script engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410289647.0A CN105204832B (en) 2014-06-24 2014-06-24 A kind of system and method for realizing script engine

Publications (2)

Publication Number Publication Date
CN105204832A true CN105204832A (en) 2015-12-30
CN105204832B CN105204832B (en) 2019-07-05

Family

ID=54952542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410289647.0A Active CN105204832B (en) 2014-06-24 2014-06-24 A kind of system and method for realizing script engine

Country Status (1)

Country Link
CN (1) CN105204832B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020994A (en) * 2016-05-06 2016-10-12 福建创意嘉和软件有限公司 A script and interface interworking method and device
CN106528129A (en) * 2016-10-27 2017-03-22 南京南瑞继保电气有限公司 Web application interface generation system and method
CN109144819A (en) * 2018-08-20 2019-01-04 郑州云海信息技术有限公司 A kind of monitoring method and device of server
CN109446047A (en) * 2018-10-30 2019-03-08 武汉斗鱼网络科技有限公司 Testing Platform script storage method, device, equipment and storage medium
CN110201392A (en) * 2019-06-06 2019-09-06 腾讯科技(深圳)有限公司 User interface creating method, device and terminal
CN111338964A (en) * 2020-02-29 2020-06-26 苏州浪潮智能科技有限公司 Ordered batch test method, system, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11305998A (en) * 1998-04-16 1999-11-05 Hitachi Ltd Computer system
WO2001016765A1 (en) * 1999-09-01 2001-03-08 Virginia Tech Intellectual Properties, Inc. System and method for sharing computer action scripts through a searchable database, and related applications thereof
US20050125188A1 (en) * 2003-07-07 2005-06-09 Dell Products L.P. Method and system for information handling system automated and distributed test
CN101493967A (en) * 2008-12-30 2009-07-29 北京握奇数据系统有限公司 Smart card and method for invoking server certificate or certificate chain therein
CN102955808A (en) * 2011-08-26 2013-03-06 腾讯科技(深圳)有限公司 Data acquisition method and distributed file system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11305998A (en) * 1998-04-16 1999-11-05 Hitachi Ltd Computer system
WO2001016765A1 (en) * 1999-09-01 2001-03-08 Virginia Tech Intellectual Properties, Inc. System and method for sharing computer action scripts through a searchable database, and related applications thereof
US20050125188A1 (en) * 2003-07-07 2005-06-09 Dell Products L.P. Method and system for information handling system automated and distributed test
CN101493967A (en) * 2008-12-30 2009-07-29 北京握奇数据系统有限公司 Smart card and method for invoking server certificate or certificate chain therein
CN102955808A (en) * 2011-08-26 2013-03-06 腾讯科技(深圳)有限公司 Data acquisition method and distributed file system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020994A (en) * 2016-05-06 2016-10-12 福建创意嘉和软件有限公司 A script and interface interworking method and device
CN106528129A (en) * 2016-10-27 2017-03-22 南京南瑞继保电气有限公司 Web application interface generation system and method
CN106528129B (en) * 2016-10-27 2019-06-21 南京南瑞继保电气有限公司 A kind of Web application interface generation system and method
CN109144819A (en) * 2018-08-20 2019-01-04 郑州云海信息技术有限公司 A kind of monitoring method and device of server
CN109446047A (en) * 2018-10-30 2019-03-08 武汉斗鱼网络科技有限公司 Testing Platform script storage method, device, equipment and storage medium
CN109446047B (en) * 2018-10-30 2022-03-25 武汉斗鱼网络科技有限公司 Performance test platform script storage method, device, equipment and storage medium
CN110201392A (en) * 2019-06-06 2019-09-06 腾讯科技(深圳)有限公司 User interface creating method, device and terminal
CN110201392B (en) * 2019-06-06 2023-09-01 腾讯科技(深圳)有限公司 User interface generation method, device and terminal
CN111338964A (en) * 2020-02-29 2020-06-26 苏州浪潮智能科技有限公司 Ordered batch test method, system, terminal and storage medium
CN111338964B (en) * 2020-02-29 2023-01-10 苏州浪潮智能科技有限公司 Ordered batch test method, system, terminal and storage medium

Also Published As

Publication number Publication date
CN105204832B (en) 2019-07-05

Similar Documents

Publication Publication Date Title
US11650910B2 (en) Automated testing method and apparatus, storage medium and electronic device
CN105204832A (en) System and method for achieving script engine
US7398474B2 (en) Method and system for a digital device menu editor
Taivalsaari et al. Web browser as an application platform
US9122767B2 (en) Method and apparatus for pre-rendering expected system response
CN111221521B (en) Method, device, computer system and readable storage medium for generating log code
US9524279B2 (en) Help document animated visualization
CN103914205B (en) A kind of file thumbnail methods of exhibiting of intelligent terminal and device
US11074154B2 (en) Identifying a source file for use in debugging compiled code
CN108021356B (en) Cross-screen and cross-platform measurable live-action map organization method
CN104704468A (en) Cross system installation of WEB applications
US11741002B2 (en) Test automation systems and methods using logical identifiers
US10140133B2 (en) Marking external sibling caller routines
CN109960491A (en) Application program generation method, generating means, electronic equipment and storage medium
US20180165073A1 (en) Context information based on type of routine being called
US10241769B2 (en) Marking sibling caller routines
US20180165104A1 (en) Executing instructions to store context information based on routine to be executed
CN102779045B (en) A kind of interface creating method, interface editor and electronic equipment
CN110020370B (en) Method and device for realizing animation in client application and framework of animation script
KR102141749B1 (en) APP program execution method and device
CN111858339B (en) Memory analysis method, device and system, computing device and computer readable storage medium
CN107977307B (en) Application debugging method and device
WO2020057265A1 (en) Method and system for chat function development, terminal and computer readable storage medium
CN111158820A (en) Control click event processing method and device, electronic equipment and storage medium
US11640281B2 (en) Tool for introspection in object-oriented source code

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant