如何将代码注入Power Point Viewer. [英] how to inject code into power point viewer.

查看:128
本文介绍了如何将代码注入Power Point Viewer.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被分配了一项向Power Point Viewer添加新功能的任务,该功能应在幻灯片放映(aka演示)过程中发挥以下作用:
1)在单击"t"时,转到下一张幻灯片.
2)在单击"u"时,转到上一张幻灯片.
注意:我们可以使用其他键代替t,u.

请帮我怎么做.
在此先谢谢您.

I was assigned a task of adding new functionality to power point viewer that should function as follows during the slide show(aka presentation):
1) On clicking "t" Goto next slide.
2) On clicking "u" Goto previous slide.
note:we can use other keys instead of t,u.

Please help me how to do it.
Thanks in advance.

推荐答案

我相信您可以尝试使用 ^ ].安装一个用于该过程的键盘钩,注意对应于"u"和"t"的击键或您选择的键的种类,然后尝试将键代码更改为通常会移至下一个键的任何键页和上一页(无法从炉底上分辨出来,但它们可能存在).所以基本上用户是否会按"t",您的钩子会将其转换为-let的"-space",因此当查看器pp处理消息时,它看到""space"被击中并移至下一个页面.
这里可能棘手的是,当用户不在观看幻灯片放映时,例如当用户观看幻灯片放映时,这也会修改键.弹出打开文件"对话框,并尝试输入文件名(如果pp查看器具有这种功能,也无法通过壁炉告知).

祝你好运.
I believe you could try doing this with KeyBoard Hooks[^]. Install a keyboard hook for that process, watch for the key hits witch correspond to ''u'' and ''t'' or whatever you choose the keys to be and try changing the key codes to whatever keys would normally move to the next page and the previous page (can''t tell that by hearth but they probably exist). So basically if the user would press e.g. ''t'', your hook would convert it to -let''s say- ''space'', so when the viewer pp processes the message it "sees" that ''space'' was hit and moves to the next page.
What might be tricky here is that this will also modify the key when the user isn''t looking at a slideshow but e.g. has the ''open file'' dialog up and is trying to type in a file name (if the pp viewer has such a functionality, can''t tell that by hearth either).

Good luck.


这篇关于如何将代码注入Power Point Viewer.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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