通过后台应用程序捕获事件 [英] Capturing events by a background application

查看:84
本文介绍了通过后台应用程序捕获事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行一个C#程序,该程序捕获从监听指纹设备的DLL调用的事件.虽然我的窗口是活动窗口-可以正常工作,但目前在后台-它不能捕获事件.

我该如何解决这个问题?

谢谢

I am trying to run a C# program that captures an event invoked from a DLL that listens to a finger print device. While my window is the active window - it works fine, but at the moment it is in the background- it does not capture the events.

How can I get over this problem?

Thank you

推荐答案

后台应用程序"实际上是Windows服务吗?然后解决方案显示在
在C#Windows服务中捕获设备事件 [ ^ ]
还是它是在用户上下文中运行的应用程序,但其窗口不是顶部窗口(甚至是隐藏窗口)?那么解决方案与此类似:
监听键盘活动的后台应用程序 [
Is that "background application" actually a Windows service? Then the solution is shown in
Capturing Device Events in a C# Windows Service[^]
Or is it an application running in the user context, but its window is not the top window (or even hidden)? Then the solution is similar to this:
Background applications listening for keyboard activity[^]


这篇关于通过后台应用程序捕获事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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