WO2018032695A1 - Method and system for ppt state notification - Google Patents

Method and system for ppt state notification Download PDF

Info

Publication number
WO2018032695A1
WO2018032695A1 PCT/CN2016/113166 CN2016113166W WO2018032695A1 WO 2018032695 A1 WO2018032695 A1 WO 2018032695A1 CN 2016113166 W CN2016113166 W CN 2016113166W WO 2018032695 A1 WO2018032695 A1 WO 2018032695A1
Authority
WO
WIPO (PCT)
Prior art keywords
ppt
application
callback object
change information
receiving end
Prior art date
Application number
PCT/CN2016/113166
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 WO2018032695A1 publication Critical patent/WO2018032695A1/en

Links

Images

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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Definitions

  • the present invention relates to the field of multimedia technologies, and in particular, to a PPT status notification method and system.
  • PPT Power Point
  • PC Personal Computer
  • the mobile terminal can communicate with the PC to know the status of the PPT on the PC, and the user on the mobile terminal.
  • the PC end can be remotely controlled according to the state of the PPT, or the mobile terminal and the PC end can be synchronized.
  • a PPT status notification method includes the following steps:
  • a notification message is generated according to the PPT state change information and transmitted to the receiving end.
  • a PPT status notification system includes:
  • An object injection module configured to inject a preset callback object into the PPT application by using a COM technology, so that the PPT application invokes the callback object when a PPT state changes;
  • An information receiving module configured to receive PPT state change information sent by the callback object
  • a message sending module configured to generate a notification message according to the PPT state change information, and send the notification message to the receiving end.
  • the above PPT status notification method and system start a PPT application through COM technology, and inject a preset callback object into a PPT application through a COM technology, so that the PPT application calls a callback object when the PPT state changes, and then receives the callback object to send.
  • the PPT state change information generates a notification message according to the PPT state change information and transmits it to the receiving end.
  • the PPT state will be actively notified after the change of the state, and the PPT interface is not frequently requested to obtain the state, which saves program resources and improves the interaction efficiency.
  • the change of the PPT state can be known in real time, and is not limited to the timing of querying the PPT state.
  • FIG. 1 is a flowchart of a PPT status notification method in an embodiment
  • FIG. 2 is a flowchart of a PPT status notification method in another embodiment
  • FIG. 3 is a block diagram of a PPT status notification system in an embodiment
  • FIG. 4 is a block diagram of a PPT status notification system in another embodiment.
  • a PPT status notification method in an embodiment may be applied to a terminal device that can play a PPT, and the method includes the following steps.
  • S110 Launch the PPT application through the COM technology.
  • the PPT status notification method is applied to a device A.
  • the PPT status notification method is applied to a device A.
  • COM Component Object Model
  • Microsoft Corporation To make computer software production more compliant with human behavior.
  • COM provides a bridge between various application software, and can operate Microsoft Office through COM technology. Component.
  • the PPT application is not running before startup. At this time, the PPT process is started in the background when the PPT instance is created, and the PPT presentation interface does not appear.
  • the PPT application is running before the startup. At this time, the current PPT instance is obtained. The PPT instance that is currently active can be obtained through the PPT instance.
  • S130 Inject a preset callback object into the PPT application through the COM technology, so that the PPT application calls the callback object when the PPT state changes.
  • Objects are a wrapper around data and methods. When an object has an event, it usually sends a "message" to other related objects, asking them to do some processing, and the object that handles the event is called a "callback object.”
  • the PPT application in the Office component provides a series of link points (equivalent to a function entry) that will actively call the corresponding callback function after the registered message event occurs.
  • the COM technology is used to inject the preset callback object into the PPT application through the link point, and establish a link with the PPT application, so that the PPT application can actively call the callback object when the PPT state changes, and the PPT can be passively and accurately obtained through the callback object. State changes.
  • the callback object After the PPT application actively calls the callback object, the callback object generates PPT state change information according to the PPT state change and returns.
  • the PPT status change information includes page up, page down, animation play, slide show, and show exit. It can be understood that in other embodiments, the PPT state change information may also include information of other states, which is not mentioned here.
  • S170 Generate a notification message according to the PPT state change information and send it to the receiving end.
  • the notification message is used to inform the receiving end of the current PPT state, and the receiving end parsing the notification message can obtain the PPT state change information, so that the receiving end performs corresponding processing according to the PPT state change information, for example, returns a control signal to control the change of the PPT state, or Control to change the PPT of the receiving end itself status.
  • the PPT status notification method starts the PPT application through the COM technology, and injects the preset callback object into the PPT application through the COM technology, so that the PPT application calls the callback object when the PPT state changes, and then receives the PPT sent by the callback object.
  • the status change information generates a notification message according to the PPT status change information and transmits it to the receiving end.
  • the PPT state will be actively notified after the change of the state, and the PPT interface is not frequently requested to obtain the state, which saves program resources and improves the interaction efficiency.
  • the change of the PPT state can be known in real time, and is not limited to the timing of querying the PPT state.
  • step S100 is further included.
  • S100 Establish a callback object responsible for generating PPT state change information.
  • the establishment of the callback object is specifically to add a program for acquiring the PPT state when called, and generating PPT state change information. By pre-establishing a callback object, it is convenient to directly inject the callback object into the PPT program.
  • step S120 is further included.
  • step S120 Determine whether the PPT application is successfully started. If yes, step S130 is performed. If not, it may not operate, or return to step S110 to start the PPT application again.
  • step S170 further includes steps (a1) to (a2).
  • Step (a1) receiving a feedback message returned by the receiving end.
  • the feedback message is sent by the receiving end.
  • the feedback message is used to indicate whether the receiving end successfully receives the notification message.
  • Step (a2) determining, according to the feedback message, whether the receiving end receives the notification message. If yes, it indicates that the receiving end successfully received the notification message. If no, the process returns to step S170.
  • the feedback message returned by the receiving end is obtained after the notification message is sent.
  • the process returns to step S170 to resend the notification message to ensure reception.
  • the terminal successfully received the notification message, and the receiving end is raised and received. The success rate of the interaction.
  • a processing program is programmed by using the PPT status notification method, and a callback object is established in the processing program.
  • the processing program is applied to the device A, and the device A communicates with the device B as the receiving end to complete the PPT collaborative presentation.
  • the PPT application of the device A performs a page turning operation, and invokes a callback object, and sends a PPT state change message to the processing program by calling the callback object, and the processing program sends a notification message to the standby B according to the PPT state change message, and the device B according to the notification message After obtaining the PPT status change message, the same state change can be performed to complete the collaborative presentation.
  • the PPT status notification system in an embodiment may be applied to a PPT-enabled terminal device, and the system includes a function linking module 110, an object injection module 130, an information receiving module 150, and a message sending module 170.
  • the function linking module 110 is used to launch a PPT application through COM technology.
  • the PPT status notification method is applied to a device A.
  • the PPT status notification method is applied to a device A.
  • the object injection module 130 is configured to inject a preset callback object into the PPT application through the COM technology, so that the PPT application calls the callback object when the PPT state changes.
  • the PPT application in the Office component provides a series of link points (equivalent to a function entry) that will actively call the corresponding callback function after the registered message event occurs.
  • the object injection module 130 injects a preset callback object into the PPT application through the link point by using the COM technology, and establishes a link with the PPT application, so that the PPT application can actively call the callback object when the PPT state changes, and can be passively passed through the callback object. Accurately obtain the state change of the PPT.
  • the information receiving module 150 is configured to receive PPT state change information sent by the callback object.
  • the callback object After the PPT application actively calls the callback object, the callback object generates PPT state change information according to the PPT state change and returns.
  • the PPT status change information includes page up, page down, animation, slide show And the show exits. It can be understood that in other embodiments, the PPT state change information may also include information of other states, which is not mentioned here.
  • the message sending module 170 is configured to generate a notification message according to the PPT state change information and send the notification message to the receiving end.
  • the notification message is used to inform the receiving end of the current PPT state, and the receiving end parsing the notification message can obtain the PPT state change information, so that the receiving end performs corresponding processing according to the PPT state change information, for example, returns a control signal to control the change of the PPT state, or Control changes the PPT state of the receiving end itself.
  • the function linking module 110 starts the PPT application by the COM technology, and the object injection module 130 injects the preset callback object into the PPT application through the COM technology, so that the PPT application calls the callback object when the PPT state changes.
  • the information receiving module 150 receives the PPT state change information sent by the callback object, and the message sending module 170 generates a notification message according to the PPT state change information and sends the notification message to the receiving end.
  • the PPT state will be actively notified after the change of the state, and the PPT interface is not frequently requested to obtain the state, which saves program resources and improves the interaction efficiency.
  • the change of the PPT state can be known in real time, and is not limited to the timing of querying the PPT state.
  • the PPT status notification system further includes an object creation module 100 for establishing a callback object responsible for generating PPT state change information.
  • the establishment of the callback object is specifically to add a program for acquiring the PPT state when called, and generating PPT state change information. By pre-establishing a callback object, it is convenient to directly inject the callback object into the PPT program.
  • the PPT status notification system further includes a startup analysis module 120 for determining whether the PPT application is successfully started, and controlling the function of the object injection module 130 when the PPT application is successfully started. Specifically, when the PPT application is not successfully started, the startup analysis module 120 may not operate, and the function linking module 110 may be controlled to start the PPT application again.
  • the PPT status notification system further includes a feedback processing module (not shown). And receiving the feedback message returned by the receiving end, determining, according to the feedback message, whether the receiving end receives the notification message, and if not, the control message sending module 170 generates the notification message according to the PPT state change information again and sends the notification message to the receiving end.
  • the feedback message is sent by the receiving end.
  • the feedback message is used to indicate whether the receiving end successfully receives the notification message.
  • the feedback message returned by the receiving end is obtained.
  • the control message sending module 170 generates the notification message again according to the PPT state change information and sends the notification message to the The receiving end ensures that the receiving end successfully receives the notification message and improves the success rate of interaction with the receiving end.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

