简体   繁体   中英

Invoke javascript function in chrome tab from C# DLL

As a part of migration from IE to Chrome of our website, I have currently a C# dll which finding my IE instance and invoking javascript function in found web page using IHTMLDocument2 and IHTMLWindow2 objects.

Now as my web page is opened in Chrome this option is not supported.

I found some examples of code how to find the tab in which my web page is opened but can't find any way how to invoke a function in there.

In my searches i found some suggestions but i can't find an adequate example of usage.

I understand that i will probably need to develop some kind of chrome extension but i don't understand how the communication will work between my dll and my web page.

Is there anyone who can direct me to a proper explanations and documentation about the process ?

我的 dll 加载到呼叫中心程序中,当该程序有接收呼叫的事件时,dll 会捕获该事件并需要传递客户信息以加载到我的网页中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM