WO2015196541A1 - Script processing method and device - Google Patents

Script processing method and device Download PDF

Info

Publication number
WO2015196541A1
WO2015196541A1 PCT/CN2014/084554 CN2014084554W WO2015196541A1 WO 2015196541 A1 WO2015196541 A1 WO 2015196541A1 CN 2014084554 W CN2014084554 W CN 2014084554W WO 2015196541 A1 WO2015196541 A1 WO 2015196541A1
Authority
WO
WIPO (PCT)
Prior art keywords
script
mobile terminal
language
supported
module
Prior art date
Application number
PCT/CN2014/084554
Other languages
French (fr)
Chinese (zh)
Inventor
张伟鑫
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015196541A1 publication Critical patent/WO2015196541A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs

Definitions

  • the present invention relates to the field of communications, and in particular to a script processing method and apparatus.
  • BACKGROUND With the continuous development of mobile terminal products, the arrival of the 4G era and the launch of various applications, while people are constantly pursuing the pursuit of intelligent terminal products, the personalized setting and personalized use of various functions are particularly important.
  • Today's smartphones are a trend now and in the future.
  • people are using smart terminals, the real function is that the products already exist or are compiled, for more advanced user experience and product innovation, but users can not rely on themselves. The willingness to achieve human-computer interaction through simple language, complete the personalization.
  • a script processing method which is applied to a mobile terminal, and includes: editing a script on a script interface provided by the mobile terminal by using a package command supported by a scripting language, where the script The encapsulation command supported by the language is predefined; the edited script is executed on the mobile terminal.
  • the method before editing the script, the method further comprises: querying and obtaining, from the server, an encapsulation command supported by the scripting language.
  • executing the script on the mobile terminal comprises: executing the script when the mobile terminal is powered on; or executing the script according to a trigger condition, wherein the trigger condition is that a double-click operation is received or Received a click.
  • the method further includes: running the script in a background of the mobile terminal; sending a prompt message if the script conflicts with an operation of the mobile terminal The prompt message is used to prompt to select an interrupt or continue to execute the script.
  • the scripting language is an object oriented programming language.
  • a script processing apparatus including: an editing module, configured to edit a script on a script interface provided by the mobile terminal by using a package command supported by a scripting language, where The encapsulation command supported by the scripting language is predefined; the execution module is configured to execute the edited script on the mobile terminal.
  • the device further includes: an obtaining module, configured to query and acquire a package command supported by the scripting language from the server.
  • the execution module includes: a first execution unit configured to execute the script when the mobile terminal is powered on; or a second execution unit configured to execute the script according to a trigger condition, wherein the triggering The condition is that a double-click operation is received and a click operation is received.
  • the device further includes: a prompting module, configured to: when the script is run in the background of the mobile terminal, if the script conflicts with the operation of the mobile terminal, send a prompt message, where The prompt message is used to prompt for selection of an interrupt or to continue executing the script.
  • the encapsulation command is used to invoke one or more functions supported by the operating system of the mobile terminal, and/or to invoke one or more functions supported by the application software installed on the operating system.
  • FIG. 1 is a flowchart of a script processing method according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a script processing apparatus according to an embodiment of the present invention
  • FIG. 1 is a flowchart of a script processing method according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a script processing apparatus according to an embodiment of the present invention
  • FIG. 1 is a flowchart of a script processing method according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a script processing apparatus according to an embodiment of the present invention
  • FIG. 1 is a flowchart of a script processing method according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a script processing apparatus according to an embodiment of the present invention
  • FIG. 1 is a flowchart of a script processing method according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a script processing apparatus according to an embodiment of the present invention
  • FIG. 1 is
  • FIG. 3 is a preferred embodiment according to the present invention.
  • FIG. 4 is a block diagram showing the structure of a script processing apparatus according to a preferred embodiment of the present invention.
  • FIG. 5 is a flowchart of a script processing method according to a preferred embodiment of the present invention;
  • FIG. 6 is a flowchart according to the present invention.
  • FIG. 7 is a structural block diagram of a script editing interface according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a script processing method according to an embodiment of the present invention.
  • the method includes the following steps: Step S102, the script is edited on the script interface provided by the mobile terminal by using a package command supported by the scripting language, where the encapsulation command supported by the script language is predefined; Step S104, executing on the mobile terminal The edited script.
  • the script is used to edit the script on the script interface provided by the mobile terminal, so that the user can edit the script through the script language to implement human-computer interaction according to his own wishes, and the user can call the package command supported by the predefined script language.
  • Personalized settings are customized according to preferences, and the user can personalize the terminal through this function, thereby improving the user experience.
  • the foregoing encapsulation command may be used to invoke one or more functions supported by the operating system of the mobile terminal, and/or may be used to invoke application software installed on the operating system.
  • One One or more features In this way, a combination of multiple functions can be realized, maximally utilizing the operating system of the mobile terminal and the application software installed thereon.
  • the encapsulation command may be set on the server, in which case, before editing the script, the server queries and obtains the support of the script language. Package command.
  • servers can adopt cloud servers.
  • the encapsulation command supported by the scripting language on the mobile terminal; or, a part of the encapsulation command may be placed on the server or a part of the encapsulation command may be placed on the mobile terminal.
  • the edited script can be selected to be executed in different situations.
  • the script can be executed when the mobile terminal is powered on.
  • the script can also be executed according to a trigger condition, wherein the trigger condition is that a double-click operation is received or received. Click the action.
  • the way the script is executed allows the user to choose according to their actual needs.
  • the user-edited script may cause conflicts.
  • conflict detection may also be performed. For example, if the script is run in the background of the mobile terminal, if the script conflicts with the operation of the mobile terminal, A prompt message is sent, which is used to prompt for selection of an interrupt or to continue execution of the script. By doing this, you can avoid conflicts as much as possible.
  • the scripting language can be various types of computer programming languages. Computer programming languages can be divided into high-level languages and non-high-level languages. They can also be divided into object-oriented languages and non-object-oriented languages (which can be said to be divided into object-oriented and process-oriented). The actual facing-oriented language is a high-level language in computers. . Alternatively, the scripting language can employ an object oriented programming language.
  • Object-oriented language is a kind of programming language with objects as the basic program structure unit. It focuses on how to combine multiple scattered functions to form a complete function to complete a specific requirement.
  • the object-oriented language draws on the artificial intelligence language LISP in the 1950s, introduces the concept of dynamic binding and the idea of interactive development environment; the discrete event simulation language SIMULA67, which began in the 1960s, introduces the essentials and inheritance of classes.
  • the Smalltalk object-oriented language which was formed in the 1970s, has two development directions: one is a pure object-oriented language, such as Smalltalk EIFFEL; the other is a hybrid object-oriented language, that is, in procedural languages and other languages. Add classes, inheritance and other components, such as C++, Objective-C, etc.
  • the main feature is that the object-oriented language portrays the objective system more natural, which is convenient for software expansion and reuse. It has the following characteristics: identifiability, the basic components in the system can be recognized as a set of identifiable discrete objects; categorization, all objects with the same data structure and behavior can form a class; polymorphism, objects have unique Static type and Multiple possible dynamic types; inheritance, sharing data and operations in different classes of basic hierarchical relationships. Programming with an object-oriented programming language makes programming more flexible.
  • a script processing device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and conceivable.
  • 2 is a structural block diagram of a script processing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes: an editing module 22 configured to use a script provided by a scripting language to provide a script on the mobile terminal. Editing a script on the interface, wherein the encapsulation command supported by the script language is predefined; and the execution module 24 is configured to execute the edited script on the mobile terminal.
  • FIG. 3 is a block diagram of a structure of a script processing apparatus according to a preferred embodiment of the present invention.
  • the apparatus further includes: an obtaining module 26 configured to query and obtain a package command supported by the scripting language from a server.
  • the execution module 24 includes: a first execution unit configured to execute the script when the mobile terminal is powered on; or a second execution unit configured to execute the script according to a trigger condition, where The trigger condition is that a double-click operation is received or a click operation is received.
  • 4 is a block diagram showing the structure of a script processing apparatus according to a preferred embodiment of the present invention.
  • the apparatus further includes: a prompting module 28, configured to run the script in the background of the mobile terminal.
  • the script conflicts with the operation of the mobile terminal, sending a prompt message, where the prompt message is used to prompt to select an interrupt or continue to execute the script.
  • the encapsulation command is used to invoke one or more functions supported by the operating system of the mobile terminal, and/or to invoke one or more functions supported by the application software installed on the operating system.
  • the processing method for supporting software scripting in the mobile terminal in the preferred embodiment may include the following steps: the mobile terminal starts the script script interface, and the data service is started; when the code is edited, the cloud service is used. The relevant query is executed, and the encapsulated command is called and exists locally; the script is executed, and the prompt window is followed up in real time. If there is a conflict with the current operation of the user, the user is given a judgment prompt to let the user make a selection.
  • the user can complete his own script editing through a simple script editing function, and the user can communicate with the terminal through a simple script, and let the terminal perform the user's personalized design, so that people can Development is not unfamiliar, allowing people to enjoy the joy of free editing, making the interaction of the machine intelligent and casual.
  • simple commands people can be personalized and greatly improved the user experience.
  • you adopt the object-oriented approach you can include: By opening the script script editor module, you can query and call various encapsulated commands through the command dictionary; then follow the script script development rules to compile the script; Run the script script, then at the same time the script is executed, the script script prompt window will prompt the user to execute the current terminal script.
  • the script script execution can be run in the background without affecting the current usage of the user. If the execution conflicts with the user operation, the prompt is given priority, and the user is selected to interrupt or continue.
  • the mobile terminal supporting software scripting in the embodiment of the present invention includes the following modules: a script function editing software module, a corresponding command module packaged on the calling service, an action editing development module, a running script module, a judgment prompt module, and data according to a script rule. Business module, script script editor module, various application modules contained in the terminal, other modules of the terminal, etc.
  • the editing module 22 corresponds to executing the script function editing software module, calling the corresponding command module encapsulated on the service, completing the function of the action editing development module and the script script editor module according to the script rule, and executing the module 24
  • the prompting module 28 correspondly performs the function of the determining prompting module, and each module will be described in detail below.
  • Script function editing software module Start script script function; Call the corresponding command module encapsulated on the service: This module is the core module, which is called by the cloud service already encapsulated command; complete the action editing development module according to the script rule: script The script has its own rules, the user should edit according to the rules of the module; Run the script module: This function allows the user to check whether to run the script script when booting, the user does not check, or can run by double-clicking the script script; Module: If the current operation of the user conflicts with the script script operation, the prompt will be given.
  • Various application modules contained on the terminal As an object of editing execution.
  • the following is an example of placing a package command on a cloud server. First, the command encapsulation is completed, and the supported encapsulation commands are placed on the cloud server, so that the user can obtain the information at any time after accessing the Internet, and does not occupy the local memory; then, the object-oriented language editing is supported in the terminal, and the terminal supports script editing, that is, the The terminal contains a platform dialog box that can implement the editing language, so that the user can operate and edit in the platform.
  • Step S502 Open a script function editing interface, and start the function editing in the terminal
  • Step S504 call The various commands are encapsulated in the cloud server
  • Step S506 the script editing is completed according to the script editing language rule
  • Step S510 if a conflict occurs with the current user operation, sending a prompt message to the user, prompting the user to select to continue Or interrupt execution.
  • FIG. 6 is a flowchart of implementing an invocation command according to an embodiment of the present invention. As shown in FIG.
  • FIG. 7 is a structural block diagram of a script editing interface according to an embodiment of the present invention.
  • the script platform is a script function editing interface, and has functions of supporting run, debug, and query commands.
  • the Order-dictionary is connected to the Internet, and the encapsulated commands are called from the cloud server through the Order-dictionary.
  • the content edited in the script interface is shown in Figure 7. Enter the following on the editing interface: when ue power on,
  • the script can identify any app software on the phone, which can be realized by using script script, and it is simple and easy to use, so that people can become programmers through the mobile phone. And debug script to make programming possible.
  • the terminal supports script compilation, so that the user can interact with any application on the terminal, and the development is spread around the people. The simple and clear commands can enable people to implement personalized settings. Even develop your own application.
  • the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • the computing device may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
  • the script processing method, apparatus, and terminal provided by the embodiments of the present invention have the following beneficial effects:
  • the user in the related art cannot solve the human-computer interaction in a simple language according to his own wishes, and complete the personalized setting.
  • the problem is that the terminal can be personalized to improve the user experience.

Abstract

A script processing method and device. The method comprises: using an encapsulation command supported by a script language to edit a script on a script interface provided by a mobile terminal (S102), wherein the encapsulation command supported by the script language is predefined; and executing the edited script on the mobile terminal (S104). By means of the method, the problem in the related art that a user cannot realize man-machine interaction through an easy language and complete personalized settings at his/her own will is solved, and by means of the function, a personalized design can be performed on a terminal, thereby improving user experience.

Description

脚本处理方法及装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种脚本处理方法及装置。 背景技术 随着移动终端产品的不断发展, 4G时代的到来和各种应用的推出,在人们对智能 终端产品的不断追求追捧的同时, 各项功能的个性化设置和个性化使用显得格外突出 重要, 当今智能手机已经是现在乃至未来的发展趋势, 虽然人们在使用智能终端, 但是 真正的功能都是产品已经存在或者编译好的, 针对更高级的用户体验和产品创新, 但 是用户并不能根据自己的意愿通过简易的语言实现人机交互, 完成个性化设置。 针对相关技术中用户并不能根据自己的意愿通过简易的语言实现人机交互, 完成 个性化设置的问题, 目前尚未提出有效的解决方案。 发明内容 针对相关技术中用户并不能根据自己的意愿通过简易的语言实现人机交互, 完成 个性化设置的问题, 本发明实施例提供了一种脚本处理方法及装置, 以至少解决上述 问题。 根据本发明实施例的一个方面, 提供了一种脚本处理方法, 应用于移动终端, 包 括: 使用脚本语言所支持的封装命令在所述移动终端提供的脚本界面上编辑脚本, 其 中, 所述脚本语言所支持的封装命令是预先定义的; 在所述移动终端上执行编辑后的 所述脚本。 优选地, 在编辑所述脚本之前, 所述方法还包括: 从服务器查询并获取所述脚本 语言所支持的封装命令。 优选地, 在所述移动终端上执行所述脚本包括: 在所述移动终端开机时, 执行所 述脚本; 或者根据触发条件执行所述脚本, 其中, 所述触发条件为接收到对双击操作 或接收到单击操作。 优选地, 在所述移动终端上执行所述脚本之后, 所述方法还包括: 在所述移动终 端的后台运行所述脚本; 如果所述脚本与所述移动终端的操作发生冲突, 发送提示消 息, 其中, 所述提示消息用于提示选择中断或继续执行所述脚本。 优选地, 所述脚本语言为面向对象的编程语言。 优选地,所述封装命令用于调用所述移动终端的操作系统支持的一个或多个功能, 和 /或, 用于调用所述操作系统上安装的应用软件支持的一个或多个功能。 根据本发明实施例的另一方面, 还提供了一种脚本处理装置, 包括: 编辑模块, 用于使用脚本语言所支持的封装命令在所述移动终端提供的脚本界面上编辑脚本, 其 中, 所述脚本语言所支持的封装命令是预先定义的; 执行模块, 设置为在所述移动终端上执行编辑后的所述脚本。 优选地, 所述装置还包括: 获取模块, 设置为从服务器查询并获取所述脚本语言 所支持的封装命令。 优选地, 所述执行模块包括: 第一执行单元, 设置为在所述移动终端开机时, 执 行所述脚本; 或者第二执行单元, 设置为根据触发条件执行所述脚本, 其中, 所述触 发条件为接收到双击操作、 接收到单击操作。 优选地, 所述装置还包括: 提示模块, 设置为在所述移动终端的后台运行所述脚 本的情况下, 如果所述脚本与所述移动终端的操作发生冲突, 发送提示消息, 其中, 所述提示消息用于提示选择中断或继续执行所述脚本。 优选地,所述封装命令用于调用所述移动终端的操作系统支持的一个或多个功能, 和 /或, 用于调用所述操作系统上安装的应用软件支持的一个或多个功能。 通过本发明实施例, 使用脚本语言所支持的封装命令在所述移动终端提供的脚本 界面上编辑脚本, 其中, 所述脚本语言所支持的封装命令是预先定义的; 在所述移动 终端上执行编辑后的所述脚本, 解决了相关技术中用户并不能根据自己的意愿通过简 易的语言实现人机交互, 完成个性化设置的问题, 通过该功能可以对终端进行个性化 设计, 从而改善了用户体验。 附图说明 此处所说明的附图用来提供对本发明实施例的进一步理解,构成本申请的一部分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在 附图中: 图 1是根据本发明实施例的一种脚本处理方法的流程图; 图 2是根据本发明实施例的一种脚本处理装置的结构框图; 图 3是根据本发明优选实施例的脚本处理装置的结构框图一; 图 4是根据本发明优选实施例的脚本处理装置的结构框图二; 图 5是根据本发明优选实施例的脚本处理方法的流程图; 图 6是根据本发明实施例的实现调用命令的流程图; 图 7是本发明实施例的脚本编辑界面的结构框图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 在本发明实施例中的提供了一种脚本处理方法, 应用于移动终端, 图 1是根据本 发明实施例的一种脚本处理方法的流程图, 如图 1所示, 该方法包括以下步骤: 步骤 S102,使用脚本语言所支持的封装命令在所述移动终端提供的脚本界面上编 辑脚本, 其中, 所述脚本语言所支持的封装命令是预先定义的; 步骤 S104, 在所述移动终端上执行编辑后的所述脚本。 通过上述步骤, 使用脚本语言在移动终端提供的脚本界面上编辑脚本, 使得用户 可以根据自己的意愿通过脚本语言对脚本进行编辑实现人机交互, 用户可以调用预先 定义的脚本语言所支持的封装命令, 根据喜好完成个性化设置, 用户通过该功能可以 对终端进行个性化设计, 从而改善了用户体验。 在一个可选的实施例中, 上述封装命令可以用于调用所述移动终端的操作系统支 持的一个或多个功能, 和 /或, 可以用于调用所述操作系统上安装的应用软件支持的一 个或多个功能。 这样就可以实现多个功能的组合使用, 最大程度的利用移动终端的操 作系统以及其上安装的应用软件。 在一个可选的实施例中, 为了节约移动终端的存储空间, 可以将封装命令设置在 服务器上, 在这种情况下, 在编辑所述脚本之前, 从服务器查询并获取该脚本语言所 支持的封装命令。 随着云技术的发展, 服务器可以采用云服务器。 当然, 如果移动终 端的存储容量不断的扩大, 也可以考虑将脚本语言所支持的封装命令放置在移动终端 上; 或者, 也可以将一部分封装命令放置在服务器上也可以将一部分封装命令放置在 移动终端上, 可以根据不同的情况进行选择。 编辑后的脚本可以选择在不同的情况下执行, 例如可以在移动终端开机时, 执行 该脚本; 又例如, 还可以根据触发条件执行该脚本, 其中, 该触发条件为接收到双击 操作或接收到单击操作。 执行脚本的方式可以让用户根据其实际的需求来进行选择。 用户编辑好的脚本有可能会引起冲突, 在一个可选的实施方式中, 还可以进行冲 突检测, 例如, 在移动终端的后台运行脚本的情况下, 如果该脚本与移动终端的操作 发生冲突, 发送提示消息, 该提示消息用于提示选择中断或继续执行所述脚本。 通过 这样的处理方式, 可以尽量避免冲突的发生。 在本实施例中, 脚本语言可以是各种类型的计算机编程语言。 计算机编程语言可 以分为高级语言和非高级语言, 也可以分为面向对象语言和非面向对象语言 (可以说 是分为面向对象和面向过程), 实际面向对面语言就是计算机中的一种高级语言。可选 地, 脚本语言可以采用面向对象的编程语言。 面向对象语言是一类以对象作为基本程序结构单位的程序设计语言, 偏重于如何 将多个零散的函数巧妙地连接在一起而组成一个完整的函数去完成特定的要求的一类 语言。 面向对象语言借鉴了 20世纪 50年代的人工智能语言 LISP, 引入了动态绑定的 概念和交互式开发环境的思想;始于 20世纪 60 年代的离散事件模拟语言 SIMULA67, 引入了类的要领和继承, 成形于 20世纪 70年代的 Smalltalk 面向对象语言有两个发展方向: 一种是纯面向对象语言, 如 Smalltalk EIFFEL 等; 另一种是混合型面向对象语言, 即在过程式语言及其它语言中加入类、 继承等成 分, 如 C++、 Objective-C等。 主要特点是面向对象语言刻画客观系统较为自然, 便于软件扩充与复用。 有以下 特点: 识认性, 系统中的基本构件可识认为一组可识别的离散对象; 类别性, 系统具 有相同数据结构与行为的所有对象可组成一类; 多态性, 对象具有惟一的静态类型和 多个可能的动态类型; 继承性, 在基本层次关系的不同类中共享数据和操作。 采用面 向对象的编程语言可以使编程更加灵活。 在本实施例中还提供了一种脚本处理装置, 该装置用于实现上述实施例及优选实 施方式, 已经进行过说明的不再赘述。 如以下所使用的, 术语 "模块"可以实现预定 功能的软件和 /或硬件的组合。 尽管以下实施例所描述的装置较佳地以软件来实现, 但 是硬件, 或者软件和硬件的组合的实现也是可能并被构想的。 图 2是根据本发明实施例的一种脚本处理装置的结构框图, 如图 2所示, 该装置 包括: 编辑模块 22, 设置为使用脚本语言所支持的封装命令在所述移动终端提供的脚本 界面上编辑脚本, 其中, 所述脚本语言所支持的封装命令是预先定义的; 执行模块 24, 设置为在所述移动终端上执行编辑后的所述脚本。 图 3是根据本发明优选实施例的脚本处理装置的结构框图一, 如图 3所示, 所述 装置还包括: 获取模块 26, 设置为从服务器查询并获取所述脚本语言所支持的封装命 令。 优选地, 所述执行模块 24包括: 第一执行单元, 设置为在所述移动终端开机时, 执行所述脚本; 或者第二执行单元, 设置为根据触发条件执行所述脚本, 其中, 所述 触发条件为接收到双击操作或接收到单击操作。 图 4是根据本发明优选实施例的脚本处理装置的结构框图二, 如图 4所示, 所述 装置还包括: 提示模块 28, 设置为在所述移动终端的后台运行所述脚本的情况下, 如 果所述脚本与所述移动终端的操作发生冲突, 发送提示消息, 其中, 所述提示消息用 于提示选择中断或继续执行所述脚本。 优选地,所述封装命令用于调用所述移动终端的操作系统支持的一个或多个功能, 和 /或, 用于调用所述操作系统上安装的应用软件支持的一个或多个功能。 本发明实施例还提供了一种终端, 至少包括上述装置之一。 下面结合优选实施例进行说明, 以下优选实施例结合了上述实施例及其优选实施 方式。 本优选实施例中在移动终端中支持软件脚本编写的处理方法可以包括以下步骤: 移动终端开启脚本 script界面, 同时已开启数据业务; 进行代码编辑时, 通过云服务 器进行相关查询, 将已封装好的命令调用并存在本地; 执行脚本 script, 提示窗口实时 跟进, 如果跟用户当前操作发生冲突, 给予用户判断提示, 让用户进行选择。 通过对于支持脚本开发编辑的移动终端, 用户可以通过简单的脚本编辑功能, 完 成自己的脚本编辑, 通过简单的脚本就可以让用户跟终端进行沟通, 让终端执行用户 的个性化设计, 让人们对开发不在变得陌生, 让人们享受随意编辑的乐趣, 让人机交 互变得智能和随意, 通过简单的命令, 就可以让人们实现个性化设置, 极大提高了用 户体验。 如果采用面向对象的方式, 则可以包括: 通过打开脚本 script编辑器模块, 可以 通过命令词典查询和调用各种已封装好的命令; 然后按照脚本 script开发规则, 进行 脚本编译; 如果终端开机勾选运行脚本 script, 那么在实行脚本同时, 脚本 script提示 窗口会提示用户当前终端脚本 script的执行过。其中,脚本 script执行可以在后台运行, 不影响用户当前使用, 如果执行与用户操作冲突, 优先给予提示, 让用户选择是否中 断或继续。 本发明实施例中支持软件脚本编写的移动终端包括以下模块: 脚本功能编辑软件 模块、 调用服务上封装好的对应命令模块、 按照脚本规则完成动作编辑开发模块、 运 行脚本模块、 判断提示模块、 数据业务模块, 脚本 script编辑器模块, 终端上含有的 各类应用程序模块, 终端其他模块等。上述模块中, 本发明实施例中编辑模块 22对应 执行脚本功能编辑软件模块、 调用服务上封装好的对应命令模块、 按照脚本规则完成 动作编辑开发模块、脚本 script编辑器模块的功能,执行模块 24对应执行运行脚本模 块的功能,提示模块 28对应执行判断提示模块的功能,下面对各个模块进行详细说明。 脚本功能编辑软件模块: 启动脚本 script功能; 调用服务上封装好的对应命令模块: 该模块是核心模块, 通过云服务已经封装好 的命令, 进行调用使用; 按照脚本规则完成动作编辑开发模块: 脚本 script有自己的规则, 用户要按照该 模块的规则进行编辑; 运行脚本模块:该功能让用户可以在开机时勾选是否运行脚本 script,用户不勾选, 也可以通过双击脚本 script运行; 判断提示模块:用户当前操作如果与脚本 script操作冲突,进提示,如果脚本 script 在运行中, 该模块会实时给予用户提示脚本 script运行过程; 数据业务模块: 支持数据业务; 脚本 script编辑器模块: 提供用户编译的平台; 终端上含有的各类应用程序模块: 作为编辑执行的对象。 下面以封装命令放置在云服务器为例进行说明。 首先, 完成命令封装, 把所支持的封装命令放在云服务器, 以便用户上网后可以 随时获取, 并不占用本地内存; 然后, 在终端中设置支持面向对象语言编辑, 终端支 持脚本编辑, 即该终端中包含可以实现编辑语言的平台对话框, 以便用户在该平台中 进行操作与编辑。 图 5是根据本发明优选实施例的脚本处理方法的流程图, 如图 5所示, 该方法包 括以下步骤: 步骤 S502, 打开脚本功能编辑界面, 在终端中启动该功能编辑; 步骤 S504, 调用云服务器中已封装好的各种命令; 步骤 S506, 按照脚本编辑语言规则完成脚本编辑; 步骤 S508, 执行脚本; 步骤 S510, 如果与当前用户操作发生冲突, 向用户发送提示消息, 提示用户选择 继续或中断执行。 图 6是根据本发明实施例的实现调用命令的流程图, 如图 6所示, 调用云服务器 中已封装好的命令, 包括以下步骤: 步骤 S602, 通过数据业务连接网络云服务器; 步骤 S604, 访问已封装好的命名数据库; 步骤 S606, 把相应的己封装好的命令调用到本地。 图 7是本发明实施例的脚本编辑界面的结构框图, 如图 7所示, 在编辑界面, 可 以完成 run、 debug、 查询命令等操作。 其中, 该脚本平台即脚本功能编辑界面, 具有 支持 run、 debug、查询命令等功能, Order-dictionary与互联网连接,通过 Order-dictionary 实现从云服务器中调用已封装好的命令。 下面举例说明: 用户开打 Script app 界面, 在该脚本界面中编辑的内容如图 7所示, 在编辑界面 输入如下内容: when ue power on, TECHNICAL FIELD The present invention relates to the field of communications, and in particular to a script processing method and apparatus. BACKGROUND With the continuous development of mobile terminal products, the arrival of the 4G era and the launch of various applications, while people are constantly pursuing the pursuit of intelligent terminal products, the personalized setting and personalized use of various functions are particularly important. Today's smartphones are a trend now and in the future. Although people are using smart terminals, the real function is that the products already exist or are compiled, for more advanced user experience and product innovation, but users can not rely on themselves. The willingness to achieve human-computer interaction through simple language, complete the personalization. In view of the fact that users in related technologies cannot implement human-computer interaction in a simple language according to their own wishes and complete personalized settings, no effective solution has been proposed yet. SUMMARY OF THE INVENTION The present invention provides a script processing method and apparatus to solve at least the above problems, in which the user does not implement the human-computer interaction in a simple language according to the user's wishes. According to an aspect of the present invention, a script processing method is provided, which is applied to a mobile terminal, and includes: editing a script on a script interface provided by the mobile terminal by using a package command supported by a scripting language, where the script The encapsulation command supported by the language is predefined; the edited script is executed on the mobile terminal. Preferably, before editing the script, the method further comprises: querying and obtaining, from the server, an encapsulation command supported by the scripting language. Preferably, executing the script on the mobile terminal comprises: executing the script when the mobile terminal is powered on; or executing the script according to a trigger condition, wherein the trigger condition is that a double-click operation is received or Received a click. Preferably, after the script is executed on the mobile terminal, the method further includes: running the script in a background of the mobile terminal; sending a prompt message if the script conflicts with an operation of the mobile terminal The prompt message is used to prompt to select an interrupt or continue to execute the script. Preferably, the scripting language is an object oriented programming language. Preferably, the encapsulation command is used to invoke one or more functions supported by the operating system of the mobile terminal, and/or to invoke one or more functions supported by the application software installed on the operating system. According to another aspect of the present invention, a script processing apparatus is provided, including: an editing module, configured to edit a script on a script interface provided by the mobile terminal by using a package command supported by a scripting language, where The encapsulation command supported by the scripting language is predefined; the execution module is configured to execute the edited script on the mobile terminal. Preferably, the device further includes: an obtaining module, configured to query and acquire a package command supported by the scripting language from the server. Preferably, the execution module includes: a first execution unit configured to execute the script when the mobile terminal is powered on; or a second execution unit configured to execute the script according to a trigger condition, wherein the triggering The condition is that a double-click operation is received and a click operation is received. Preferably, the device further includes: a prompting module, configured to: when the script is run in the background of the mobile terminal, if the script conflicts with the operation of the mobile terminal, send a prompt message, where The prompt message is used to prompt for selection of an interrupt or to continue executing the script. Preferably, the encapsulation command is used to invoke one or more functions supported by the operating system of the mobile terminal, and/or to invoke one or more functions supported by the application software installed on the operating system. The script is edited on the script interface provided by the mobile terminal by using a package command supported by the scripting language, where the encapsulation command supported by the script language is predefined; executing on the mobile terminal The edited script solves the problem that the user in the related art can not realize the human-computer interaction through a simple language according to his own desire, and completes the personalized setting, and the terminal can be personalized design, thereby improving the user. Experience. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,, . In the drawings: FIG. 1 is a flowchart of a script processing method according to an embodiment of the present invention; FIG. 2 is a structural block diagram of a script processing apparatus according to an embodiment of the present invention; FIG. 3 is a preferred embodiment according to the present invention. FIG. 4 is a block diagram showing the structure of a script processing apparatus according to a preferred embodiment of the present invention; FIG. 5 is a flowchart of a script processing method according to a preferred embodiment of the present invention; FIG. 6 is a flowchart according to the present invention. A flowchart of an implementation call command of an embodiment; FIG. 7 is a structural block diagram of a script editing interface according to an embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. In the embodiment of the present invention, a script processing method is provided, which is applied to a mobile terminal. FIG. 1 is a flowchart of a script processing method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps: Step S102, the script is edited on the script interface provided by the mobile terminal by using a package command supported by the scripting language, where the encapsulation command supported by the script language is predefined; Step S104, executing on the mobile terminal The edited script. Through the above steps, the script is used to edit the script on the script interface provided by the mobile terminal, so that the user can edit the script through the script language to implement human-computer interaction according to his own wishes, and the user can call the package command supported by the predefined script language. Personalized settings are customized according to preferences, and the user can personalize the terminal through this function, thereby improving the user experience. In an optional embodiment, the foregoing encapsulation command may be used to invoke one or more functions supported by the operating system of the mobile terminal, and/or may be used to invoke application software installed on the operating system. One One or more features. In this way, a combination of multiple functions can be realized, maximally utilizing the operating system of the mobile terminal and the application software installed thereon. In an optional embodiment, in order to save the storage space of the mobile terminal, the encapsulation command may be set on the server, in which case, before editing the script, the server queries and obtains the support of the script language. Package command. With the development of cloud technology, servers can adopt cloud servers. Of course, if the storage capacity of the mobile terminal is continuously expanded, it is also conceivable to place the encapsulation command supported by the scripting language on the mobile terminal; or, a part of the encapsulation command may be placed on the server or a part of the encapsulation command may be placed on the mobile terminal. On the terminal, you can choose according to different situations. The edited script can be selected to be executed in different situations. For example, the script can be executed when the mobile terminal is powered on. For example, the script can also be executed according to a trigger condition, wherein the trigger condition is that a double-click operation is received or received. Click the action. The way the script is executed allows the user to choose according to their actual needs. The user-edited script may cause conflicts. In an optional implementation manner, conflict detection may also be performed. For example, if the script is run in the background of the mobile terminal, if the script conflicts with the operation of the mobile terminal, A prompt message is sent, which is used to prompt for selection of an interrupt or to continue execution of the script. By doing this, you can avoid conflicts as much as possible. In this embodiment, the scripting language can be various types of computer programming languages. Computer programming languages can be divided into high-level languages and non-high-level languages. They can also be divided into object-oriented languages and non-object-oriented languages (which can be said to be divided into object-oriented and process-oriented). The actual facing-oriented language is a high-level language in computers. . Alternatively, the scripting language can employ an object oriented programming language. Object-oriented language is a kind of programming language with objects as the basic program structure unit. It focuses on how to combine multiple scattered functions to form a complete function to complete a specific requirement. The object-oriented language draws on the artificial intelligence language LISP in the 1950s, introduces the concept of dynamic binding and the idea of interactive development environment; the discrete event simulation language SIMULA67, which began in the 1960s, introduces the essentials and inheritance of classes. The Smalltalk object-oriented language, which was formed in the 1970s, has two development directions: one is a pure object-oriented language, such as Smalltalk EIFFEL; the other is a hybrid object-oriented language, that is, in procedural languages and other languages. Add classes, inheritance and other components, such as C++, Objective-C, etc. The main feature is that the object-oriented language portrays the objective system more natural, which is convenient for software expansion and reuse. It has the following characteristics: identifiability, the basic components in the system can be recognized as a set of identifiable discrete objects; categorization, all objects with the same data structure and behavior can form a class; polymorphism, objects have unique Static type and Multiple possible dynamic types; inheritance, sharing data and operations in different classes of basic hierarchical relationships. Programming with an object-oriented programming language makes programming more flexible. In the embodiment, a script processing device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again. As used hereinafter, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and conceivable. 2 is a structural block diagram of a script processing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes: an editing module 22 configured to use a script provided by a scripting language to provide a script on the mobile terminal. Editing a script on the interface, wherein the encapsulation command supported by the script language is predefined; and the execution module 24 is configured to execute the edited script on the mobile terminal. 3 is a block diagram of a structure of a script processing apparatus according to a preferred embodiment of the present invention. As shown in FIG. 3, the apparatus further includes: an obtaining module 26 configured to query and obtain a package command supported by the scripting language from a server. . Preferably, the execution module 24 includes: a first execution unit configured to execute the script when the mobile terminal is powered on; or a second execution unit configured to execute the script according to a trigger condition, where The trigger condition is that a double-click operation is received or a click operation is received. 4 is a block diagram showing the structure of a script processing apparatus according to a preferred embodiment of the present invention. As shown in FIG. 4, the apparatus further includes: a prompting module 28, configured to run the script in the background of the mobile terminal. And if the script conflicts with the operation of the mobile terminal, sending a prompt message, where the prompt message is used to prompt to select an interrupt or continue to execute the script. Preferably, the encapsulation command is used to invoke one or more functions supported by the operating system of the mobile terminal, and/or to invoke one or more functions supported by the application software installed on the operating system. An embodiment of the present invention further provides a terminal, including at least one of the foregoing devices. The following description will be made in conjunction with the preferred embodiments, and the following preferred embodiments incorporate the above-described embodiments and preferred embodiments thereof. The processing method for supporting software scripting in the mobile terminal in the preferred embodiment may include the following steps: the mobile terminal starts the script script interface, and the data service is started; when the code is edited, the cloud service is used. The relevant query is executed, and the encapsulated command is called and exists locally; the script is executed, and the prompt window is followed up in real time. If there is a conflict with the current operation of the user, the user is given a judgment prompt to let the user make a selection. Through the mobile terminal for supporting script development and editing, the user can complete his own script editing through a simple script editing function, and the user can communicate with the terminal through a simple script, and let the terminal perform the user's personalized design, so that people can Development is not unfamiliar, allowing people to enjoy the joy of free editing, making the interaction of the machine intelligent and casual. With simple commands, people can be personalized and greatly improved the user experience. If you adopt the object-oriented approach, you can include: By opening the script script editor module, you can query and call various encapsulated commands through the command dictionary; then follow the script script development rules to compile the script; Run the script script, then at the same time the script is executed, the script script prompt window will prompt the user to execute the current terminal script. The script script execution can be run in the background without affecting the current usage of the user. If the execution conflicts with the user operation, the prompt is given priority, and the user is selected to interrupt or continue. The mobile terminal supporting software scripting in the embodiment of the present invention includes the following modules: a script function editing software module, a corresponding command module packaged on the calling service, an action editing development module, a running script module, a judgment prompt module, and data according to a script rule. Business module, script script editor module, various application modules contained in the terminal, other modules of the terminal, etc. In the above module, in the embodiment of the present invention, the editing module 22 corresponds to executing the script function editing software module, calling the corresponding command module encapsulated on the service, completing the function of the action editing development module and the script script editor module according to the script rule, and executing the module 24 Corresponding to the function of executing the running script module, the prompting module 28 correspondingly performs the function of the determining prompting module, and each module will be described in detail below. Script function editing software module: Start script script function; Call the corresponding command module encapsulated on the service: This module is the core module, which is called by the cloud service already encapsulated command; complete the action editing development module according to the script rule: script The script has its own rules, the user should edit according to the rules of the module; Run the script module: This function allows the user to check whether to run the script script when booting, the user does not check, or can run by double-clicking the script script; Module: If the current operation of the user conflicts with the script script operation, the prompt will be given. If the script script is running, the module will prompt the user to prompt the script script to run in real time; Data service module: Support data service; Script script editor module: Provide user-compiled platform; Various application modules contained on the terminal: As an object of editing execution. The following is an example of placing a package command on a cloud server. First, the command encapsulation is completed, and the supported encapsulation commands are placed on the cloud server, so that the user can obtain the information at any time after accessing the Internet, and does not occupy the local memory; then, the object-oriented language editing is supported in the terminal, and the terminal supports script editing, that is, the The terminal contains a platform dialog box that can implement the editing language, so that the user can operate and edit in the platform. FIG. 5 is a flowchart of a script processing method according to a preferred embodiment of the present invention. As shown in FIG. 5, the method includes the following steps: Step S502: Open a script function editing interface, and start the function editing in the terminal; Step S504, call The various commands are encapsulated in the cloud server; Step S506, the script editing is completed according to the script editing language rule; Step S508, executing the script; Step S510, if a conflict occurs with the current user operation, sending a prompt message to the user, prompting the user to select to continue Or interrupt execution. FIG. 6 is a flowchart of implementing an invocation command according to an embodiment of the present invention. As shown in FIG. 6, the command to be encapsulated in the cloud server includes the following steps: Step S602, connecting a network cloud server by using a data service; Step S604, Accessing the encapsulated naming database; Step S606, calling the corresponding encapsulated command to the local. FIG. 7 is a structural block diagram of a script editing interface according to an embodiment of the present invention. As shown in FIG. 7, in the editing interface, operations such as run, debug, and query commands can be completed. The script platform is a script function editing interface, and has functions of supporting run, debug, and query commands. The Order-dictionary is connected to the Internet, and the encapsulated commands are called from the cloud server through the Order-dictionary. The following is an example: The user opens the Script app interface. The content edited in the script interface is shown in Figure 7. Enter the following on the editing interface: when ue power on,
open "360卫士", do "手机清理", end  Open "360 guardian", do "mobile phone cleanup", end
delay 2s,  Delay 2s,
dial " 189xxx" in 3 : 10pm today,  Dial " 189xxx" in 3 : 10pm today,
if dial successful,  If dial successful,
play record "6点去看电影", else  Play record "6 o'clock to go to the movies", else
send sms to "189xxx" in 3 : 10pm today, context" 6点去看电影", end. 其中, when ue power on, open, do, end, delay, dial, in, today, play record... 等都是已经封装好的命令, 通过该功能, 用户按照如下 coding, 完成了一段小代码的 开发, 并可以 save as xxx.sricpt脚本。 每次移动设备开机后, 就会执行 xxx.sricpt脚本, 打开 360卫士 -清理手机, 然后 给一个号码播放录音, 录音内容是今天 6点去看电影。 仅为例子。 如果想实现更过的功能, 让手机做更多的操作, 脚本可以识别手机上任何 app软 件, 只要通过使用脚本 script就可以实现, 而且简单好用, 可以让人们都可以通过手 机成为程序员, 并进行 debug script,让编程得以实现。 在上述实施例中, 通过终端支持脚本编译, 让用户与终端上任何一个应用程序可 以人机交互, 真正的让开发遍布人们身边周围, 通过简单明了的命令, 就可以让人们 实现个性化设置, 甚至自己开发应用程序。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 工业实用性 如上所述, 本发明实施例提供的脚本处理方法、 装置及终端具有以下有益效果: 解决了相关技术中用户并不能根据自己的意愿通过简易的语言实现人机交互, 完成个 性化设置的问题, 通过该功能可以对终端进行个性化设计, 从而改善了用户体验。 Send sms to "189xxx" in 3 : 10pm today, context" 6 o'clock to watch movies", end. where, when ue power on, open, do, end, delay, dial, in, today, play record... All are encapsulated commands. Through this function, the user completes a small code development according to the following coding, and can save as xxx.sricpt script. Every time the mobile device is turned on, it will execute the xxx.sricpt script, open the 360 Guardian - clean the phone, and then play a recording to a number, the recording is to go to the cinema at 6 o'clock today. Just an example. If you want to implement more functions and let the phone do more operations, the script can identify any app software on the phone, which can be realized by using script script, and it is simple and easy to use, so that people can become programmers through the mobile phone. And debug script to make programming possible. In the above embodiment, the terminal supports script compilation, so that the user can interact with any application on the terminal, and the development is spread around the people. The simple and clear commands can enable people to implement personalized settings. Even develop your own application. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention. INDUSTRIAL APPLICABILITY As described above, the script processing method, apparatus, and terminal provided by the embodiments of the present invention have the following beneficial effects: The user in the related art cannot solve the human-computer interaction in a simple language according to his own wishes, and complete the personalized setting. The problem is that the terminal can be personalized to improve the user experience.

