Shanheavel Posted April 30, 2015 Share 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? Link to comment Share on other sites More sharing options...
Shanheavel Posted May 2, 2015 Author Share Posted May 2, 2015 Bump Link to comment Share on other sites More sharing options...
MilesAhead Posted May 2, 2015 Share 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 Link to comment Share on other sites More sharing options...
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