CN112148402A - PPT control method based on small program - Google Patents

PPT control method based on small program Download PDF

Info

Publication number
CN112148402A
CN112148402A CN201910954600.4A CN201910954600A CN112148402A CN 112148402 A CN112148402 A CN 112148402A CN 201910954600 A CN201910954600 A CN 201910954600A CN 112148402 A CN112148402 A CN 112148402A
Authority
CN
China
Prior art keywords
ppt
page
applet
server
small program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910954600.4A
Other languages
Chinese (zh)
Inventor
李立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Liliu Technology Co ltd
Original Assignee
Jiangsu Liliu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Liliu Technology Co ltd filed Critical Jiangsu Liliu Technology Co ltd
Priority to CN201910954600.4A priority Critical patent/CN112148402A/en
Publication of CN112148402A publication Critical patent/CN112148402A/en
Pending legal-status Critical Current

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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/546Message passing systems or structures, e.g. queues
    • 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/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server

Abstract

A PPT control method based on small programs comprises the steps that equipment used for playing PPT is used as a server side, basic communication services based on NET are provided, service addresses and ports provided by the server side are made into two-dimensional codes through public software, so that the small programs can be conveniently scanned and obtained, small letter programs with scanning functions are developed, basic instructions are developed on the small program side and sent to the server side according to PPT demonstration application requirements, the NET framework is used for accessing Office, and the instructions of the small programs are converted into control over PPT through C # development language. And the small program end receives the information sent by the server end and conducts state control. People can play, last page, next page, close and other basic operations of the PPT only by a mobile phone without a laser pen, and the method becomes a replacement scheme for controlling the PPT by a laser remote control pen.

Description

