Reply To: Using mouse track with dashed sentence

PennController for IBEX Forums Support Using mouse track with dashed sentence Reply To: Using mouse track with dashed sentence

#6972
amilam
Participant

Hi,

Have you tried doing something like this:

PennController.ResetPrefix(null);

newTrial("frase_1",
    newImage("a1", "aviso1.png")
        .size(200,200)
    ,

    newImage("a2", "aviso3.png")
        .size(200,200)
    ,

      newMouseTracker("mouse")
        .log()
        .start()
    ,

    newCanvas("canvas_esq", "40vw", "40vh")
        .add(250, 10, getImage("a1"))
        .print("center at 25vw", "middle at 50vh")
    ,

    newCanvas("canvas_dir","40vw", "40vh")
        .add(50, 10, getImage("a2"))
        .print("center at 75vw", "middle at 50vh")
    ,

    newTimer("pausa", 2000)
    .start()
    .wait()
    ,

    newController("DashedSentence", {s: "This is not an empty warning."})
        .center()
        .print()
        .log()
    ,
    newSelector("escolha")
        .add(getCanvas("canvas_esq"), getCanvas("canvas_dir"))
        .wait()
        .log()
    ,
    getMouseTracker("mouse")
        .stop()
    )

Hope it helps!