Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果要是像QQ股票那样有股价提醒就好了~~ #15

Open
damacheng009 opened this issue Dec 7, 2015 · 2 comments
Open

如果要是像QQ股票那样有股价提醒就好了~~ #15

damacheng009 opened this issue Dec 7, 2015 · 2 comments

Comments

@damacheng009
Copy link

No description provided.

@HeddaZ
Copy link
Owner

HeddaZ commented Dec 9, 2015

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

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

@HeddaZ
Copy link
Owner

HeddaZ commented Jun 25, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants