Lukeo Posted August 21, 2015 Posted August 21, 2015 Hi all, I am trying to create a testing interface for some elearning work I am doing.I want to make a button called next to drive a captivate8 module interface via javascript. I can get the javscript to work fine but not via the button.I am using the onclick event but I have to physically click the browser screen to get it to work instead of doing this directly from the button. Can any one suggest a way to do this?This is what I am using:Func Button1Click()_IEHeadInsertEventScript($oIE, "document","onclick","cpAPIInterface.next();")EndFunc
Gianni Posted August 21, 2015 Posted August 21, 2015 maybe something like this:Func Button1Click() $oIE.document.parentwindow.execscript("javascript:cpAPIInterface.next();") EndFunc... (??) not tested Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....
Lukeo Posted August 25, 2015 Author Posted August 25, 2015 No, Unfortunately it only works every now and again. As soon as I start to add other buttons to call other things it breaks.
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