Forum Replies Created

Viewing 15 posts - 1 through 15 (of 231 total)
  • Author
    Posts
  • #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
    309 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, 5 months ago by Profile photo of Tim K Tim K.
    #317049 Score: 3
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    When publishing to scorm the “Persistant data” is saved in the scorm variable “cmi.suspend_data”. The size limit of this variable depends on the scorm version. Lectora adds all variables that are “retained between sessions” to that variable with their name and value. So variables you need to retain should have the shortest possible name and value.

    To reduce the amount of space needed, uncheck “retain between sessions” for all variables you don’t need to save. This can be done in the variable manager (for user-defined variables) or in the properties of the entry fields or other objects that use “Reserved variables”. Test scores are retained by default. The variables Lectora generates for a test are named as “Title_of_test_chapter_score”. It may be useful to give the test a very short name, e.g. “T1”, so the variable will be called “T1_score”, instead of a descriptive test name like “Final_Assessment_for_Chapter_1_–_Introduction_score”.

    Tim

    This post has received 3 votes up.
    #324574 Score: 3
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    Sorry, actually the correct code is:

    var username = AICC_Student_Name.getValue().split(",");
    Varlastname.set(username[0]);
    Varfirstname.set(username[1]);
    This post has received 3 votes up.
    #302630 Score: 3
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    1. Create a variable in Lectora, e.g. “allsectionsseen”

    2. Create an action group on Page 1 with one action

    Action: Show

    Target: Arrow_next

    Condition: Only if
    “allsectionsseen” contains “#accordion-1” AND
    “allsectionsseen” contains “#accordion-2” AND

    “allsectionsseen” contains “#accordion-3”

    3. Edit “Externe HTML-Objekte Code”

    Under the line “var currentAttrValue = jQuery(this).attr(‘href’);”

    add two lines of code:

    Varallsectionsseen.set(Varallsectionsseen.getValue()+currentAttrValue);
    runGroup_og99();

    Replace og99 with the html name of the action group created under 2.

    Tim

    This post has received 3 votes up.
    #303412 Score: 3
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    Happy new year!

    I don’t know a better way to achieve more overview than grouping those items that belong together. Usually there is no need to ungroup them again. You can edit each elements properties separately. You can move each item separately either by entering values into the position fields in the lower left corner or by holding [ALT] while moving it with the mouse.

    Tim

    This post has received 3 votes up.
    #332066 Score: 3
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    Hi Joe,

    A way to do it should be to set the variable in the way I’ve described in that other topic. Mind the action must be attached to the button. Then use the variable myAltTag for all other puposes. I’m not familiar with xAPI but it should work with

    LectoraXAPIStmt(VarmyAltTag.getValue());

    to use the variable value in the command.

    If you’re using Lectoras “xAPI Statement” action, you can select the variable in the “Object” field from the dropdown or enter VAR(myAltTag)

    Tim

    This post has received 3 votes up.
    #359781 Score: 3
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    You only need variables if you want to move the button. But as you’re using invisible buttons you could just add a second button on the left for “Close Page 1” and make the buttons show / hide each other.

    If you want to move the same button, you’d need 1 variable per chapter. Give it an initial value of “0” for closed. Add an action to set the variable to “1” (if it’s 0) else set to 0. Make this the first action on the button and add conditions to all following actions depending on whether they’re are “Open” or “Close Page 1” actions.

    This post has received 3 votes up.
    #406142 Score: 3
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    Here’s your file. It now contains 2 ways to check whether the tasks have been done. The first uses the status indicator you’ve integrated. The second demonstrates what Jenny explained.

    It also removes the Play button from the video.

    This post has received 3 votes up.
    Attachments:
    1. test_video_2.pkg
    #309570 Score: 3
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    Add \r to the variable:

    Added on VAR(CurrentDate): VAR(Entry_0001)\r

    Tim

    This post has received 3 votes up.
    #324176 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    I can replicate the issue. The “Mute media” action doesn’t work if the audio is on title level. There seems to be a difference in the two Mute actions.

    Code of the Mute action if the audio is on page level:

    function action96(fn){
    VarTriMuteAllFLV.set('1'); updateFLVPlayer(true);
    
    if(fn && typeof(fn) == 'string' ) eval(fn);
    else if(fn && typeof(fn) == 'function' ) fn();
    }

    Code of the action if the audio is on title level:

    function action96(fn){
    VarTriMuteAllFLV.set('1');
    
    if(fn && typeof(fn) == 'string' ) eval(fn);
    else if(fn && typeof(fn) == 'function' ) fn();
    }

    … the “updateFLVPlayer()” part is missing.

    If i run
    VarTriMuteAllFLV.set('1'); updateFLVPlayer(true);

    in a “Run javascript” action it’s muting the audio on title level as well.
    Tim

    This post has received 2 votes up.
    • This reply was modified 3 years, 2 months ago by Profile photo of Tim K Tim K.
    #341925 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    It can be done with Darrels code.

    This post has received 2 votes up.
    #421777 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    Hi Lydia,

    it has been more of a challenge than I thought (thanks for that) and I couldn’t hold my promise to only format the text 😉

     

    This post has received 2 votes up.
    Attachments:
    1. Mod2_4.zip
    #309639 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    Whenever you have different styles on text, Lectora will create a separate span with a different class. As Math said if you have one word in bold or underlined or different color you’ll get:

    <p><span class="text123Font1">Text Text Text</span><span class="text123Font2">Bold expression</span><span class="text123Font1">Text Text Text</span></p>

    If you just target “.text123Font1” then “.text123Font2” won’t get the padding but each of the two “Font1” spans will. You can target the <p> to style the whole paragraph:

    #text123 p{

    padding-right:20px;

    }

    Tim

    This post has received 2 votes up.
    • This reply was modified 3 years, 6 months ago by Profile photo of Tim K Tim K.
    • This reply was modified 3 years, 6 months ago by Profile photo of Tim K Tim K.
    #321176 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    Hi,

    you can add an action to the drag item:

    On: Click
    Action: Modify variable
    Target: Your_variable
    Value: Your_value
    Delay: 0.5 sec

    The action is run on release of the mouse button. The delay is needed to ensure that the dragitem is in place on the dropzone, it make take a short while until the item is “snapped” to the dropzone, if the user drops it near the edge of the zone. The delay should be longer if your dropzone is bigger, it may be shorter for smaller dropzones or if you have “Snap Drag Items to Center of Drop Zones” unchecked.

    Add a condition to ensure the user hasn’t dropped the item outside the dropzone or just clicks on an item at its starting position:

    Only if “Question_0001” (your question variable) “Does not contain” “1-(na)” for the first drag item “2-(na)” for the second, etc. Before the condition can be true, the drag item must be in place on the drop zone, so again: the delay is important.

    Tim

    This post has received 2 votes up.
    #357305 Score: 2
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    It should work if you don’t target the input field but the input fields variable. Run javascript on page level (On: Show) with two input fields. You may have to adjust the variable names in the script:

    var newDate1 = new Date();
    var newDate2 = new Date();
    
    newDate1.setDate(newDate1.getDate() - 30);
    newDate2.setDate(newDate2.getDate());
    
    VarEntry_0001.set((newDate1.getMonth() + 1) + '/' + newDate1.getDate() + '/' + newDate1.getFullYear());
    VarEntry_0002.set((newDate2.getMonth() + 1) + '/' + newDate2.getDate() + '/' + newDate2.getFullYear());
    This post has received 2 votes up.
Viewing 15 posts - 1 through 15 (of 231 total)

Tim K

Profile picture of Tim K

@timk

active 1 day, 3 hours ago