如何将密钥发送到对话框? [英] How to send keys to dialog box?

查看:94
本文介绍了如何将密钥发送到对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


推荐答案

您好Oli1210,

Hi Oli1210,

>>我希望我的应用程序将密钥发送到显示的确认对话框。第一个ENTER键后会出现确认对话框。

>>I want my App to send key to the confirmation dialog box which gets displayed. The confirmation  dialog box appears after the first ENTER key.

您想要  ;在对话框出现之前将密钥发送到对话框。如果尚未显示对话框,则您将密钥发送到哪里?

You wants to send keys to the dialogbox before the dialogbox appears. If the dialogbox not yet appears, where are you sent key to?

因此,您应该在出现 对话框后将密钥发送到对话框。但是,如果您的确认对话框是模态的,我担心它会失败。因为在弹出对话框后该程序的其他窗口不可用,
原始程序暂停,直到模态窗口在返回原始程序之前关闭。因此,您也无法将密钥发送到模态对话框。

So you should send keys to the dialogbox after the dialogbox appears. But if your confirmation dialog box is modal, I'm afraid it sill failed. Because the other window of the program is not available after the dialog box popup , the original program be suspended until the modal window is closed before returning to the original program. So you can't also send key to the modal dialogbox.

因此, 您应该在出现 对话框后将密钥发送到无模式对话框。

Therefore,  you should send keys to the modeless dialogbox after the dialogbox appears.

希望这会有所帮助。

最好的问候,

Bob


这篇关于如何将密钥发送到对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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