编写办公室内部广播消息传递系统? [英] Write an intra-office broadcast messaging system?

查看:95
本文介绍了编写办公室内部广播消息传递系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我一直想要的东西.最近的情况使这成为了我......我的帽子上真正的蜜蜂.

我想在我的办公室中建立一个单向即时消息传递系统.这将使IT部门(我)可以向所有人广播消息.在每个桌面上运行的客户端服务将显示消息的前部和中心.该框将是模式框,要求用户在继续其他操作之前手动关闭该框.理想情况下,发送消息的应用程序将获得有关该盒子已关闭的反馈,从而使我们能够联系用户并确保他们得到了它.

再一次,这将不是一个完整的即时消息服务,它只是IT人员告诉人们该数据库已脱机进行维护或我们的网站正在重新启动的一种方式.电子邮件没有用,所以我正在寻找一种不涉及喊叫的更有效的解决方案.

我不是在要求任何人编写代码;这对我来说并不是一件好事,无论如何,我将需要对系统有足够的了解以进行维护.我希望仅使用框架,而不使用第三方工具.问题是,我什至不知道从哪里开始.知道使用什么程序集和名称空间将有很大帮助,如果有人链接到文章或示例代码,我将非常感激.

This is something I''ve been wanting for a while. A recent situation has made this a real bee up my... er, in my bonnet.

I want to set up a one-way instant messaging system in my office. This would allow the IT department (me) to broadcast a message to everyone. A client service running on every desktop would display the message front and center; the box would be modal and require that the user manually close the box before continuing with anything else. Ideally, the app that sends out the message would get feedback that the box has been closed, allowing us to go to the user and make sure they got it.

Again, this would not be a full-fledged instant messaging service, just a way for IT to tell people that the database is being taken offline for maintenance or that our website is being restarted. Emails haven''t worked, so I''m looking for a more effective solution that does not involve shouting.

I am not asking for anyone to write the code; that wouldn''t be fun for me and anyway, I will need to understand the system well enough to maintain it. I would prefer using just the Framework, without third party tools. The problem is, I have no idea where even to begin. Knowing what assemblies and namespaces to use would be a big help, and if anyone has links to articles or sample code, I would be most appreciative.

推荐答案

您尝试过吗DOS中的"net send"命令,虽然没有迹象表明有人已阅读它,但它确实会弹出一个消息框中心屏幕.

如果您想要一个应用程序,则可以通过自动启动应用程序或具有桌面交互功能的Windows服务来查看TCP/UDP广播消息(System.Net,System.Net.Sockets)系统.

首先,如果无法正常运行,请尝试"net send".转到一个应用程序.
Have you tried the "net send" command from DOS, while there is no indication that someone has read it, it does pop-up a message box center screen.

If you want an app you would be looking at a TCP/UDP broadcast message (System.Net, System.Net.Sockets) system either through an auto start application or a windows service with desktop interaction.

To start with I would try "net send" if that doesn''t work go to an app.


您还可以创建一个具有NotifyIcon的Windows应用程序.作为IT人员,您可以编写脚本来在有人登录时启动程序.

您可以让系统每分钟左右检查数据库中是否有任何新消息,如果有任何新消息,它可能会弹出带有该消息的表单.

您还可以将其设置为将消息发布回数据库,例如,当某人关闭一条消息时,或者某人关闭该程序时.

确实不应该那么难.
You could also create a windows app that has a NotifyIcon. As IT, you could write a script to start the program whenever someone logs on.

You could have the system check a database every minute or so for any new messages and if there are any, it could pop up a form with the message.

You could also set it up to post messages back to the database, for instance when someone closes a message, or if someone closes the program.

It really shouldn''t be that hard to do.


这篇关于编写办公室内部广播消息传递系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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