September 1, 2015 at 7:15 PM #299302
I have successfully installed a Java applet. I am trying to track button clicks in my application. I can do this easily enough with ordinary buttons by modifying variables when a button is clicked. BUT is there any way that I can get clicks recorded on the Java applet without modifying the applet itself? I was thinking a placing a transparent button on top of the applet but suspect that the click will not go through the button to the applet. Am I right? Any inventive Lectora solutions for this kind of issue?
AndrewSeptember 2, 2015 at 8:52 AM #299314
Are you using an External HTML Object to embed your Java applet? If so, you could try attaching an action that has a Mouse Click trigger to the External HTML Object itself. I can’t say if this will work for sure or not in your situation, but it’s worth a try.September 2, 2015 at 9:21 AM #299317
Thank you Wendy. Yes I am using an external HTML object. I will try to figure out what you mean exactly but it sounds like a good idea. Actually, I tried to use the object’s properties by creating a mouse click trigger. The mouse click did not work (not sure why) but the on mouse enter tr9gger worked – not precise enough though.
AndrewSeptember 2, 2015 at 9:43 AM #299320
I just meant attaching an action to the External HTML Object, just like you would for a button. (See attached screen capture.) I tried it with a dummy applet. I could not trigger the mouse click event in Run Mode, but it did trigger when I previewed it in a browser. Not sure what would happen though if your applet is also supposed to intercept mouse clicks.
Attachments:September 2, 2015 at 10:09 AM #299323
My applet is an audio recorder that works quite well and offers a ready-made solution for me except for tracking clicks. I did in fact do what you did in the attached graphic and discovered that the applet worked correctly but that the trigger did not fire (using an apache server). Other triggers like Mouse Enter/Exit seem to work though but not accurate enough, especially as there are a couple of buttons I want to track on the applet.
I thought of putting a transparent object on top of one of the applet’s buttons but suspect that the mouse click will not go through first layer but be stopped at the level of the first layer. To ask the question another way, is there a way that the a mouse click can be active through more than one layer?
Thanks a lot
AndrewSeptember 2, 2015 at 10:28 AM #299325
Oh I see. I would suspect the same, but don’t know for sure. It sounds like you need a way to send messages to or get messages from the applet. That’s out of my scope of knowledge, unfortunately. Hopefully someone else here can suggest something for you. Sorry that I cannot help more.September 2, 2015 at 10:41 AM #299326
Surprisingly, in earlier versions of script-based authoring systems, they did have the ability to pass messages e.g. send a buttonclick to another button. That is the sort of thing I need but do not have.
Thank you Wendy, you have been great. I will have to work on some cunning alternative 🙂
AndrewSeptember 4, 2015 at 4:40 AM #299360
Sergey SnegirevMember339 pts@ssneg
Agreed Sergey, I will take another look at your previous recommendation for a recorder – maybe I am just not familiar of how to integrate JS into Lectora (despite the almost 600-page long docs).
Thanks a lot
You must be logged in to reply to this topic.