当按下按钮时,...发生. [英] When a button is pressed, ... happens.

查看:93
本文介绍了当按下按钮时,...发生.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我只是想知道是否有人可以帮助我解决我的压力状况!

I'm just wondering if anyone can help me with my stressful situation!

我目前正在尝试创建一个程序,当我按F11键时,将同时按字母G和左键单击.另外,当我按F10键时,它应该停止执行此操作.但是我很难尝试制作热键".作为 我称它们为全球性.无论程序是否聚焦,我都希望该程序被激活.

I'm currently trying to create a program that will, simultaneously press the letter G and left clicks, multiple times when I press F11. Also, when I press F10 it should stop doing this. But I'm having a hard time trying to make the "hot keys" as I call them be global. I want the program to be activated regardless if the program is focussed or not.

我正在使用Visual Studio 2010和Windows 7 x64

I'm using Visual Studio 2010 as well as Windows 7 x64

推荐答案

您将需要使用全局鼠标钩子和全局键盘钩子.

You will need to use global mouse hooks and global keyboard hooks.

亚当


这篇关于当按下按钮时,...发生.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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