检测在应用程序启动shift键在C#/ Windows窗体 [英] Detect shift key on application startup in C#/Windows Forms

查看:177
本文介绍了检测在应用程序启动shift键在C#/ Windows窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法得到一个标准的Windows窗体应用程序来检测,如果在<大骨节病>移键被按下的应用程序启动 - 无需使用Windows钩子

Is there a way to get a standard Windows Forms application to detect if the Shift key is being held down on application startup - without using Windows hooks?

我的理想想工作流如果Shift键被按下时运行的EXE文件时,从正常的变动。

I ideally would like the workflow to change from normal if the shift key is held down when the EXE file is run.

推荐答案

这里是关于阅读的文章主要国家(和鼠标)直接。

Here is an article about reading the key states (and mouse) directly.

这篇关于检测在应用程序启动shift键在C#/ Windows窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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