WO2015196541A1 - Procédé et dispositif de traitement de script - Google Patents

Procédé et dispositif de traitement de script 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
English (en)
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/fr

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

L'invention concerne un procédé et un dispositif de traitement de script. Le procédé consiste : à utiliser une instruction d'encapsulation prise en charge par un langage de script pour éditer un script dans une interface de script fournie par un terminal mobile (S102), l'instruction d'encapsulation prise en charge par le langage de script étant prédéfinie ; et en l'exécution du script édité sur le terminal mobile (S104) Au moyen du procédé, le problème dans l'état de la technique selon lequel un utilisateur ne peut pas réaliser une interaction homme-machine par l'intermédiaire d'un langage facile ainsi que des réglages personnalisés complets à volonté est résolu, et au moyen de la fonction, un modèle personnalisé peut être exécuté sur un terminal, améliorant ainsi l'expérience utilisateur.
PCT/CN2014/084554 2014-06-25 2014-08-15 Procédé et dispositif de traitement de script WO2015196541A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410294513.8 2014-06-25
CN201410294513.8A CN105320505A (zh) 2014-06-25 2014-06-25 脚本处理方法及装置

Publications (1)

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

Family

ID=54936549

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/084554 WO2015196541A1 (fr) 2014-06-25 2014-08-15 Procédé et dispositif de traitement de script

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108271080A (zh) * 2016-12-30 2018-07-10 艾迪普(北京)文化科技股份有限公司 一种播出过程中脚本化视觉效果的播控方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540774A (zh) * 2009-05-08 2009-09-23 深圳市茁壮网络技术有限公司 定时器应用业务的实现方法、终端设备和服务器
CN101667121A (zh) * 2009-09-28 2010-03-10 中兴通讯股份有限公司 一种功能手机的二次开发方法及装置
CN101977268A (zh) * 2010-10-27 2011-02-16 中兴通讯股份有限公司 移动终端处理方法及移动终端
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 (zh) * 2011-05-27 2015-07-29 深圳市金蝶中间件有限公司 基于Eclipse平台的脚本引擎装置及Eclipse平台的配置方法
CN103019697A (zh) * 2012-11-22 2013-04-03 福建天晴数码有限公司 一种lua脚本的编辑插件

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540774A (zh) * 2009-05-08 2009-09-23 深圳市茁壮网络技术有限公司 定时器应用业务的实现方法、终端设备和服务器
CN101667121A (zh) * 2009-09-28 2010-03-10 中兴通讯股份有限公司 一种功能手机的二次开发方法及装置
CN101977268A (zh) * 2010-10-27 2011-02-16 中兴通讯股份有限公司 移动终端处理方法及移动终端
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 (zh) 2016-02-10

Similar Documents

Publication Publication Date Title
US11915696B2 (en) Digital assistant voice input integration
JP6671394B2 (ja) サードパーティアプリケーションに対するデジタルアシスタント拡張性
RU2689203C2 (ru) Гибкая схема для настройки языковой модели
CN116737900A (zh) 人机交互处理系统及其方法、存储介质、电子设备
CN110990075B (zh) 快应用的启动方法、装置、设备及存储介质
CN109408136B (zh) 信息处理方法、装置、存储介质及电子设备
US10637804B2 (en) User terminal apparatus, communication system, and method of controlling user terminal apparatus which support a messenger service with additional functionality
KR20210134675A (ko) 사용자 시연을 통하여 명령들을 학습하고 실행 가능하게 하기 위한 방법 및 시스템
CN104281478B (zh) 更新应用程序的方法及装置
WO2014107693A1 (fr) Procédé et système de fourniture d'applications de diffusion commune en nuage
EP4210053A1 (fr) Procédé et appareil de commande de programme d'application, dispositif électronique, et support de stockage
CN110750437B (zh) 一种设备调试方法、装置、设备及系统
CN112152913B (zh) 一种服务控制方法、装置及系统
CN114064024A (zh) 微应用的开发方法、装置、设备、存储介质及程序产品
WO2015176352A1 (fr) Procédé et dispositif basés sur le système android pour l'échange d'informations entre applications
JP4943650B2 (ja) ポータブルデバイスにおけるマルチメディアレンダリングのためのシステム
CN112243016B (zh) 一种中间件平台、终端设备、5g人工智能云处理系统及处理方法
CN109343970B (zh) 基于应用程序的操作方法、装置、电子设备及计算机介质
CN112235132B (zh) 动态配置服务的方法、装置、介质以及服务器
WO2021097683A1 (fr) Procédé et appareil de démarrage de système android, dispositif et support de stockage
CN104391742B (zh) 应用优化方法和装置
CN111367561A (zh) 软件程序远程开发方法及装置
WO2015196541A1 (fr) Procédé et dispositif de traitement de script
CN114840194A (zh) 代码及操作系统的生成方法和装置、服务器及电子设备
CN112597022A (zh) 远程诊断方法、装置、存储介质及电子设备

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