A method and a system for PPT state notification. The method for PPT state notification comprises: starting a PPT application program by means of COM technology (S110), implanting, by means of the COM technology, a preset callback object into the PPT application program so that the PPT application program calls the callback object when the PPT state changes (S130); receiving information concerning a PPT state change sent by the callback object (S150), generating, according to the information concerning the PPT state change, a notification message and sending same to a receiving end (S170). Thus, the invention uses COM technology to establish a link with and communicate with a PPT application program, allowing active notification of a PPT state change, without the need for frequently requesting the PPT interface to acquire the state, saving program resources, and also improving interaction efficiency. Meanwhile, a PPT state change can be learnt in real time, not limited to the time of querying the PPT state.

Description

PPT状态通知方法和***PPT status notification method and system 技术领域Technical field
本发明涉及多媒体技术领域,特别是涉及一种PPT状态通知方法和***。The present invention relates to the field of multimedia technologies, and in particular, to a PPT status notification method and system.
背景技术Background technique
PPT(Power Point)作为一种演示文稿软件,广泛应用于办公、学习、教育等场景。随着科技的发展,终端与终端之间还可以实现PPT协同演示,例如,PC(Personal Computer个人电脑)端播放PPT,手机端通过与PC端通信,可以知道PC端PPT的状态,手机端的用户可以根据PPT的状态远程控制PC端,或者手机端与PC端实现同步播放。As a presentation software, PPT (Power Point) is widely used in office, learning, education and other scenarios. With the development of technology, PPT collaborative demonstration can also be implemented between the terminal and the terminal. For example, the PC (Personal Computer) plays PPT, and the mobile terminal can communicate with the PC to know the status of the PPT on the PC, and the user on the mobile terminal. The PC end can be remotely controlled according to the state of the PPT, or the mobile terminal and the PC end can be synchronized.
传统的实现手机端获取PC端PPT状态的方式是需要不断的请求PPT接口。这样的方式既浪费程序资源,而且容易出现请求故障问题,使得交互效率低。The traditional way to obtain the PPT status of the PC on the mobile terminal is to continuously request the PPT interface. Such a method wastes program resources and is prone to request failure problems, making the interaction inefficient.
发明内容Summary of the invention
基于此,有必要针对上述问题,提供一种可以主动通知PPT状态、提高交互效率的PPT状态通知方法和***。Based on this, it is necessary to provide a PPT status notification method and system that can actively notify the PPT status and improve the interaction efficiency in response to the above problems.
一种PPT状态通知方法,包括如下步骤:A PPT status notification method includes the following steps:
通过COM技术启动PPT应用程序;Launch the PPT application via COM technology;
通过COM技术将预设的回调对象注入到所述PPT应用程序,以使所述PPT应用程序在PPT状态变化时调用所述回调对象;Injecting a preset callback object into the PPT application by COM technology, so that the PPT application calls the callback object when the PPT state changes;
接收所述回调对象发送的PPT状态改变信息;Receiving PPT state change information sent by the callback object;
根据所述PPT状态改变信息生成通知消息并发送至接收端。A notification message is generated according to the PPT state change information and transmitted to the receiving end.
一种PPT状态通知***,包括:A PPT status notification system includes:
功能链接模块,用于通过COM技术启动PPT应用程序;A function linking module for launching a PPT application via COM technology;
对象注入模块,用于通过COM技术将预设的回调对象注入到所述PPT应用程序,以使所述PPT应用程序在PPT状态变化时调用所述回调对象; An object injection module, configured to inject a preset callback object into the PPT application by using a COM technology, so that the PPT application invokes the callback object when a PPT state changes;
信息接收模块,用于接收所述回调对象发送的PPT状态改变信息;An information receiving module, configured to receive PPT state change information sent by the callback object;
消息发送模块,用于根据所述PPT状态改变信息生成通知消息并发送至接收端。And a message sending module, configured to generate a notification message according to the PPT state change information, and send the notification message to the receiving end.
上述PPT状态通知方法和***,通过COM技术启动PPT应用程序,通过COM技术将预设的回调对象注入到PPT应用程序,以使PPT应用程序在PPT状态变化时调用回调对象,然后接收回调对象发送的PPT状态改变信息,根据PPT状态改变信息生成通知消息并发送至接收端。如此,通过采用COM技术与PPT应用程序建立链接并通信,使得PPT状态变化后会主动通知,不需要频繁的请求PPT接口去获取状态,节省了程序资源,也提高了交互效率。同时,可以实时知道PPT状态的改变,不局限于查询PPT状态的时机。The above PPT status notification method and system start a PPT application through COM technology, and inject a preset callback object into a PPT application through a COM technology, so that the PPT application calls a callback object when the PPT state changes, and then receives the callback object to send. The PPT state change information generates a notification message according to the PPT state change information and transmits it to the receiving end. In this way, by using COM technology to establish a link and communication with the PPT application, the PPT state will be actively notified after the change of the state, and the PPT interface is not frequently requested to obtain the state, which saves program resources and improves the interaction efficiency. At the same time, the change of the PPT state can be known in real time, and is not limited to the timing of querying the PPT state.
附图说明DRAWINGS
图1为一实施例中PPT状态通知方法的流程图;1 is a flowchart of a PPT status notification method in an embodiment;
图2为另一实施例中PPT状态通知方法的流程图;2 is a flowchart of a PPT status notification method in another embodiment;
图3为一实施例中PPT状态通知***的模块图;3 is a block diagram of a PPT status notification system in an embodiment;
图4为另一实施例中PPT状态通知***的模块图。4 is a block diagram of a PPT status notification system in another embodiment.
具体实施方式detailed description
参考图1,一实施例中的PPT状态通知方法,可以应用于可播放PPT的终端设备,该方法包括如下步骤。Referring to FIG. 1, a PPT status notification method in an embodiment may be applied to a terminal device that can play a PPT, and the method includes the following steps.
S110:通过COM技术启动PPT应用程序。S110: Launch the PPT application through the COM technology.
可以通过检测***状态或查询安装软件列表,判断PPT应用程序是否安装,在安装PPT应用程序时,通过COM技术启动PPT应用程序。例如,PPT状态通知方法应用于一设备A,通过检测设备A的***状态或查询设备A的安装软件列表,即可以知道设备A是否安装有PPT应用程序。You can determine whether the PPT application is installed by detecting the system status or querying the installation software list. When installing the PPT application, start the PPT application through the COM technology. For example, the PPT status notification method is applied to a device A. By detecting the system status of the device A or querying the installation software list of the device A, it can be known whether the device A is installed with the PPT application.
COM(Component Object Model组件对象模型)技术,是微软公司为了使计算机软件的生产更加符合人类行为而开发的一种开发技术。COM为各种不同的应用软件之间搭起了桥梁,通过COM技术可以操作微软Office(办公) 组件。COM (Component Object Model) technology is a development technology developed by Microsoft Corporation to make computer software production more compliant with human behavior. COM provides a bridge between various application software, and can operate Microsoft Office through COM technology. Component.
微软公司对外公布一个类:Microsoft.Office.Interop.PowerPoint.Application,开发人员创建这个类的实例就能启动PPT应用程序。通过COM技术启动PPT的时候存在两种情况:Microsoft announced a class: Microsoft.Office.Interop.PowerPoint.Application, developers can create instances of this class to launch PPT applications. There are two situations when starting PPT through COM technology:
一、启动前PPT应用程序未运行,此时通过创建PPT实例时在后台启动PPT进程,并不会出现PPT演示界面。1. The PPT application is not running before startup. At this time, the PPT process is started in the background when the PPT instance is created, and the PPT presentation interface does not appear.
二、启动前PPT应用程序已运行,此时获取当前的PPT实例,通过该PPT实例能够获取当前处于激活状态的PPT文档。2. The PPT application is running before the startup. At this time, the current PPT instance is obtained. The PPT instance that is currently active can be obtained through the PPT instance.
S130:通过COM技术将预设的回调对象注入到PPT应用程序,以使PPT应用程序在PPT状态变化时调用回调对象。S130: Inject a preset callback object into the PPT application through the COM technology, so that the PPT application calls the callback object when the PPT state changes.
对象是数据和方法的封装体。当一对象发生某事件时,它通常需向其它相关对象发送“消息”,请求它们作出一些处理,而处理事件的对象被称为“回调对象”。Objects are a wrapper around data and methods. When an object has an event, it usually sends a "message" to other related objects, asking them to do some processing, and the object that handles the event is called a "callback object."
Office组件中PPT应用程序提供了一系列链接点(相当于一个功能入口),链接点在注册的消息事件发生后,会主动调用对应的回调函数。采用COM技术通过链接点将预设的回调对象注入PPT应用程序,与PPT应用程序建立链接,从而PPT应用程序在PPT状态改变时可以主动调用回调对象,通过回调对象即可被动地准确获取PPT的状态变化。The PPT application in the Office component provides a series of link points (equivalent to a function entry) that will actively call the corresponding callback function after the registered message event occurs. The COM technology is used to inject the preset callback object into the PPT application through the link point, and establish a link with the PPT application, so that the PPT application can actively call the callback object when the PPT state changes, and the PPT can be passively and accurately obtained through the callback object. State changes.
S150:接收回调对象发送的PPT状态改变信息。S150: Receive PPT state change information sent by the callback object.
PPT应用程序主动调用回调对象后,回调对象根据PPT状态变化生成PPT状态改变信息并返回。After the PPT application actively calls the callback object, the callback object generates PPT state change information according to the PPT state change and returns.
其中,PPT状态改变信息包括上翻页、下翻页、动画播放、幻灯片放映和放映退出。可以理解,在其他实施例中,PPT状态改变信息还可以包括其他状态的信息,在此不一一例举。Among them, the PPT status change information includes page up, page down, animation play, slide show, and show exit. It can be understood that in other embodiments, the PPT state change information may also include information of other states, which is not mentioned here.
S170:根据PPT状态改变信息生成通知消息并发送至接收端。S170: Generate a notification message according to the PPT state change information and send it to the receiving end.
通知消息用于告知接收端当前PPT所处的状态,接收端解析通知消息可以得到PPT状态改变信息,以便接收端根据PPT状态改变信息进行相应处理,例如,返回控制信号以控制改变PPT状态,或者控制改变接收端自身的PPT 状态。The notification message is used to inform the receiving end of the current PPT state, and the receiving end parsing the notification message can obtain the PPT state change information, so that the receiving end performs corresponding processing according to the PPT state change information, for example, returns a control signal to control the change of the PPT state, or Control to change the PPT of the receiving end itself status.
上述PPT状态通知方法,通过COM技术启动PPT应用程序,通过COM技术将预设的回调对象注入到PPT应用程序,以使PPT应用程序在PPT状态变化时调用回调对象,然后接收回调对象发送的PPT状态改变信息,根据PPT状态改变信息生成通知消息并发送至接收端。如此,通过采用COM技术与PPT应用程序建立链接并通信,使得PPT状态变化后会主动通知,不需要频繁的请求PPT接口去获取状态,节省了程序资源,也提高了交互效率。同时,可以实时知道PPT状态的改变,不局限于查询PPT状态的时机。The PPT status notification method starts the PPT application through the COM technology, and injects the preset callback object into the PPT application through the COM technology, so that the PPT application calls the callback object when the PPT state changes, and then receives the PPT sent by the callback object. The status change information generates a notification message according to the PPT status change information and transmits it to the receiving end. In this way, by using COM technology to establish a link and communication with the PPT application, the PPT state will be actively notified after the change of the state, and the PPT interface is not frequently requested to obtain the state, which saves program resources and improves the interaction efficiency. At the same time, the change of the PPT state can be known in real time, and is not limited to the timing of querying the PPT state.
在一实施例中,参考图2,步骤S110之前,还包括步骤S100。In an embodiment, referring to FIG. 2, before step S110, step S100 is further included.
S100:建立负责生成PPT状态改变信息的回调对象。S100: Establish a callback object responsible for generating PPT state change information.
建立回调对象具体是添加一段程序,用于被调用时获取PPT状态,并生成PPT状态改变信息。通过预先建立回调对象,方便后续直接将回调对象注入PPT程序。The establishment of the callback object is specifically to add a program for acquiring the PPT state when called, and generating PPT state change information. By pre-establishing a callback object, it is convenient to directly inject the callback object into the PPT program.
在一实施例中,参考图2,步骤S110之后,步骤S130之前,还包括步骤S120。In an embodiment, referring to FIG. 2, after step S110, before step S130, step S120 is further included.
S120:判断是否成功启动PPT应用程序。若是,则执行步骤S130。若否,可以不操作,或者返回步骤S110以便再一次启动PPT应用程序。S120: Determine whether the PPT application is successfully started. If yes, step S130 is performed. If not, it may not operate, or return to step S110 to start the PPT application again.
通过在将回调对象注入PPT应用程序之前,判断是否成功启动PPT应用程序,避免无用操作而浪费程序,提高程序空间利用率。By injecting the callback object into the PPT application, it is judged whether the PPT application is successfully started, the useless operation is avoided, and the program space utilization is improved.
在一实施例中,步骤S170之后还包括步骤(a1)至步骤(a2)。In an embodiment, step S170 further includes steps (a1) to (a2).
步骤(a1):接收接收端返回的反馈消息。Step (a1): receiving a feedback message returned by the receiving end.
反馈消息由接收端发送。反馈消息用于指示接收端是否成功接收到通知消息。The feedback message is sent by the receiving end. The feedback message is used to indicate whether the receiving end successfully receives the notification message.
步骤(a2):根据反馈消息判断接收端是否接收到通知消息。若是,则表示接收端成功接收到通知消息。若否,返回执行步骤S170。Step (a2): determining, according to the feedback message, whether the receiving end receives the notification message. If yes, it indicates that the receiving end successfully received the notification message. If no, the process returns to step S170.
通过步骤(a1)和步骤(a2),在发送通知消息之后获取接收端返回的反馈消息,在根据反馈消息判断接收端没有接收到通知消息时,返回步骤S170以便再次发送通知消息,可确保接收端成功接收到通知消息,提高与接收端 交互的成功率。After the step (a1) and the step (a2), the feedback message returned by the receiving end is obtained after the notification message is sent. When it is determined that the receiving end does not receive the notification message according to the feedback message, the process returns to step S170 to resend the notification message to ensure reception. The terminal successfully received the notification message, and the receiving end is raised and received. The success rate of the interaction.
一具体应用例中,利用上述PPT状态通知方法编程得到一处理程序,处理程序内建立有回调对象,该处理程序应用于设备A,设备A与作为接收端的设备B进行通信以完成PPT协同演示。设备A的PPT应用程序执行翻页操作,会调用回调对象,通过调用该回调对象发送PPT状态改变消息至给处理程序,处理程序根据PPT状态改变消息发送通知消息给备B,设备B根据通知消息获取到PPT状态改变消息后,可以执行相同的状态变化,完成协同演示。In a specific application example, a processing program is programmed by using the PPT status notification method, and a callback object is established in the processing program. The processing program is applied to the device A, and the device A communicates with the device B as the receiving end to complete the PPT collaborative presentation. The PPT application of the device A performs a page turning operation, and invokes a callback object, and sends a PPT state change message to the processing program by calling the callback object, and the processing program sends a notification message to the standby B according to the PPT state change message, and the device B according to the notification message After obtaining the PPT status change message, the same state change can be performed to complete the collaborative presentation.
参考图3,一实施例中的PPT状态通知***,可以应用于可播放PPT的终端设备,该***包括功能链接模块110、对象注入模块130、信息接收模块150和消息发送模块170。Referring to FIG. 3, the PPT status notification system in an embodiment may be applied to a PPT-enabled terminal device, and the system includes a function linking module 110, an object injection module 130, an information receiving module 150, and a message sending module 170.
功能链接模块110用于通过COM技术启动PPT应用程序。The function linking module 110 is used to launch a PPT application through COM technology.
可以通过检测***状态或查询安装软件列表,判断PPT应用程序是否安装,在安装PPT应用程序时,通过COM技术启动PPT应用程序。例如,PPT状态通知方法应用于一设备A,通过检测设备A的***状态或查询设备A的安装软件列表,即可以知道设备A是否安装有PPT应用程序。You can determine whether the PPT application is installed by detecting the system status or querying the installation software list. When installing the PPT application, start the PPT application through the COM technology. For example, the PPT status notification method is applied to a device A. By detecting the system status of the device A or querying the installation software list of the device A, it can be known whether the device A is installed with the PPT application.
对象注入模块130用于通过COM技术将预设的回调对象注入到PPT应用程序,以使PPT应用程序在PPT状态变化时调用回调对象。The object injection module 130 is configured to inject a preset callback object into the PPT application through the COM technology, so that the PPT application calls the callback object when the PPT state changes.
Office组件中PPT应用程序提供了一系列链接点(相当于一个功能入口),链接点在注册的消息事件发生后,会主动调用对应的回调函数。对象注入模块130通过采用COM技术通过链接点将预设的回调对象注入PPT应用程序,与PPT应用程序建立链接,从而PPT应用程序在PPT状态改变时可以主动调用回调对象,通过回调对象即可被动地准确获取PPT的状态变化。The PPT application in the Office component provides a series of link points (equivalent to a function entry) that will actively call the corresponding callback function after the registered message event occurs. The object injection module 130 injects a preset callback object into the PPT application through the link point by using the COM technology, and establishes a link with the PPT application, so that the PPT application can actively call the callback object when the PPT state changes, and can be passively passed through the callback object. Accurately obtain the state change of the PPT.
信息接收模块150用于接收回调对象发送的PPT状态改变信息。The information receiving module 150 is configured to receive PPT state change information sent by the callback object.
PPT应用程序主动调用回调对象后,回调对象根据PPT状态变化生成PPT状态改变信息并返回。After the PPT application actively calls the callback object, the callback object generates PPT state change information according to the PPT state change and returns.
其中,PPT状态改变信息包括上翻页、下翻页、动画播放、幻灯片放映 和放映退出。可以理解,在其他实施例中,PPT状态改变信息还可以包括其他状态的信息,在此不一一例举。Among them, the PPT status change information includes page up, page down, animation, slide show And the show exits. It can be understood that in other embodiments, the PPT state change information may also include information of other states, which is not mentioned here.
消息发送模块170用于根据PPT状态改变信息生成通知消息并发送至接收端。The message sending module 170 is configured to generate a notification message according to the PPT state change information and send the notification message to the receiving end.
通知消息用于告知接收端当前PPT所处的状态,接收端解析通知消息可以得到PPT状态改变信息,以便接收端根据PPT状态改变信息进行相应处理,例如,返回控制信号以控制改变PPT状态,或者控制改变接收端自身的PPT状态。The notification message is used to inform the receiving end of the current PPT state, and the receiving end parsing the notification message can obtain the PPT state change information, so that the receiving end performs corresponding processing according to the PPT state change information, for example, returns a control signal to control the change of the PPT state, or Control changes the PPT state of the receiving end itself.
上述PPT状态通知***,功能链接模块110通过COM技术启动PPT应用程序,对象注入模块130通过COM技术将预设的回调对象注入到PPT应用程序,以使PPT应用程序在PPT状态变化时调用回调对象,然后信息接收模块150接收回调对象发送的PPT状态改变信息,消息发送模块170根据PPT状态改变信息生成通知消息并发送至接收端。如此,通过采用COM技术与PPT应用程序建立链接并通信,使得PPT状态变化后会主动通知,不需要频繁的请求PPT接口去获取状态,节省了程序资源,也提高了交互效率。同时,可以实时知道PPT状态的改变,不局限于查询PPT状态的时机。In the above PPT status notification system, the function linking module 110 starts the PPT application by the COM technology, and the object injection module 130 injects the preset callback object into the PPT application through the COM technology, so that the PPT application calls the callback object when the PPT state changes. Then, the information receiving module 150 receives the PPT state change information sent by the callback object, and the message sending module 170 generates a notification message according to the PPT state change information and sends the notification message to the receiving end. In this way, by using COM technology to establish a link and communication with the PPT application, the PPT state will be actively notified after the change of the state, and the PPT interface is not frequently requested to obtain the state, which saves program resources and improves the interaction efficiency. At the same time, the change of the PPT state can be known in real time, and is not limited to the timing of querying the PPT state.
在一实施例中,参考图4,上述PPT状态通知***还包括对象建立模块100,用于建立负责生成PPT状态改变信息的回调对象。建立回调对象具体是添加一段程序,用于被调用时获取PPT状态,并生成PPT状态改变信息。通过预先建立回调对象,方便后续直接将回调对象注入PPT程序。In an embodiment, referring to FIG. 4, the PPT status notification system further includes an object creation module 100 for establishing a callback object responsible for generating PPT state change information. The establishment of the callback object is specifically to add a program for acquiring the PPT state when called, and generating PPT state change information. By pre-establishing a callback object, it is convenient to directly inject the callback object into the PPT program.
在一实施例中,参考图4,上述PPT状态通知***还包括启动分析模块120,用于判断是否成功启动PPT应用程序,在成功启动PPT应用程序时,控制执行对象注入模块130的功能。具体地,在没有成功启动PPT应用程序时,启动分析模块120可以不操作,也可以控制功能链接模块110再一次启动PPT应用程序。In an embodiment, referring to FIG. 4, the PPT status notification system further includes a startup analysis module 120 for determining whether the PPT application is successfully started, and controlling the function of the object injection module 130 when the PPT application is successfully started. Specifically, when the PPT application is not successfully started, the startup analysis module 120 may not operate, and the function linking module 110 may be controlled to start the PPT application again.
通过在将回调对象注入PPT应用程序之前,判断是否成功启动PPT应用程序,避免无用操作而浪费程序,提高程序空间利用率。By injecting the callback object into the PPT application, it is judged whether the PPT application is successfully started, the useless operation is avoided, and the program space utilization is improved.
在一实施例中,上述PPT状态通知***还包括反馈处理模块(图未示), 用于接收接收端返回的反馈消息,根据反馈消息判断接收端是否接收到通知消息,若否,控制消息发送模块170再次根据PPT状态改变信息生成通知消息并发送至接收端。In an embodiment, the PPT status notification system further includes a feedback processing module (not shown). And receiving the feedback message returned by the receiving end, determining, according to the feedback message, whether the receiving end receives the notification message, and if not, the control message sending module 170 generates the notification message according to the PPT state change information again and sends the notification message to the receiving end.
反馈消息由接收端发送。反馈消息用于指示接收端是否成功接收到通知消息。通过采用反馈处理模块,在发送通知消息之后获取接收端返回的反馈消息,在根据反馈消息判断接收端没有接收到通知消息时,控制消息发送模块170再次根据PPT状态改变信息生成通知消息并发送至接收端,可确保接收端成功接收到通知消息,提高与接收端交互的成功率。The feedback message is sent by the receiving end. The feedback message is used to indicate whether the receiving end successfully receives the notification message. By using the feedback processing module, after receiving the notification message, the feedback message returned by the receiving end is obtained. When it is determined that the receiving end does not receive the notification message according to the feedback message, the control message sending module 170 generates the notification message again according to the PPT state change information and sends the notification message to the The receiving end ensures that the receiving end successfully receives the notification message and improves the success rate of interaction with the receiving end.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。 The above-described embodiments are merely illustrative of several embodiments of the present invention, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be determined by the appended claims.