Claims

权 利 要 求 书 Claim
1. 一种脚本处理方法, 应用于移动终端, 包括: 使用脚本语言所支持的封装命令在所述移动终端提供的脚本界面上编辑脚 本, 其中, 所述脚本语言所支持的封装命令是预先定义的; A script processing method, applied to a mobile terminal, includes: editing a script on a script interface provided by the mobile terminal by using a package command supported by a scripting language, where a package command supported by the script language is predefined of;
在所述移动终端上执行编辑后的所述脚本。  The edited script is executed on the mobile terminal.
2. 根据权利要求 1所述的方法, 其中, 在编辑所述脚本之前, 所述方法还包括: 从服务器查询并获取所述脚本语言所支持的封装命令。 2. The method according to claim 1, wherein, before editing the script, the method further comprises: querying and obtaining, from the server, an encapsulation command supported by the scripting language.
3. 根据权利要求 2所述的方法, 其中, 在所述移动终端上执行所述脚本包括: 在所述移动终端开机时, 执行所述脚本; 或者 3. The method according to claim 2, wherein executing the script on the mobile terminal comprises: executing the script when the mobile terminal is powered on; or
根据触发条件执行所述脚本, 其中, 所述触发条件为接收到双击操作或接 收到单击操作。  The script is executed according to a trigger condition, wherein the trigger condition is that a double tap operation is received or a click operation is received.
4. 根据权利要求 1至 3中任一项所述的方法, 其中, 在所述移动终端上执行所述 脚本之后, 所述方法还包括: 在所述移动终端的后台运行所述脚本; The method according to any one of claims 1 to 3, wherein after the executing the script on the mobile terminal, the method further comprises: running the script in a background of the mobile terminal;
如果所述脚本与所述移动终端的操作发生冲突, 发送提示消息, 其中, 所 述提示消息用于提示选择中断或继续执行所述脚本。  If the script conflicts with the operation of the mobile terminal, a prompt message is sent, wherein the prompt message is used to prompt selection of an interrupt or to continue executing the script.
5. 根据权利要求 1至 3中任一项所述的方法, 其中, 所述脚本语言为面向对象的 编程语言。 The method according to any one of claims 1 to 3, wherein the scripting language is an object oriented programming language.
6. 根据权利要求 1至 3中任一项所述的方法, 其中, 所述封装命令用于调用所述 移动终端的操作系统支持的一个或多个功能, 和 /或, 用于调用所述操作系统上 安装的应用软件支持的一个或多个功能。 The method according to any one of claims 1 to 3, wherein the encapsulation command is used to invoke one or more functions supported by an operating system of the mobile terminal, and/or to invoke the One or more features supported by the application software installed on the operating system.
7. 一种脚本处理装置, 包括: 编辑模块, 设置为使用脚本语言所支持的封装命令在所述移动终端提供的 脚本界面上编辑脚本, 其中, 所述脚本语言所支持的封装命令是预先定义的; 执行模块, 设置为在所述移动终端上执行编辑后的所述脚本。 7. A script processing apparatus, comprising: an editing module, configured to edit a script on a script interface provided by the mobile terminal using a package command supported by a scripting language, wherein a package command supported by the script language is predefined The execution module is configured to execute the edited script on the mobile terminal.
8. 根据权利要求 7所述的装置, 其中, 所述装置还包括: 获取模块, 设置为从服务器查询并获取所述脚本语言所支持的封装命令。 The device according to claim 7, wherein the device further comprises: an obtaining module, configured to query and acquire, from the server, a package command supported by the scripting language.
9. 根据权利要求 8所述的装置, 其中, 所述执行模块包括: 第一执行单元, 设置为在所述移动终端开机时, 执行所述脚本; 或者 第二执行单元, 设置为根据触发条件执行所述脚本, 其中, 所述触发条件 为接收到双击操作或接收到单击操作。 The device according to claim 8, wherein the execution module comprises: a first execution unit, configured to execute the script when the mobile terminal is powered on; or a second execution unit, configured to be based on a trigger condition Executing the script, where the trigger condition is that a double-click operation is received or a click operation is received.
10. 根据权利要求 7至 9中任一项所述的装置, 其中, 所述装置还包括: 提示模块, 设置为在所述移动终端的后台运行所述脚本的情况下, 如果所 述脚本与所述移动终端的操作发生冲突, 发送提示消息, 其中, 所述提示消息 用于提示选择中断或继续执行所述脚本。 The device according to any one of claims 7 to 9, wherein the device further comprises: a prompting module, configured to: if the script is run in the background of the mobile terminal, if the script is The operation of the mobile terminal conflicts, and a prompt message is sent, where the prompt message is used to prompt selection of an interrupt or continue to execute the script.
11. 根据权利要求 7至 9中任一项所述的装置, 其中, 所述封装命令用于调用所述 移动终端的操作系统支持的一个或多个功能, 和 /或, 用于调用所述操作系统上 安装的应用软件支持的一个或多个功能。 The apparatus according to any one of claims 7 to 9, wherein the encapsulation command is used to invoke one or more functions supported by an operating system of the mobile terminal, and/or to invoke the One or more features supported by the application software installed on the operating system.
12. 一种终端, 包括权利要求 7至 11中任一项所述的装置。 12. A terminal comprising the apparatus of any one of claims 7 to 11.
PCT/CN2014/084554 2014-06-25 2014-08-15 Script processing method and device WO2015196541A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410294513.8 2014-06-25
CN201410294513.8A CN105320505A (en) 2014-06-25 2014-06-25 Script processing method and device

