Comments (2)
感谢你的提议,其实我曾思考过这个问题;
目前该需求在实现方案上没有绝对的壁垒,但是由于个人时间问题不得不暂时延后
*现将想法公布如下,欢迎有激情的同行 Fork *
- windows客户端上,添加一个响应 JS 调用 command 的事件委托(例如:command 名字可以叫做 price_xxx),因为包装的是一个 IE 核心的 WebBrowser 组件,可行性上不存在问题;
- 创建一个用于显示通知的 windows form;当捕获到上述 command 时滑出界面进行提示;
- 为web添加股票提醒的设置界面,主界面列表上加一个按钮呼出此界面;配置结果追加到 json 的设置中;
- 在JS脚本填充表格数据的方法中,追加价格阀值的比对,超限则触发 JS 方法: exec('price_xxx'),该消息会被上述的事件响应,桌面通知就出来了;
- 最后尽量优化一下通知框的用户体验,搞定!
from shadowin.
新的 Electron 方案已经完全打通了外框程序和内部页面的消息通道,而且还支持 Windows macOS 跨平台。
from shadowin.
Related Issues (20)
- windows版本中,我能否定义默认窗体位置? HOT 1
- Cloudfare拦截 HOT 4
- 本来想添加道琼斯指数的,但是显示添加成功后,页面上的所有信息都没有了,而且显示当前及页面脚本发生错误 HOT 3
- 通过公司网络上网时无法添加股票到自选股列表中,或股票表格显示为空白 HOT 1
- 能否增加全局的统计以及分组切换 HOT 1
- 场内基金没办法获取 HOT 4
- win10 电脑无法显示 HOT 1
- 请问如何调整FormBackColor HOT 1
- 双屏上下排列无法显示
- 可以增加数字货币功能
- 股票监控数目上限是22个,这个能否放开,或者自定义? HOT 1
- 网址连证书都没有?掩耳盗铃? HOT 1
- 修改快捷键 HOT 1
- win10 无法显示 是闭市的原因么? HOT 1
- 常见问题参考
- 新腾讯数据源不支持科创版? HOT 3
- 最新版在win10添加股票的时候会清空所有然后变成默认的几只股票 HOT 1
- 建议使用配置文件方式保存数据 HOT 1
- 可以支持ETF查看吗
- 可以考虑增加一下对汇率&富时A50指数的支持么
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shadowin.