Explore the community Forums Lectora Inspire Tools Questions & Answers Actions – can't find actions, is there an advanced action menu?

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #315365 Score: 0
    Profile photo of Naseem Akram
    Naseem Akram
    Member
    beginner
    intermediate
    friend finder
    contributor
    @nakram1001

    Hi all,

    I was just working on something and needed create a onMouse DoubleClick action, but my action option’s are very few in Lectora.  All I have is Page Show, Object Hide/Show, Mouse click/enter/exit/right click.

    However, the help file suggest that there are many other actions available:

    Any Key
    Hide
    Keystroke
    Mouse Click
    Mouse Double-Click
    Mouse Enter
    Mouse Exit
    Show
    Show Page
    Done Playing
    Any Key
    Right Mouse Click
    Timer

    I can’t locate any of these.  Any ideas where they are?

    TIA.

    #315367 Score: 0
    Profile photo of Darrel Somoza
    Darrel Somoza
    Member
    contributor
    friend finder
    beginner
    intermediate
    junior moderator
    advanced
    wise owl
    curious george
    profile
    199 pts
    @Klaatu

    What are you trying to put the action on?

    #315375 Score: 0
    Profile photo of Naseem Akram
    Naseem Akram
    Member
    beginner
    intermediate
    friend finder
    contributor
    @nakram1001

    Hi, I’m trying to apply this particular action to a hotspot I’ve created using a shape.  If certain actions are restricted to specific objects, is there somewhere I can find this list?

    Thanks

    #315378 Score: 0
    Profile photo of Darrel Somoza
    Darrel Somoza
    Member
    contributor
    friend finder
    beginner
    intermediate
    junior moderator
    advanced
    wise owl
    curious george
    profile
    199 pts
    @Klaatu

    Oh, sorry, I’m not sure about what objects have what triggers or what publishing mode you have to be in to see them. If you want to use some JavaScript to insert a double click event listener on a certain page then add a run JavaScript on the show of the page with the following:

    document.getElementById(‘shapeXXX’).addEventListener(‘dblclick’, function(){
    /* do your code here */
    });

    Replace the shapeXXX with your transparent hot spot shape HTML Name. Reply if you need further assistance with the code and I or someone else here will surely help you out.

     

     

    #315379 Score: 0
    Profile photo of Darrel Somoza
    Darrel Somoza
    Member
    contributor
    friend finder
    beginner
    intermediate
    junior moderator
    advanced
    wise owl
    curious george
    profile
    199 pts
    @Klaatu

    I’m sure one of the more seasoned Lectora users will be able to answer this for you quickly.

    #315390 Score: 0
    Profile photo of Jennifer Valley
    Jennifer Valley
    Member
    contributor
    beginner
    friend finder
    advanced
    lectora beginner
    verified member
    wise owl
    profile
    picture perfect
    curious george
    114 pts
    @jvalley4735

    If you use a hot spot question you won’t be able to use double clicking.  The answers are considered form objects that you can only select and deselect.  You could however fake the question by using transparent buttons which do support double clicking.

    #315391 Score: 0
    Profile photo of Darrel Somoza
    Darrel Somoza
    Member
    contributor
    friend finder
    beginner
    intermediate
    junior moderator
    advanced
    wise owl
    curious george
    profile
    199 pts
    @Klaatu

    Naseem was asking where to find the double click trigger?

    #315416 Score: 0
    Profile photo of Naseem Akram
    Naseem Akram
    Member
    beginner
    intermediate
    friend finder
    contributor
    @nakram1001

    I’m doing a software simulation in this instance.  And some of the functions in this software require a double click, hence the hotspot that requires a double click.

    I’ve tried using the actual button object, but it still gives me the same trigger options.

    #315474 Score: 0
    Profile photo of Darrel Somoza
    Darrel Somoza
    Member
    contributor
    friend finder
    beginner
    intermediate
    junior moderator
    advanced
    wise owl
    curious george
    profile
    199 pts
    @Klaatu

    Ever since you asked that question I have tried to find any object that has a double click trigger and I can’t find one. I’ve tried different publishing modes too. Nothing. Anyone else in the forum know how to bring up a double click trigger?

    Until then you can use the JavaScript I suggested. Private message me of you need help with it.

    #315478 Score: 5
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    307 pts
    @timk

    The double-click trigger has been available until Lectora v11 (i don’t know if it existed in v12) for actions on buttons, images and shapes. It has only ever worked when publishing to formats using the Lectora Viewer (CD / EXE), not when publishing to be viewed in a browser (I thought browsers don’t support double-clicks).

    To create a double-click you can use Darrels code or Jennies approach by placing a transparent button over your hotspot. Add two actions to the button:

    1.

    On: Click
    Action: Hide
    Target: This object

    2.

    On: Hide
    Action: Show
    Target: This object
    Delay: 0.5 sec

    This way the real hotspot can only be clicked during the .5 seconds while the transparent button is hidden.

    Other triggers only exist for certain objects:

    Some triggers are only available for actions added to the page itself:

    On: Keystroke (It’s not possible to press [Enter] for an image only 😉
    On: Any key

    On: Device rotation
    On: Screen Swipe Left
    On: Screen Swipe Right
    Why not add “Up” and “Down”?

    On: Timed Interval

    Some triggers are only available for actions on certain objects:

    On: Done playing
    Only available for videos and audios, i.e. for “playable” objects.

    On: Select / Change
    Only available for form objects that can be selected, e.g. radio buttons, checkboxes, input field.

    Tim

     

    This post has received 5 votes up.
    • This reply was modified 3 years, 4 months ago by Profile photo of Tim K Tim K.
    #315480 Score: 0
    Profile photo of Darrel Somoza
    Darrel Somoza
    Member
    contributor
    friend finder
    beginner
    intermediate
    junior moderator
    advanced
    wise owl
    curious george
    profile
    199 pts
    @Klaatu

    Thank you, Tim. Great info. I think a guide review and revision is in order.

    #315590 Score: 0
    Profile photo of Naseem Akram
    Naseem Akram
    Member
    beginner
    intermediate
    friend finder
    contributor
    @nakram1001

    Thanks guys.  Most helpful!

    So essentially the help guide is out of date.

    #315627 Score: 0
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    336 pts
    @ssneg

    Tim’s way of adding a button that hides for 0.5 sec and reappears is INGENIOUS!

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.