桌面应用和浏览器之间的互动 [英] Interaction betwen desktop app and browser

查看:116
本文介绍了桌面应用和浏览器之间的互动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我需要从客户端桌面读取特定的程序内存地址(ReadProcessMemory c ++之类)并将其转发到客户端浏览器,以便进行一些操作,例如打印结果。



我需要建议,有一种最好的方法可以实现这一点。



i没有限制,例如:如果我可以通过浏览器实现这一点,没有任何桌面应用程序或浏览器扩展它没关系,但我对此表示怀疑。

Hello,
I need to read specific program memory address ( ReadProcessMemory c++ like) from a client desktop and retrive this to client browser for making some opération like simply print the result.

I need advicve , there is a best way to achieve this simply.

i have no restricton, ex: if i can achieve this from browser without any desktop app or browser extension it's ok but i doubt in that.

推荐答案

这是一项艰巨的任务,因为每个浏览器都来自不同的供应商和有一个不同的API。如果你现在不相信它 - 你相信它是一些繁琐的日子。



我为Firefox写了一个简单的演示:



带有XP-COM组件的简单Firefox插件 [ ^ ]



现在还有另一个界面:



https://developer。 mozilla.org/en-US/docs/Mozilla/js-ctypes/Using_js-ctypes?redirectlocale=en-US&redirectslug=js-ctypes%2FUsing_js-ctypes [ ^ ]



对于Internet Exploder,你需要一些棘手的东西:



http://msdn.microsoft.com/en-us/library/bb250462.aspx#wpm_elebp [<一个href =http://msdn.microsoft.com/en-us/library/bb250462.aspx#wpm_elebp\"target =_ blanktitle =新窗口> ^ ]



Chrome:



https://developers.google.com/native-client/



仔细阅读这些内容并尝试运气所需的方法。你将需要它。



毕竟:考虑另一种解决方案,因为它是PAIN IN THE ASS。
It is a titanic task because every browser comes from different vendor and has a different API. If you dont beleive it now - you believe it some cumbersome days.

I wrote a simpel demo for Firefox:

A simple Firefox Addon with XP-COM Component[^]

And there is now another interface:

https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes/Using_js-ctypes?redirectlocale=en-US&redirectslug=js-ctypes%2FUsing_js-ctypes[^]

For the Internet Exploder you need some tricky stuff:

http://msdn.microsoft.com/en-us/library/bb250462.aspx#wpm_elebp[^]

Chrome:

https://developers.google.com/native-client/

Read this stuff carefully and try your luck the needed methods. You will need it.

After all: think about another solution because it is PAIN IN THE ASS.


A less-复杂的选项可能是编写一些桌面软件,使用嵌入式Web服务器界面在浏览器中提供您需要的任何信息。这样它就可以在所有浏览器中工作,而不必为每个浏览器创建插件。
A less-complicated option might be to write some desktop software to supply whatever information you need in the browser using an embedded web server interface. That way it should work in all browsers without having to create plugins for each one.


这篇关于桌面应用和浏览器之间的互动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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