Jump to content

Recommended Posts

Posted

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

 

 

 

Posted

maybe something like this:

Func Button1Click()
$oIE.document.parentwindow.execscript("javascript:cpAPIInterface.next();")

EndFunc

... (??) not tested

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Posted

No, Unfortunately it only works every now and again. As soon as I start to add other buttons to call other things it breaks.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...