我们如何冻结黑屏桌面 [英] How we can freeze desktop with black screen

查看:89
本文介绍了我们如何冻结黑屏桌面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我正在使用套接字编程在基于客户端服务器体系结构的Windows应用程序上工作.这是语言实验室应用程序.我有两个控制台,一个是老师,另一个是学生,

我想要客户端(学生)应用程序,例如仅接受几个键.
我该怎么办?

请帮助我!

Hi!

I am working on windows application based on client server architecture using socket programming.It is language lab application . I have two console one is teacher and other is student,

I want to client(student) application such as only accept the few keys .
How I can do this?

Please help me!

推荐答案

如果要阻止键盘仅在您的应用程序中工作,请查看WM_KEYDOWN [^ ].

如果您想要更广泛的内容(不仅针对您的应用程序),请查看HOOKS: ^ ].

我想有了这些信息,您就可以......

HTH! :thumbsup:
If you want to prevent the keyboard to work only in your application, take a look at WM_KEYDOWN[^].

If you want something more wide (not only for your application) then take a look at HOOKS: low-level keyboard hook[^].

I guess that with this information you''ll be able to go...

HTH! :thumbsup:


您(很幸运)不能真正冻结桌面.某些组合键(例如Alt + Tab或Ctrl + Alt + Del)将始终对用户可用,并且您不应尝试克服这种行为.但是,可以创建不接受任何鼠标操作,将无法关闭并且仅处理KeyDown事件以处理某些按键组合的全屏窗体.

无论如何,为什么您要冻结整个计算机?我敢打赌您的应用程序的大多数用户都会非常恼火...
You (fortunately) can''t really freeze the desktop. Certain key combinations, like Alt+Tab or Ctrl+Alt+Del will always be available to the user and you should not try to overcome this behavior. However, it is possible to create a full-screen form that will not accept any mouse actions, will not be closable and will only handle the KeyDown event to deal with certain key combinations.

Anyway, why would you ever want to freeze the whole computer? I bet most users of your application will be extremely annoyed...


这感觉很像病毒:s.
对于黑屏,您可以使用黑色,无边界,最大化,始终在顶部的表格.
键盘dunno.
This feels a lot like a virus :s.
For the black screen you can use a black, borderless, maximized, always-on-top form.
The keyboard, dunno.


这篇关于我们如何冻结黑屏桌面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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