简体   繁体   English

SendKeys“%{A}”是什么意思?

[英]What does SendKeys “%{A}” mean?

I'm maintaining an old MS Access application, and I came across this use of SendKeys. 我正在维护一个旧的MS Access应用程序,我遇到了SendKeys的这种用法。

 SendKeys "%{A}"

I've seen SendKeys to create key presses for "{ESC}" , and various letters of the alphabet in the program. 我见过SendKeys为"{ESC}"创建按键,以及程序中的各种字母。 Is this "%{A}" doing some character conversion or hex number representation? 这是"%{A}"进行一些字符转换还是十六进制数表示? Unfortunately, the behaviour in the application when it runs is not making the function clear. 不幸的是,应用程序运行时的行为并不能使功能清晰。

It seems to mean "Alt-A". 它似乎意味着“Alt-A”。

See How to send "{" or "}" signs through send keys method in vb 2010 for possible duplicate. 有关可能的重复,请参阅如何通过vb 2010中的发送密钥方法发送“{”或“}”符号

Also see Microsoft article for more information. 另请参阅Microsoft文章以获取更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM