#Boilerplate Webkit Plugin for automation purpose#
This plugin project is modified from a sample webkit plugin of chromium. I modified the project so that it can be built in our development environment.
- Add this line
<embed type="application/x-webkit-test-netscape" />
into body of your html which you want to automate on - Inside main.cpp, feel free to modify inside C function NPP_New(this function is triggered when your webkit plugin instance is created) to excute the script you want.
- Build the project(see below for details) and place the result dll or link the result dll to %RUNROOT%\Program Files\AutoCAD xxxx - English\AcWebBrowser\plugins
- When you open webbrowser in AutoCAD which navigate to your html (embeded with
<embed type="application/x-webkit-test-netscape" />
), NPP_New will be triggered
Please use amake.bat in the project to build it only in 32bit environment. If some error due to missing header wtf/Platform.h, you may need to copy the missing header files from Chromium project to your environment.
http://trac.webkit.org/wiki/QtWebKitPlugins has info you need