使用 COM 在 PowerPoint 中虚拟激光笔位置
PowerPoint 中有一个功能,允许演示者在幻灯片放映时通过按“CTRL”+“鼠标左键”来假装激光笔指向屏幕(我使用的是 PowerPoint 2010,但我认为此功能可以在旧版本中发现)。我想做的是在显示(实时)激光时读取激光的位置。我为 PowerPoint 创建了一个 C# 加载项,每次启动 PowerPoint 时都会加载该加载项,并且我使用 COM 访问当前显示的演示文稿。问题是我在 PowerPoint COM 模型中找不到任何对象来获取激光位置和/或挂钩事件来执行此操作。所以我的问题是:
- 是否可以使用 PowerPoint COM 来实现这一目标?
- 如果可以的话,怎样做?如果没有,我可以通过其他方式实现这一目标吗?
谢谢你!
There is a feature in PowerPoint that allow the presentator to fake a laser pointer to the screen by pressing "CTRL" + "Mouse Left Button" while being in a slide show (I'm using PowerPoint 2010, but I think this feature can be found in older versions). What I'm trying to do is to read position of laser while it's being shown (LIVE). I've created a C# add-in for PowerPoint which load every time I start PowerPoint and I'm using COM to access to the current presentation being shown. The problem I can't find any object in the PowerPoint COM model to get the laser positions and/or hook to an event to do so. So my questions are:
- Is it possible to achieve this using PowerPoint COM ?
- If it's possible, how to? If not, can I achieve this in another way ?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里的项目可能会有所帮助:
http://officeone.mvps.org/vba/mousemove_shape.html
它描述了如何在幻灯片放映期间选择和移动形状;为此,它会计算出当前指针位置。我希望这与激光笔的位置相同,因此相同的方法可能对您有用。
The project here might help:
http://officeone.mvps.org/vba/mousemove_shape.html
It describes how to select and move shapes during a slide show; to do that, it works out the current pointer position. That'd be the same as the laser pointer position, I expect, so the same method might work for you.