Publications (1)

Publication Number Publication Date
WO2015196541A1 true WO2015196541A1 (en) 2015-12-30

Family

ID=54936549

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/084554 WO2015196541A1 (en) 2014-06-25 2014-08-15 Script processing method and device

Country Status (2)

Country Link
CN (1) CN105320505A (en)
WO (1) WO2015196541A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108271080A (en) * 2016-12-30 2018-07-10 艾迪普(北京)文化科技股份有限公司 The broadcast control method and device of scripting visual effect during a kind of broadcast

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540774A (en) * 2009-05-08 2009-09-23 深圳市茁壮网络技术有限公司 Implementation method, terminal device and server of timer application service
CN101667121A (en) * 2009-09-28 2010-03-10 中兴通讯股份有限公司 Feature phone secondary development method and device
CN101977268A (en) * 2010-10-27 2011-02-16 中兴通讯股份有限公司 Mobile terminal processing method and mobile terminal
US20130174012A1 (en) * 2012-01-03 2013-07-04 Vistaprint Technologies Limited Automated generation of mobile optimized website

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799462B (en) * 2011-05-27 2015-07-29 深圳市金蝶中间件有限公司 Based on the script engine device of Eclipse platform and the collocation method of Eclipse platform
CN103019697A (en) * 2012-11-22 2013-04-03 福建天晴数码有限公司 Edition plug-in unit of LUA script

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540774A (en) * 2009-05-08 2009-09-23 深圳市茁壮网络技术有限公司 Implementation method, terminal device and server of timer application service
CN101667121A (en) * 2009-09-28 2010-03-10 中兴通讯股份有限公司 Feature phone secondary development method and device
CN101977268A (en) * 2010-10-27 2011-02-16 中兴通讯股份有限公司 Mobile terminal processing method and mobile terminal
US20130174012A1 (en) * 2012-01-03 2013-07-04 Vistaprint Technologies Limited Automated generation of mobile optimized website

