用飞跃运动编写自定义code用PowerPoint? [英] Writing custom code for PowerPoint using leap motion?

查看:100
本文介绍了用飞跃运动编写自定义code用PowerPoint?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图做一个基于手势的PowerPoint幻灯片。 JavaScript的会,因为我想在那个特定的PowerPoint文件(.PPT)打开窗户幻灯片演示的工作肯定不会在这里工作。

I am trying to make a gesture based PowerPoint slideshow. JavaScript would certainly not work here as I want my slideshow to work when that particular PowerPoint file (.ppt) is opened for windows.

我GOOGLE了,贴在大跃进运动论坛上的问题,但徒劳无功。我的主要关注的是:

I googled, posted a question on the Leap Motion forum, but in vain. My primary concerns are:


  1. 我不确定在这里用什么。是否有一些软件开发工具包用于这一目的?在简单的话,我怎么写一些定制code为我们系统上的PowerPoint文件?
    <一href=\"https://developer.leapmotion.com/documentation/Languages/C++/Guides/Leap_C++_Development.html#id8\">Leap移动应用程序可以使用C#,C ++,Python和JavaScript中,爪哇,Objective-C的

整合code对于 大跃进运动设备 上述$ C $角

Integrating the code for Leap Motion device with the above code.

如果您有任何两点回复这是确定的。我很抱歉,我不能发布任何code,因为我绝对新鲜,为系统本身的PowerPoint为基础的方案。

It's OK if you reply with any of the two points. I am sorry I couldn't post any code as I am absolutely new to PowerPoint-based programming for the system itself.

我愿意接受任何语言(C,C#,C ++,Java和Objective-C的),让我完成我的任务。一些资料/ code Sugesstions肯定会有所帮助。

I am open to any language (C, C#, C++, Java, and Objective-C) that lets me accomplish my task. Sugesstions with some information/code would definitely help.

我是一个 PHP 并的 JavaScript的开发。我希望我很清楚,而不是误解。

I am a PHP and JavaScript developer. I hope I am clear and not misunderstood.

更新:

我发现的 Leap Motion控制器加载项的Microsoft Office二千零十三分之二千零十(C#)

I found LEAP Motion Controller Add-ins for Microsoft Office 2010/2013 (C#).

推荐答案

借助 Leap Motion控制器外接程序微软的Office 你发现很可能是与PowerPoint中的控制器整合的最佳方式。

The LEAP Motion Controller Add-ins for Microsoft Office which you found is likely to be the best way to integrate the controller with Powerpoint.

要开始使用它,你需要的Visual Studio(好像你就需要2012)。微软在Visual Studio中了解 Office开发的概述页面。

To get started with it, you'll need Visual Studio (seems like you'll need 2012). Microsoft has an overview page for Office Development in Visual Studio.

请按照在配置电脑开发Office解决方案页面。

下载大跃进SDK的Windows,并解压缩,然后在Visual Studio项目GestureLib.NET4.0,添加一个参考LeapCSharp.NET4.0 DLL

Download the Leap SDK for Windows, and unzip it, then in Visual Studio in the project GestureLib.NET4.0, add a reference to the LeapCSharp.NET4.0 dll

请微不足道的修复程序GestureListener.cs(在第44行用的IsEmpty)。

Make a trivial fix to GestureListener.cs (use IsEmpty at line 44).

之后,你应该能够运行Leap Motion控制器外接从Visual Studio中。当你这样做,它会启动PowerPoint。

After that you ought to be able to run the LEAP Motion Controller Add-in from within Visual Studio. It'll start Powerpoint when you do that.

VSTO是您正在使用在这里,技术的名称,以便更多的,谷歌的VSTO外接在PowerPoint'。

"VSTO" is the name of the technology you are using here, so for more, Google 'VSTO add-in powerpoint'.

从<一个href=\"http://leapoffice.$c$cplex.com/SourceControl/latest#LeapOfficeController/LEAPPowerPointController/Ribbon.xml\"相对=nofollow>来源$ C ​​$ C为外接,它看起来像你应该看到在PowerPoint功能区一个按钮,用于启动和停止飞跃。

From the source code for the Add-In, it looks like you should see a single button on the ribbon in Powerpoint, for starting and stopping Leap.

综观ThisAddIn.cs,一旦开始(由pressing功能区上的按钮),控制器应该回应左右的手势,通过移动到下一个/ previous分别幻灯片: -

Looking at ThisAddIn.cs, once started (by pressing the button on the ribbon), the controller ought to respond to left and right gestures, by moving to next/previous slides respectively:-

                if (direction.ToString() == "Right")
            {
                Application.ActivePresentation.SlideShowWindow.View.Next();
                LastGesture = DateTime.Now;
            }
            if (direction.ToString() == "Left")
            {
                Application.ActivePresentation.SlideShowWindow.View.Previous();
                LastGesture = DateTime.Now;
            }

GestureLib支持更多的手势,你可以让做一些事情了如下同样的模式。

GestureLib supports additional gestures, which you could make do something following that same pattern.

这篇关于用飞跃运动编写自定义code用PowerPoint?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