Shanheavel Posted April 30, 2015 Posted April 30, 2015 Hi,I'd like to translate some simple code from AutoIt language to C++. Look here. I mean this one: $oIE.document.parentwindow.eval.I'm using a web browser control written in C++ from this site. There are many similar functions like Release or Stop. And there is execScript function. It works like Autoit $oIE.document.parentwindow.eval, but it doesn't return any value. So I can execute JavaScript in my C++ program, for example:alert(some_js_variable + other_js_var * 2);and I works fine. But I can't get result of expression like this:some_js_variable + other_js_var * 2;Is it possible to return value in C++ like AutoIt?
MilesAhead Posted May 2, 2015 Posted May 2, 2015 https://www.autoitscript.com/autoit3/docs/functions/DllCallbackRegister.htm may be of help. I'm not sure if the C++ function have had the name mangling turned off though. My Freeware Page
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now