Connecting chrome native messages to a existing instance on windows

痞子三分冷 提交于 2019-12-01 10:53:54

问题


I have a created a chrome background script and a host using python run by executing a bat file which is linked in the "manifest". Everything kinda works but as far as I understand every time I connect to host with my chrome extension for native messaging I create the python instance and execute the code.

But is it possible to connect to a existing instance(for example I execute a python script) and view the output? I hope my question is understandable.

I also do not understand why when I execute a bat file e get a cmd window but when my chrome background app connect to chrome and data is sent between there is no window. Why this might be like that?

来源:https://stackoverflow.com/questions/26108698/connecting-chrome-native-messages-to-a-existing-instance-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!