Also Published As

Publication number Publication date
CN105320505A (en) 2016-02-10

Similar Documents

Publication Publication Date Title
US11915696B2 (en) Digital assistant voice input integration
JP6671394B2 (en) Digital assistant extensibility for third party applications
RU2689203C2 (en) Flexible circuit for adjusting language model
CN116737900A (en) Man-machine interaction processing system and method, storage medium and electronic equipment
CN109408136B (en) Information processing method, information processing apparatus, storage medium, and electronic device
CN110990075B (en) Method, device, equipment and storage medium for starting fast application
US10637804B2 (en) User terminal apparatus, communication system, and method of controlling user terminal apparatus which support a messenger service with additional functionality
KR20210134675A (en) Method and system for learning and executing instructions through user demonstration
CN104281478B (en) The method and device of more new application
WO2014107693A1 (en) Method and system for providing cloud-based common distribution applications
EP4210053A1 (en) Application program control method and apparatus, electronic device, and storage medium
CN110750437B (en) Equipment debugging method, device, equipment and system
CN112152913B (en) Service control method, device and system
CN114064024A (en) Method, apparatus, device, storage medium, and program product for developing micro-application
WO2015176352A1 (en) Android system-based method and device for information exchange between applications
JP4943650B2 (en) System for multimedia rendering on portable devices
CN112243016B (en) Middleware platform, terminal equipment, 5G artificial intelligence cloud processing system and processing method
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN112235132B (en) Method, device, medium and server for dynamically configuring service
WO2021097683A1 (en) Android system starting method and apparatus, device, and storage medium
CN104391742B (en) Optimizing application method and apparatus
CN111367561A (en) Software program remote development method and device
WO2015196541A1 (en) Script processing method and device
CN114840194A (en) Code and operating system generation method and device, server and electronic equipment
CN112597022A (en) Remote diagnosis method, device, storage medium and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14895780

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14895780

Country of ref document: EP

Kind code of ref document: A1