Claims (10)

  1. 一种PPT状态通知方法,其特征在于,包括如下步骤:A PPT status notification method includes the following steps:
    通过COM技术启动PPT应用程序;Launch the PPT application via COM technology;
    通过COM技术将预设的回调对象注入到所述PPT应用程序,以使所述PPT应用程序在PPT状态变化时调用所述回调对象;Injecting a preset callback object into the PPT application by COM technology, so that the PPT application calls the callback object when the PPT state changes;
    接收所述回调对象发送的PPT状态改变信息;Receiving PPT state change information sent by the callback object;
    根据所述PPT状态改变信息生成通知消息并发送至接收端。A notification message is generated according to the PPT state change information and transmitted to the receiving end.
  2. 根据权利要求1所述的PPT状态通知方法,其特征在于,所述PPT状态改变信息包括上翻页、下翻页、动画播放、幻灯片放映和放映退出。The PPT status notification method according to claim 1, wherein the PPT status change information includes page up, page down, animation play, slide show, and show exit.
  3. 根据权利要求1所述的PPT状态通知方法,其特征在于,所述通过COM技术启动PPT应用程序的步骤之前,还包括步骤:The PPT status notification method according to claim 1, wherein before the step of starting the PPT application by the COM technology, the method further comprises the steps of:
    建立负责生成所述PPT状态改变信息的回调对象。A callback object responsible for generating the PPT state change information is established.
  4. 根据权利要求1所述的PPT状态通知方法,其特征在于,所述通过COM技术启动PPT应用程序的步骤之后,所述通过COM技术将预设的回调对象注入到所述PPT应用程序,以使所述PPT应用程序在PPT状态变化时调用所述回调对象的步骤之前,还包括步骤:The PPT status notification method according to claim 1, wherein after the step of starting the PPT application by the COM technology, the preset callback object is injected into the PPT application by the COM technology, so that The PPT application further includes the steps before the step of calling the callback object when the PPT state changes:
    判断是否成功启动所述PPT应用程序;Determining whether the PPT application is successfully launched;
    若是,则执行所述通过COM技术将预设的回调对象注入到所述PPT应用程序,以使所述PPT应用程序在PPT状态变化时调用所述回调对象的步骤。If so, the step of injecting a preset callback object into the PPT application by the COM technology to cause the PPT application to invoke the callback object when the PPT state changes is performed.
  5. 根据权利要求1所述的PPT状态通知方法,其特征在于,所述根据所述PPT状态改变信息生成通知消息并发送至接收端的步骤之后,还包括步骤:The PPT status notification method according to claim 1, wherein after the step of generating a notification message according to the PPT status change information and transmitting the notification message to the receiving end, the method further comprises the steps of:
    接收所述接收端返回的反馈消息;Receiving a feedback message returned by the receiving end;
    根据所述反馈消息判断所述接收端是否接收到所述通知消息;Determining, according to the feedback message, whether the receiving end receives the notification message;
    若否,返回所述根据所述PPT状态改变信息生成通知消息并发送至接收端的步骤。If not, returning to the step of generating a notification message according to the PPT state change information and transmitting the notification message to the receiving end.
  6. 一种PPT状态通知***,其特征在于,包括:A PPT status notification system, comprising:
    功能链接模块,用于通过COM技术启动PPT应用程序;A function linking module for launching a PPT application via COM technology;
    对象注入模块,用于通过COM技术将预设的回调对象注入到所述PPT 应用程序,以使所述PPT应用程序在PPT状态变化时调用所述回调对象;An object injection module, configured to inject a preset callback object into the PPT by using a COM technology An application to cause the PPT application to invoke the callback object when a PPT state changes;
    信息接收模块,用于接收所述回调对象发送的PPT状态改变信息;An information receiving module, configured to receive PPT state change information sent by the callback object;
    消息发送模块,用于根据所述PPT状态改变信息生成通知消息并发送至接收端。And a message sending module, configured to generate a notification message according to the PPT state change information, and send the notification message to the receiving end.
  7. 根据权利要求6所述的PPT状态通知***,其特征在于,所述PPT状态改变信息包括上翻页、下翻页、动画播放、幻灯片放映和放映退出。The PPT status notification system according to claim 6, wherein said PPT status change information includes page up, page down, animation play, slide show, and show exit.
  8. 根据权利要求6所述的PPT状态通知***,其特征在于,还包括对象建立模块,用于建立负责生成所述PPT状态改变信息的回调对象。The PPT status notification system according to claim 6, further comprising an object creation module for establishing a callback object responsible for generating the PPT state change information.
  9. 根据权利要求6所述的PPT状态通知***,其特征在于,还包括启动分析模块,用于判断是否成功启动所述PPT应用程序,在成功启动所述PPT应用程序时,控制执行所述对象注入模块的功能。The PPT status notification system according to claim 6, further comprising a startup analysis module, configured to determine whether the PPT application is successfully started, and control to perform the object injection when the PPT application is successfully started. The function of the module.
  10. 根据权利要求6所述的PPT状态通知***,其特征在于,还包括反馈处理模块,用于接收所述接收端返回的反馈消息,根据所述反馈消息判断所述接收端是否接收到所述通知消息,若否,控制所述消息发送模块再次根据所述PPT状态改变信息生成通知消息并发送至接收端。 The PPT status notification system according to claim 6, further comprising a feedback processing module, configured to receive a feedback message returned by the receiving end, and determine, according to the feedback message, whether the receiving end receives the notification The message, if not, controls the message sending module to generate a notification message according to the PPT state change information again and send the notification message to the receiving end.
