如何识别&使用C#删除MS Office应用程序中的特定快捷方式 [英] How to idntify & delete specific shortcuts in MS Office apps using C#

查看:90
本文介绍了如何识别&使用C#删除MS Office应用程序中的特定快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

我有许多要在Microsoft Office应用程序(Word,Excel,PowerPoint)中使用的快捷方式.我的某些快捷方式(它们从一种语言到另一种语言是不同的)已经在一个或所有Office应用程序中使用.

I have a number of shortcuts that I would like to use in Microsoft Office applications (Word, Excel, PowerPoint). Some of my shortcuts (and they are different from one language to another language) are already taken in one or all of the office applications.

现在,我想拥有一个软件,将我的快捷方式与MS Office应用程序(Word,Excel,PowerPoint)中当前使用的快捷方式进行比较,并删除那些干扰我的快捷方式.

Now I would like to have a software, that compares my shortcuts with the ones currently active in MS Office apps (Word, Excel, PowerPoint) and delete the ones in the MS Office apps that interfere with mine.

示例:在德语键盘上,我使用快捷方式写了字符"[" Ctrl + Alt + 8

Example: On my German keyboard I write the character '[' by using the shortcut Ctrl+Alt+8

使用键码是:

P17,P18,P56,R56,R18,R17

但是此快捷方式已在MS Word中用于功能'OfficeFeedbackFrown'.

But this shortcut is already taken in MS Word for the function 'OfficeFeedbackFrown'.

Now I want to delete the shortcut Ctrl+Alt+8 that is assigned to 'OfficeFeedbackFrown' in order to be able to type the character '['. And all of this should be done by C# code.

Now I want to delete the shortcut Ctrl+Alt+8 that is assigned to 'OfficeFeedbackFrown' in order to be able to type the character '['. And all of this should be done by C# code.

如果您能提供一个示例代码片段,那将是很棒的,然后 adopt and customize to my own needs.

It would be awesome if you could provide a sample code snippet that I would then adopt and customize to my own needs.

非常感谢 for your help.



推荐答案

您好,MoD66,

Hi MoD66,

谢谢您在这里发布.

据我所知,办公室无法做到这一点.如果可以识别快捷方式,则该快捷方式将完成您想要的事情.如果 shortcut  无法识别,什么也不会发生.

As I know, Office could not do that. If the shortcut could be identified, the shortcut will do the things you want. If the shortcut could not be identified, nothing will happen.

请点击以下链接以供参考.

Please take the following link for reference.

https ://support.office.com/zh-CN/article/Keyboard-shortcuts-for-Microsoft-Word-on-Windows-95ef89dd-7142-4b50-afb2-f762f663ceb2

https://support.office.com/zh-cn/article/Excel-keyboard-shortcuts-and-function-keys-for-Windows-1798d9d5-842a-42b8-9c99-9b7213f0040f 最好的问候,

温迪


这篇关于如何识别&使用C#删除MS Office应用程序中的特定快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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