javascript node.js 应用程序中的系统托盘图标

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12979727/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 17:32:39  来源:igfitidea点击:

System tray icon in node.js application

javascriptnode.jsuser-interfaceiconssystem-tray

提问by ciembor

This is what I need in my node.js application:

这是我在 node.js 应用程序中需要的:

  • System tray icon
  • changing this icon during application work
  • menu after clicking on icon
  • creation of windows with fields for login / password and confirmation buttons
  • 系统托盘图标
  • 在应用程序工作期间更改此图标
  • 点击图标后的菜单
  • 创建带有登录/密码和确认按钮字段的窗口

This is what I found:

这是我发现的:

Do you have any recommendations? I need something reliable, easy to installand as cross-systemas possible.

你有什么建议?我需要一些可靠易于安装且尽可能跨系统的东西。

//edit

//编辑

Since 6th November Appjs has basic tray icon support.

自 11 月 6 日起,Appjs 具有基本的托盘图标支持。

回答by Ewald

For anyone else that lands up here, check out https://github.com/rogerwang/node-webkit- a great package that allows you to create desktop applications using your favourite tools like JavaScript, with support for native shell access, tray icons and a lot more.

对于登陆这里的其他人,请查看https://github.com/rogerwang/node-webkit- 一个很棒的包,它允许您使用您最喜欢的工具(如 JavaScript)创建桌面应用程序,并支持本机 shell 访问、托盘图标还有很多。

Update: The app has moved to NWjs.iobut it's the same brilliant concept.

更新:该应用程序已移至NWjs.io,但它是同样出色的概念。

回答by Naman Goel

Take a look at Node-QT (https://github.com/arturadib/node-qt) maybe that can help.

看看 Node-QT ( https://github.com/arturadib/node-qt) 也许可以提供帮助。