PPT control method based on small program
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of electronic information, in particular to a PPT control method based on an applet.
[ background of the invention ]
PPT is demonstration manuscript software launched by Microsoft corporation, is one of the components in Microsoft Office system, is suitable for the fields of work reporting, enterprise publicity, product recommendation, wedding celebration, project bidding, management consultation, education training and the like, and has the functions of album making, manuscript merging, mother board application, picture movement, animation control and the like. School education or modern enterprises often play PPT during a campaign or an internal meeting. In general, for the convenience of demonstration, a speaker typically turns pages while explaining, which often requires an external laser remote control pen. However, if the remote control pen is lost or damaged, the user can only play the remote control pen by manually operating the computer, which affects the working efficiency and quality of the user.
It can be seen that providing an alternative to the manipulation of PPT by a laser stylus is a problem that needs to be addressed in the art.
[ summary of the invention ]
In order to solve the problems, the PPT control method based on the small program is based on a small program architecture of a WeChat open platform and combines with the technology of controlling the PPT by a NET development framework, so that people can play, previous page, next page, close and other basic operations of the PPT only by a mobile phone without a laser pen, and the PPT control method based on the small program becomes a replacement scheme for controlling the PPT by the laser remote control pen.
In order to solve the above problems, the PPT control method based on the applet of the present invention includes the following steps:
s1: the device used for playing PPT is used as a service end to provide basic communication service based on the NET.
S2: and the service address and the port provided by the server are made into a two-dimensional code by using public software, so that the small program can be conveniently scanned and obtained.
S3 developing a wechat applet having a scan function.
S4: and developing a basic instruction at the applet end and sending the basic instruction to the server end according to the PPT demonstration application requirement. The instruction comprises playing, closing, a first page, a last page, a next page and a specified page.
S5: and after receiving the applet command, the server accesses Office by using the NET framework, and converts the applet command into the control of PPT by using the C # development language.
S6: and the small program end receives the information sent by the server end and conducts state control.
Further, in the S1, the communication service technology between the client and the server adopts WebSocket, which is a popular duplex communication protocol, as a communication protocol, and its port is set by itself, and the default is 3000.
Further, the specific process of S1 is as follows: firstly, a Visual Studio is used for establishing a project, a Fleck third-party development kit is installed, Fleck is introduced, and WebSocket service is established. And then establishing a connection event (OnOpen) in the Start method of the server to monitor whether the connection of the applet end is normal, establishing a message receiving event (OnMessage) in the Start method of the server to collect messages sent by the applet end, and establishing a closing event (OnClose) in the Start method of the server to perform log processing when the connection is lost.
Further, the specific process of S3 is as follows: the invention builds the small program application framework by using a developer tool provided by the WeChat official, the small program calls the WeChat API (wx.scancode), scans and acquires the service address provided by the service terminal, and the small program calls the WeChat API (wx.scancode), scans and acquires the service address provided by the service terminal.
Further, the specific process of S4 is as follows: the small program establishes connection with the service end through the service addresses acquired in wx.connectSocket and S3, seven keys of opening, closing, first page, last page, previous page, next page and appointed page are added in the small program respectively, the keys call wx.sendSocketMessage to send related instructions, and when the appointed page message is sent, the appointed page number selected by the small program needs to be brought.
Further, the specific process of S5 is as follows: adding related class library reference at a server, recording Microsoft office Interop PowerPoint application as pptSever, using the pptSever as a technical basis for operating PPT, and sending the total number of the read pages to an applet end by calling a send method of the server. In addition, a method for playing the PPT method, closing the PPT method, and locating the designated PPT page is written respectively by using the C # development language, then a method for writing the first page, the last page, the previous page, and the next page is written by using the C # development language, and according to the pageIndex recorded in S505, the locatept method is called respectively, and a new designated page sequence is introduced. And respectively calling corresponding methods from S503 to S506 according to an instruction sent by the applet received in a message receiving event (OnMessage) of the server, calling a send method of the server after the sending in the S507 is successful, and recording the current page and the success information to the applet terminal.
Further, the specific process of S6 is as follows: the applet monitors the message sent by the server by using wx.
The technology that the network development framework controls the PPT is combined, so that people can play, previous page, next page, close and other basic operations of the PPT only by depending on a mobile phone without a laser pen, and the PPT control method based on the applet becomes a replacement scheme for controlling the PPT by the laser remote control pen.
[ description of the drawings ]
Figure 1 is a flow chart of an applet-based PPT manipulation method of the present invention.
Fig. 2 is a control page diagram of the applet-based PPT control method of the present invention.
[ detailed description ] embodiments
The directional terms of the present invention, such as "up", "down", "front", "back", "left", "right", "inner", "outer", "side", etc., are only directions in the drawings, and are only used to explain and illustrate the present invention, but not to limit the scope of the present invention.
Referring to fig. 1 and 2, the applet-based PPT steering method comprises the steps of:
s1: the device used for playing PPT is used as a service end to provide basic communication service based on the NET. The communication service technology of the client and the server is various, the invention takes WebSocket which is a popular duplex communication protocol as a communication protocol, and the port of the WebSocket is set by self and is default to 3000.
S101: and (3) establishing a project by using Visual Studio, and installing a Fleck third-party development kit, wherein the development kit provides rich common APIs for WebSocket communication.
S102: fleck is introduced, and a WebSocket service is created and named as server.
S103: and establishing a connection event (OnOpen) in a Start method of the server to monitor whether the applet end is normally connected.
S104, establishing a message receiving event (OnMessage) in the Start method of the server so as to collect messages sent by the applet.
S105, a closing event (OnClose) is established in the Start method of the server so as to perform log processing when the connection is lost.
And S2, making the service address and the port provided by the server into a two-dimensional code by using public software so as to facilitate the scanning and acquisition of the small program.
S3: a wechat applet with a scanning function is developed.
S301: the invention applet application architecture is built by using developer tools provided by WeChat authorities.
S302: and calling a WeChat API (wx. scanner code) by the applet, and scanning to obtain the service address provided by the server.
S303: and recording the service address acquired by scanning in a global variable of the applet.
S4: and developing a basic instruction at the applet end and sending the basic instruction to the server end according to the PPT demonstration application requirement. The instruction comprises playing, closing, a first page, a last page, a next page and a specified page.
S401: the applet establishes connection with the server through the wx.
S402: seven keys of opening, closing, first page, last page, next page and appointed page are added in the small program.
S403: the key calls wx. sendsocketmessage to send a relevant instruction, if playing: v-play, off: v-close, first page: v-first, end page: v-last, previous page: v-pre, next page: v-last, designated page: v-customage, wherein when the specified page message is sent, the selected tab parameter needs to be brought in.
S5: and after receiving the applet command, the server accesses Office by using the NET framework, and converts the applet command into the control of PPT by using the C # development language.
S501: office related class library reference is added at the server.
S502: microsoft, office, inter, powerpoint, application, recorded as pptsiver, serves as the technical basis for operating PPT. And then, the total number of the read pages is sent to the applet end by calling the send method of the server.
S503: and writing a PPT playing method by using a C # development language.
S504: and writing a PPT closing method by using a C # development language.
S505, writing a method (locatePPT) for locating a specified PPT page by using the C # development language, and recording the page sequence (pageIndex) of the current playing.
S506: and compiling methods of a first page, a last page, a previous page and a next page by using the C # development language, calling a locatePPT method respectively according to the pageIndex recorded in the S505, and transmitting a new specified page sequence.
And S507, respectively calling corresponding methods from the S503 to the S506 according to the instruction sent by the applet received in the message receiving event (OnMessage) of the server.
S508: and S507, calling the send method of the server after the sending is successful, and recording the current page and success information to the small program terminal.
S6: and the small program end receives the information sent by the server end and conducts state control.
S601: and the applet monitors the message sent by the server by using wx.
S602: and displaying the total number of the read pages by utilizing a selection control of the applet according to the received information of the server, and enabling the user to select the total number of the read pages.
S603: and controlling the state of the keys of the applet terminal according to the received message of the server terminal. Such as: after the last page has been played, the next page will be disabled, etc.
The PPT control method based on the small program is based on a small program architecture of a WeChat open platform and is combined with the technology of controlling the PPT by a NET development framework, so that people can play, previous page, next page, close and other basic operations of the PPT only by a mobile phone without a laser pen, and the PPT control method becomes a replacement scheme for controlling the PPT by the laser remote control pen.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (7)

1. An applet-based PPT manipulation method, comprising:
s1: the device used for playing PPT is used as a service end to provide basic communication service based on the NET.
S2: and the service address and the port provided by the server are made into a two-dimensional code by using public software, so that the small program can be conveniently scanned and obtained.
S3 developing a wechat applet having a scan function.
S4: and developing a basic instruction at the applet end and sending the basic instruction to the server end according to the PPT demonstration application requirement. The instruction comprises playing, closing, a first page, a last page, a next page and a specified page.
S5: and after receiving the applet command, the server accesses Office by using the NET framework, and converts the applet command into the control of PPT by using the C # development language.
S6: and the small program end receives the information sent by the server end and conducts state control.
2. The applet-based PPT control method according to claim 1, wherein the client-server communication service technology in S1 adopts WebSocket, a popular duplex communication protocol, as a communication protocol, and its port is set by itself and is default to 3000.
3. The applet-based PPT manipulation method according to claim 1, wherein the specific process of S1 is as follows: firstly, establishing a project by Visual Studio, installing a Fleck third-party development kit, introducing Fleck, creating a WebSocket service, and naming the WebSocket service as server. And then establishing a connection event (OnOpen) in the Start method of the server to monitor whether the connection of the applet end is normal, establishing a message receiving event (OnMessage) in the Start method of the server to collect messages sent by the applet end, and establishing a closing event (OnClose) in the Start method of the server to perform log processing when the connection is lost.
4. The applet-based PPT manipulation method according to claim 1, wherein the specific process of S3 is as follows: the invention builds the small program application framework by using a developer tool provided by the WeChat official, the small program calls the WeChat API (wx.scancode), scans and acquires the service address provided by the service terminal, and the small program calls the WeChat API (wx.scancode), scans and acquires the service address provided by the service terminal.
5. The applet-based PPT manipulation method according to claim 1, wherein the specific process of S4 is as follows: the small program establishes connection with the service end through the service addresses acquired in wx.connectSocket and S3, seven keys of opening, closing, first page, last page, previous page, next page and appointed page are added in the small program respectively, the keys call wx.sendSocketMessage to send related instructions, and when the appointed page message is sent, the appointed page number selected by the small program needs to be brought.
6. The applet-based PPT manipulation method according to claim 1, wherein the specific process of S5 is as follows: adding Microsoft office related class library reference at a server, recording Microsoft office Interop PowerPoint application as pptSever, serving as a technical basis for operating PPT, and sending the total number of read pages to an applet end by calling a send method of the server. In addition, a method for playing the PPT method, closing the PPT method, and locating the designated PPT page is written respectively by using the C # development language, then a method for writing the first page, the last page, the previous page, and the next page is written by using the C # development language, and according to the pageIndex recorded in S505, the locatept method is called respectively, and a new designated page sequence is introduced. And respectively calling corresponding methods from S503 to S506 according to an instruction sent by the applet received in a message receiving event (OnMessage) of the server, calling a send method of the server after the sending in the S507 is successful, and recording the current page and the success information to the applet terminal.
7. The applet-based PPT manipulation method according to claim 1, wherein the specific process of S6 is as follows: the applet monitors the message sent by the server by using wx.
CN201910954600.4A 2019-10-09 2019-10-09 PPT control method based on small program Pending CN112148402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910954600.4A CN112148402A (en) 2019-10-09 2019-10-09 PPT control method based on small program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910954600.4A CN112148402A (en) 2019-10-09 2019-10-09 PPT control method based on small program

Publications (1)

Publication Number Publication Date
CN112148402A true CN112148402A (en) 2020-12-29

Family

ID=73891775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910954600.4A Pending CN112148402A (en) 2019-10-09 2019-10-09 PPT control method based on small program

Country Status (1)

Country Link
CN (1) CN112148402A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819392A (en) * 2012-07-25 2012-12-12 广州视睿电子科技有限公司 Method and system for controlling PPT (Power Point)
CN106055719A (en) * 2016-07-18 2016-10-26 谢新莉 PPT-based slide playing system
CN106096683A (en) * 2016-06-22 2016-11-09 昆山乌班图信息技术有限公司 A kind of PowerPoint (PPT) control system
CN109981761A (en) * 2019-03-14 2019-07-05 南京乐美达电子科技有限公司 Method based on small routine manipulation large screen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819392A (en) * 2012-07-25 2012-12-12 广州视睿电子科技有限公司 Method and system for controlling PPT (Power Point)
CN106096683A (en) * 2016-06-22 2016-11-09 昆山乌班图信息技术有限公司 A kind of PowerPoint (PPT) control system
CN106055719A (en) * 2016-07-18 2016-10-26 谢新莉 PPT-based slide playing system
CN109981761A (en) * 2019-03-14 2019-07-05 南京乐美达电子科技有限公司 Method based on small routine manipulation large screen

Similar Documents

Publication Publication Date Title
US7185116B2 (en) Template-based customization of a user interface for a messaging application program
CN110597774B (en) File sharing method, system, device, computing equipment and terminal equipment
US10431187B2 (en) Terminal apparatus, screen recording method, program, and information processing system
KR100797233B1 (en) Card type network interface, network conference terminal device and network conference system
US20070078953A1 (en) User interface widget unit sharing for application user interface distribution
US20050114528A1 (en) System, server, method and program for providing communication service
US20020138653A1 (en) Workstation system, computer, data transfer method, data editing method, computer program generation method, computer program and storage medium
EP3024223B1 (en) Videoconference terminal, secondary-stream data accessing method, and computer storage medium
CN104023272A (en) Video screen editing method and device
JP6711235B2 (en) Information processing system, information processing device, program, and questionnaire operation method
JP2009187094A (en) Conference system and program
EP1190537A1 (en) A thin multimedia communication device and method
CN112751681B (en) Image processing method, device, equipment and computer readable storage medium
JP2019121812A (en) Information process system, control method of the same, and program
JP2012084948A (en) Portable terminal device, information selection support program, and information selection support method
CN112148402A (en) PPT control method based on small program
KR100784263B1 (en) Method and apparatus for message sending using clip-board
EP1602251A2 (en) System and method for facilitating ip telephony applications
CN211429424U (en) Paperless conference system
JP2004355059A (en) Operation display method
JP7367909B2 (en) First terminal, server device, second terminal, information processing method, and program
JP2002139984A (en) Education system and data processing method for education system
JP5566793B2 (en) Education system, log management server, e-learning server, learning content output method, and program
JP3987172B2 (en) Interactive communication terminal device
JP3047991B2 (en) Real-time system operation specification description device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination