CN106873993A - A kind of easily Scripting Edition method and system - Google Patents
A kind of easily Scripting Edition method and system Download PDFInfo
- Publication number
- CN106873993A CN106873993A CN201710066354.XA CN201710066354A CN106873993A CN 106873993 A CN106873993 A CN 106873993A CN 201710066354 A CN201710066354 A CN 201710066354A CN 106873993 A CN106873993 A CN 106873993A
- Authority
- CN
- China
- Prior art keywords
- script
- function
- layer
- shape
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/315—Object-oriented languages
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Stored Programmes (AREA)
Abstract
A kind of easily Scripting Edition method, for editing again for script, including shape library, LUA scripts and function, the function of the script is divided into different functional modules, and functional module is corresponded into figure shows, during editor, call the figure of corresponding function to combine from shape library, the script of LUA language is generated, during execution, user clicks above-mentioned script, and script call function performs LUA script functions.The present invention is used for Scripting Edition field, by by script function sectionalization, modularization, and is shown by way of figure, helps without programming the user of knowledge fast and easily edit script.
Description
Technical field
The invention belongs to Scripting Edition field, and in particular to a kind of Scripting Edition method and system.
Background technology
Having many software inhouses at present has a set of script system of oneself.Such as:Robot program the inside is just busy
The script for first designing, robot will perform various actions when order is performed according to different scripts.Or it is automatic
Changing software has the script for designing in advance, and user sends order, and software will be performed according to the program for designing.Domestic intelligence
Energy software, such as:QMacro, AutoHotkey.QMacro is mainly for Game Market.User can use QMacro
Pre-edit script:Edit mouse and keyboard action that user needs to perform.Then user rerun script reach mouse with
Keyboard is automatically brought into operation according to the good mode of pre-edit.So the action of QMacro is divided into two parts:1, edit script
2, perform operation.AutoHotkey is also similar to the same mode of operation of QMacro, and simply AutoHotkey does not have QMacro
The same main interface is convenient to edit.QMacro and AutoHotkey another feature is that user needs certain programming and knows
Knowing can just carry out script code with logical thinking, but the user of office but differs and surely reaches this requirement.For not having
Volume becomes for the personnel of knowledge, and how to change script is the problem for being currently needed for solving.
The content of the invention
The present invention is intended to provide one kind easily Scripting Edition method and system, for programming unfamiliar user to pin
This editor.
A kind of easily Scripting Edition method, it is described for editing again for script, including shape library, LUA scripts and function
The function of script is divided into different functional modules, and functional module is corresponded into figure shows, and Bian Jishi is called from shape library
The figure combination of corresponding function, generates the script of LUA language, and during execution, user clicks above-mentioned script, and script call function is performed
LUA script functions.
Preferably, function is write for C Plus Plus.3. as claimed in claim 1 a kind of easily Scripting Edition method, its
It is characterised by:The figure is divided into different colors and shape, user according to shape can conformability combine different figures into
It is different scripts.
Preferably, during method can apply to office software and Games Software.
A kind of script system for being easy to editor, script system is divided into three layers, respectively graph layer, articulamentum and function layer,
Wherein described graph layer is called for user, and the articulamentum is used to connect graph layer and function layer, and the articulamentum is according to figure
Function in shape layer call function layer, user chooses the picture in graph layer and sorts, and generates articulamentum, and articulamentum is according to work(
Can call function layer.
Preferably, articulamentum is LUA language, and the function layer is C Plus Plus.
Preferably, graph layer includes a shape library, each figure correspondence One function in picture library, each figure
Shape is different.
Preferably, between picture and picture can according to shape can conformability link together.
Preferably, a kind of script system for being easy to editor is applied in the softwares such as office software and game.By above-mentioned
The content of the invention, the script function that user can click on selection and need by script system is joined together to form a new pin
This.Operation is facilitated not lose enjoyment again, and script system helps user to check whether the script of editor is rationally complete.It is completely stupid
Melon formula mode of operation reaches user's simple operations, increases Consumer's Experience.
Brief description of the drawings
Fig. 1 is the Bean figure in a kind of easily Scripting Edition method and system of the present invention.
Specific embodiment
A kind of easily Scripting Edition method of the invention, is mainly applied to programming unfamiliar terminal user, this hair
Bright core value how to allow to program not yet done software application person can quick edit script, to adapt to user's
Function and custom demand, a kind of technology of easily Scripting Edition method core of the present invention is that complicated programming language is mentioned into work(
Different functional modules can be subdivided into so that user can complete pin in the case where needing to understand programming technique according to oneself demand
This editing.
As shown in figure 1, being the Bean figure in a kind of easily Scripting Edition method and system of the present invention.Including figure
Storehouse, LUA scripts and function layer.Shape library includes several different figures, is different shapes and face between figure and figure
Color, each figure correspond to a script function module, and LUA scripts are that different graphic combines corresponding script system, letter
Several layers are called for LUA scripts.
Specifically, shape library has several figures of different shapes 1, figure 2, figure 3, figure 4, figure 5, figure 6, figure
Shape 7 ....The example below is all by taking figure 1, figure 2, figure 3, figure 4, figure 5, figure 6, figure 7 as an example.In figure 1-7
All of CF is all different(Due to substantial amounts in shape library, so can only keep substantially different, shape is also
Similarly.The graphics shape of identity function may be identical with color, does not do definitely limitation here, and color and shape are pointed out in the present invention
Shape difference only refers to that the CF between most of figure is different).Explain how user designs script in detail below
's.It is below as a example by the Scripting Edition in excel, to define the corresponding function of figure 1 " to choose coordinate (10) (100
) ", the corresponding function of figure 2 is " duplication ", and the corresponding function of figure 3 is " insertion ", and the corresponding function of figure 4 is " selection coordinate
(11) (15) ", the corresponding function of figure 5 is " adjustment decimal point is double figures ", and the corresponding function of figure 6 is " placed in the middle ", figure
The corresponding function of shape 7 is " Song typeface ".User needs edit script function " to choose coordinate (11) (15)+duplication+selection to sit
Mark (10) (100)+insertion ", then user chooses figure 4, figure 2, figure 1 and figure 3 successively.Can generation one it is new
LUA scripts.When user clicks figure 2+ figure 3+ figures 7, then three figures can be pieced together, because script system
System automatic detection figure 2 and the corresponding function " duplication " of figure 3 and " insertion " are without duplication and insertion object.User pieces together picture
When cannot piece together successfully, system can point out user to lack object.So can meet user it is simple and quick be made script system
System, and script error caused by the lower level error of user can be avoided.In said system detection, in design function figure,
For the function that can not be pieced together, in graphic designs by both graphic designs into the shape that can not mutually coincide.For example:
Figure 3 and the corresponding function of figure 5 can not piece together, then it is circle, figure 5 that the shape of both figures is designed as figure 3
Shape be designed as it is square.Then, user can not piece together both when piecing together, and so be used to remind the work(of user's script
Whether energy logic is wrong, in time amendment.Be for summary user according to shape can conformability combine different figure shapes
Into different scripts(Figure 1-7 in accompanying drawing is that the several figures arbitrarily chosen in a document divide into different shapes to show,
Without considering piecing together property).
Script system automatically generates LUA scripts after user scrabbles up a script function.LUA scripts are compiled using LUA language
Translate, be the function that can be another function for the parameter of achievement function using LUA language compilation's scripts.Upon execution, LUA
Language needs to transfer function to perform the function that user pieces together.
A kind of easily script editing system, including three layers.The graph layer that ground floor for the benefit of user's compiling is pieced together, figure
Layer is called for user, and graph layer includes a shape library.Shape library includes that the functional module of all client's needs is corresponding
Figure, and made a distinction using different shape and color;The second layer is LUA script layers, and script layer is articulamentum, for connection figure
Lamella and third layer.User completes ground floor and pieces together the LUA script layers that rear script system automatically generates the second layer.Third layer is
Function layer, function layer is write using C Plus Plus.User in perform script, the function in LUA script layers automatic call function layer
The function that function meets the LUA scripts of the second layer is performed.
The function code in script system is divided into a kind of easily Scripting Edition method and system in the present invention
Different modules, and using functional module correspondence it is corresponding with figure after make graphically to show, be ignorant of program user
Can be simple and quick piece together oneself needs function.System uses LUA language compilation's second layers, conveniently realizes the parameter of function
It can be the function of another function.Third layer is compiled using C Plus Plus, and C Plus Plus can connect any interface, for example
Interface in excel, word and other office softwares again or in Games Software.Considerably increase range of application of the invention.
Above-mentioned specific embodiment is only to provide a kind of detailed case study on implementation, and we should not be by protection model of the invention
Limited to this is enclosed, simple inference or replacement of the those skilled in the art according to done by the present invention should all belong to of the invention
Protection domain.
Claims (9)
1. one kind easily Scripting Edition method, for editing again for script, it is characterised in that including shape library, LUA scripts and
Function, the function of the script is divided into different functional modules, and functional module is corresponded into figure shows, Bian Jishi, from figure
Call the figure of corresponding function to combine in shape storehouse, generate the script of LUA language, during execution, user clicks above-mentioned script, and script is adjusted
LUA script functions are performed with function.
2. as claimed in claim 1 a kind of easily Scripting Edition method, it is characterised in that:The function is compiled for C Plus Plus
Write.
3. as claimed in claim 1 a kind of easily Scripting Edition method, it is characterised in that:The figure is divided into different face
Color and shape, user according to shape can conformability combine different figures and turn into different scripts.
4. such as any one easily Scripting Edition method in claim 1-3, it is characterised in that:Methods described can apply to
In office software and Games Software.
5. it is a kind of be easy to editor script system, it is characterised in that:Above-mentioned script system is divided into three layers, respectively graph layer, company
Layer and function layer are connect, wherein the graph layer is called for user, the articulamentum is used to connect graph layer and function layer, described
Function of the articulamentum in graph layer call function layer, user chooses the picture in graph layer and sorts, and generates connection
Layer, articulamentum is according to funcall function layer.
6. a kind of script system for being easy to editor as claimed in claim 5, it is characterised in that:The articulamentum is LUA language,
The function layer is C Plus Plus.
7. a kind of script system for being easy to editor as claimed in claim 6, it is characterised in that:The graph layer includes a figure
Shape storehouse, each figure correspondence One function in picture library, the shape of each figure is different.
8. a kind of script system for being easy to editor as claimed in claim 7, it is characterised in that:Can between the picture and picture
With according to shape can conformability link together.
9. any one as described in claim 5-8 is easy to the script system of editor, it is characterised in that:Described one kind is easy to compile
The script system collected is applied in the softwares such as office software and game.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710066354.XA CN106873993A (en) | 2017-02-07 | 2017-02-07 | A kind of easily Scripting Edition method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710066354.XA CN106873993A (en) | 2017-02-07 | 2017-02-07 | A kind of easily Scripting Edition method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106873993A true CN106873993A (en) | 2017-06-20 |
Family
ID=59166932
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710066354.XA Pending CN106873993A (en) | 2017-02-07 | 2017-02-07 | A kind of easily Scripting Edition method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106873993A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228172A (en) * | 2018-01-11 | 2018-06-29 | 携程旅游网络技术(上海)有限公司 | The write method and system of script |
CN108446110A (en) * | 2018-03-14 | 2018-08-24 | 武汉斗鱼网络科技有限公司 | Lua scenario generation methods, device, terminal and computer-readable medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102360288A (en) * | 2011-09-29 | 2012-02-22 | 南京国电南自轨道交通工程有限公司 | Scriptable full-configuration HMI (Human Machine Interface) system driven by real-time data |
CN103197929A (en) * | 2013-03-25 | 2013-07-10 | 中国科学院软件研究所 | System and method for graphical programming facing children |
-
2017
- 2017-02-07 CN CN201710066354.XA patent/CN106873993A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102360288A (en) * | 2011-09-29 | 2012-02-22 | 南京国电南自轨道交通工程有限公司 | Scriptable full-configuration HMI (Human Machine Interface) system driven by real-time data |
CN103197929A (en) * | 2013-03-25 | 2013-07-10 | 中国科学院软件研究所 | System and method for graphical programming facing children |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228172A (en) * | 2018-01-11 | 2018-06-29 | 携程旅游网络技术(上海)有限公司 | The write method and system of script |
CN108446110A (en) * | 2018-03-14 | 2018-08-24 | 武汉斗鱼网络科技有限公司 | Lua scenario generation methods, device, terminal and computer-readable medium |
CN108446110B (en) * | 2018-03-14 | 2022-01-04 | 武汉斗鱼网络科技有限公司 | Lua script generation method, Lua script generation device, Lua script generation terminal and computer readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107357567B (en) | Design system and method of visual script editor | |
CN103500087B (en) | A kind of based on maven plug-in unit and the code generating method of freemarker template and device | |
CN102053836B (en) | Implementation method of version management tool for Android application development | |
CN105739983B (en) | Shell script editing device and its implementation | |
US7487080B1 (en) | Partitioning a model in modeling environments | |
Klügl et al. | SeSAm: implementation of agent-based simulation using visual programming | |
CN106293664A (en) | Code generating method and device | |
Popp et al. | Tool support for automated multi-device GUI generation from discourse-based communication models | |
CN108280291A (en) | Reusable simulation model Interface design and interconnection method, device and computer equipment | |
CN106445497A (en) | Application program development method and system | |
CN106873993A (en) | A kind of easily Scripting Edition method and system | |
CN104598233A (en) | Code generation method | |
CN105893591B (en) | A kind of data sharing service intelligent arranging method | |
CN102004648B (en) | Program customization method and device | |
CN110147226A (en) | A kind of system according to Function Block Diagram automatically generating program, method and device | |
CN105989296B (en) | The method and apparatus for controlling application access | |
Penna et al. | Reconfiguring CPLD to perform operations based on sequence detection condition | |
CN104778071A (en) | Intelligent rule multi-language type interpretation system and creation method for same | |
CN111399829A (en) | Waveform modeling method and terminal based on model driving | |
CN106970787A (en) | A kind of automobile controller rapid prototyping implementation method | |
CN116108422A (en) | Rights management method of background management system | |
CN104317590A (en) | Embedded configuration system and embedded review process configuration method | |
Dong | Aspect oriented programming technology and the strategy of its implementation | |
CN114356430A (en) | DAG (demand oriented architecture) dependency configuration tool based on airflow scheduling system | |
Van den Bergh et al. | Toward specifying Human-Robot Collaboration with composite events |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170620 |
|
RJ01 | Rejection of invention patent application after publication |