Git Product home page Git Product logo

Comments (2)

HeddaZ avatar HeddaZ commented on May 27, 2024

感谢你的提议,其实我曾思考过这个问题;
目前该需求在实现方案上没有绝对的壁垒,但是由于个人时间问题不得不暂时延后
*现将想法公布如下,欢迎有激情的同行 Fork *

  1. windows客户端上,添加一个响应 JS 调用 command 的事件委托(例如:command 名字可以叫做 price_xxx),因为包装的是一个 IE 核心的 WebBrowser 组件,可行性上不存在问题;
  2. 创建一个用于显示通知的 windows form;当捕获到上述 command 时滑出界面进行提示;
  3. 为web添加股票提醒的设置界面,主界面列表上加一个按钮呼出此界面;配置结果追加到 json 的设置中;
  4. 在JS脚本填充表格数据的方法中,追加价格阀值的比对,超限则触发 JS 方法: exec('price_xxx'),该消息会被上述的事件响应,桌面通知就出来了;
  5. 最后尽量优化一下通知框的用户体验,搞定!

from shadowin.

HeddaZ avatar HeddaZ commented on May 27, 2024

新的 Electron 方案已经完全打通了外框程序和内部页面的消息通道,而且还支持 Windows macOS 跨平台。

from shadowin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.