如何以编程方式调用窗口+按钮 [英] how to cal window+button programmatically

查看:66
本文介绍了如何以编程方式调用窗口+按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用sendkeys.send()方法来调用窗口按钮。我尝试过sendkeys.send(" {WIN}")和sendkeys.send(" {Lwin}")。但是没有工作..

你能帮我吗

I want to cal window button using sendkeys.send() method. I have tried with sendkeys.send("{WIN}") and sendkeys.send("{Lwin}"). but not working..
Can you help me

推荐答案

" How to cal" ??

你是什么意思cal ?


您是否尝试以编程方式按Windows键?
我没有看到,因为Windows密钥是MSDN上SendKeys方法的一部分。

您是否正在尝试为锁定工作站发送Win + L?
"How to cal" ??
What do you mean by "cal" ?

Are you trying to press the Windows key programmatically?
I don''t see as the Windows key is part of the SendKeys methods on the MSDN.

Are you trying to send Win+L for lockworkstation?
展开 | 选择 | Wrap | 行号


我创建了客户端 - 服务器应用程序。在那里,如果我按下服务器端的Windows键,应该在客户端以编程方式触发。我想知道如何使用send-key方法在客户端调用该按键。
I created client-server application. In that, if I press windows key in server side that should be triggered programmatically at the client end. I want to know how to invoke that key press at client end using send-key methods.


你无法处理windows密钥。
You can''t handle windows key.


这篇关于如何以编程方式调用窗口+按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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