PCT/CN2016/113166 2016-08-19 2016-12-29 Method and system for ppt state notification WO2018032695A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610695752.3 2016-08-19
CN201610695752.3A CN106326019B (en) 2016-08-19 2016-08-19 PPT state notification method and system

Publications (1)

Publication Number Publication Date
WO2018032695A1 true WO2018032695A1 (en) 2018-02-22

Family

ID=57743503

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113166 WO2018032695A1 (en) 2016-08-19 2016-12-29 Method and system for ppt state notification

Country Status (2)

Country Link
CN (1) CN106326019B (en)
WO (1) WO2018032695A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377895A (en) * 2019-07-24 2019-10-25 上海宝尊电子商务有限公司 A kind of exchange method for data product shopping vehicle type export PPT file

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168622B (en) * 2017-05-11 2021-01-01 北京大生在线科技有限公司 Multi-end courseware real-time interaction method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609784A (en) * 2003-10-20 2005-04-27 广东省电信有限公司科学技术研究院 Light weight method for co-broadcasting filmslide file under network environment
US20110025818A1 (en) * 2006-11-07 2011-02-03 Jonathan Gallmeier System and Method for Controlling Presentations and Videoconferences Using Hand Motions
CN102722336A (en) * 2012-06-12 2012-10-10 桂林电子科技大学 Office wireless speaking system and synchronous tracking method for synchronous tracking of editing and demonstration operation
CN104064201A (en) * 2014-06-13 2014-09-24 广州视睿电子科技有限公司 Data synchronization method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6263492B1 (en) * 1997-06-06 2001-07-17 Microsoft Corporation Run time object layout model with object type that differs from the derived object type in the class structure at design time and the ability to store the optimized run time object layout model
CN101291335B (en) * 2008-06-13 2011-05-11 中兴通讯股份有限公司 Method and apparatus for acquiring dynamic data of server based on browser

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609784A (en) * 2003-10-20 2005-04-27 广东省电信有限公司科学技术研究院 Light weight method for co-broadcasting filmslide file under network environment
US20110025818A1 (en) * 2006-11-07 2011-02-03 Jonathan Gallmeier System and Method for Controlling Presentations and Videoconferences Using Hand Motions
CN102722336A (en) * 2012-06-12 2012-10-10 桂林电子科技大学 Office wireless speaking system and synchronous tracking method for synchronous tracking of editing and demonstration operation
CN104064201A (en) * 2014-06-13 2014-09-24 广州视睿电子科技有限公司 Data synchronization method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377895A (en) * 2019-07-24 2019-10-25 上海宝尊电子商务有限公司 A kind of exchange method for data product shopping vehicle type export PPT file

Also Published As

Publication number Publication date
CN106326019B (en) 2019-09-03
CN106326019A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN110651241B (en) Connecting multiple mobile devices to a smart home assistant account
JP6417041B2 (en) Method, apparatus, and system for migrating application data between terminals
KR102148046B1 (en) Calling an unready terminal
JP2019530033A5 (en)
KR102363559B1 (en) Information transmission method and device
KR102121358B1 (en) Data transmission method and device
US20100034471A1 (en) Method and apparatus that enables remote operation of a pleasuring device through a communications network
CN111522604A (en) Application data processing method and device and computer readable storage medium
CN110113623B (en) Audio and video slice transmission platform based on SIP protocol
WO2014086222A1 (en) Method and apparatus for setting video call parameters and sending capability parameters
WO2016150191A1 (en) Data sharing method and device
WO2018032695A1 (en) Method and system for ppt state notification
CN112767936B (en) Voice dialogue method and device, storage medium and electronic equipment
CN112328492B (en) Interaction control method and device between anchor and electronic equipment
WO2021102691A1 (en) Resource subscription method and apparatus, computer device, and storage medium
CN106101836A (en) The player method of intelligent television and device
CN106302093B (en) Communication method, system and server
CN103856644A (en) Voice over internet protocol prompting method and system
CN109189629B (en) Method for realizing terminal remote control based on USB device and storage medium
JP5100574B2 (en) Terminal device, program download method, program, recording medium, and program providing system
KR101387193B1 (en) System for controlling execution of application in mobile communication apparatus and controlling method thereof
WO2016101281A1 (en) Application interaction method, device and terminal
US11721336B1 (en) Messaging system for a virtual assistant
CN114281373A (en) Device state updating method and device, computer device and storage medium
CN107277132B (en) DLNA (digital Living network alliance) pushing processing method, multimedia receiving end and storage medium

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: 16913447

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: 16913447

Country of ref document: EP

Kind code of ref document: A1