Chrome Extension Communicating with .Net Winforms
Budget: $30 – $250 USD
I am looking for a developer to do the prototype for this system. The goal of this project will have 3 parts.
1. A dummy HTML page with 3 buttons. [Print 1, Print 2, Print 3]. When a button is clicked it will pull a
querystring parameter {SaleId} from the url. Example Url:
http://localhost:5051/TestPrint.html?SaleId=1235
2. A Chrome Extension that when running will scan for a specific domain / url. When that URL is loaded
the chrome extension will inject some javascript into the page. When a user clicks on the buttons the
chrome extension will override the buttons onclick method and will post a Native Message.
3. A Winforms .Net version 4.7.2 application that has 3 methods [Print1_Clicked, Print2_Clicked,
Print3_Clicked] The Application will have a Native Messaging listener that will listen for the Chrome
extension for the Print 1, Print 2, Print 3 messages with the {SaleId}
The completed solution will provide all 3. A basic web page [TestPrint.html] with 3 buttons each with a generic
SaleId attached to it. A Chrome extension that when installed and identifies that “TestPrint.Html” is the current
url and injects some Javascript into the page. A basic .Net Framework 4.7.2 winforms application that has 3
methods and using Native Messaging hears a Print Message it will console log the SaleId
Open Source Resources for reference
https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/mv2-archive/api/nativeMessaging
https://github.com/acandylevey/NativeMessaging
Here is where you can do the JS / Send message from the DOM Element Id
https://github.com/GoogleChrome/chrome-extensions-samples/blob/main/mv2-archive/api/nativeMessaging/ap
p/main.js
Other examples but might not be that helpful
https://github.com/iamxeph/chrome-extension-nativemessaging-sample
https://github.com/ballamuth/Chrome4Net
1. A dummy HTML page with 3 buttons. [Print 1, Print 2, Print 3]. When a button is clicked it will pull a
querystring parameter {SaleId} from the url. Example Url:
http://localhost:5051/TestPrint.html?SaleId=1235
2. A Chrome Extension that when running will scan for a specific domain / url. When that URL is loaded
the chrome extension will inject some javascript into the page. When a user clicks on the buttons the
chrome extension will override the buttons onclick method and will post a Native Message.
3. A Winforms .Net version 4.7.2 application that has 3 methods [Print1_Clicked, Print2_Clicked,
Print3_Clicked] The Application will have a Native Messaging listener that will listen for the Chrome
extension for the Print 1, Print 2, Print 3 messages with the {SaleId}
The completed solution will provide all 3. A basic web page [TestPrint.html] with 3 buttons each with a generic
SaleId attached to it. A Chrome extension that when installed and identifies that “TestPrint.Html” is the current
url and injects some Javascript into the page. A basic .Net Framework 4.7.2 winforms application that has 3
methods and using Native Messaging hears a Print Message it will console log the SaleId
Open Source Resources for reference
https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/mv2-archive/api/nativeMessaging
https://github.com/acandylevey/NativeMessaging
Here is where you can do the JS / Send message from the DOM Element Id
https://github.com/GoogleChrome/chrome-extensions-samples/blob/main/mv2-archive/api/nativeMessaging/ap
p/main.js
Other examples but might not be that helpful
https://github.com/iamxeph/chrome-extension-nativemessaging-sample
https://github.com/ballamuth/Chrome4Net