Confused Beginner

Home Forums Support Confused Beginner

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #8856
    Christina
    Guest

    Hi, so just to start off, I’m an undergrad senior thesis student who has no background in coding. I was hoping to run a Baron-Cohen’s “Read the Mind in the Eyes” Task which consist of screen with a photo of facial expression and four multiple choice with different emotions. The idea is to look at the difference in RT at how quickly they determine the emotion of the photo.

    First, I have a JS that allows keyboard input instead of mouse clicking for answers as
    this.hideNextButton();
    this.hidePreviousButton();
    var that = this;
    Event.observe(document, ‘keydown’, function keydownCallback(e) {
    var choiceID = null;
    switch (e.keyCode) {
    case 100: // ‘#4’ was pressed
    choiceID = 1;
    break;
    case 97: // ‘#1’ was pressed
    choiceID = 2;
    break;
    case 102: // ‘#6’ was pressed
    choiceID = 3;
    break;
    case 99: // ‘#3’ was pressed
    choiceID = 4;
    break;
    }
    if (choiceID) {
    Event.stopObserving(document, ‘keydown’, keydownCallback);
    that.setChoiceValue(choiceID, true);
    that.clickNextButton();
    }
    });

    Now I just want more accurate RT than Qualtrics timing. Is there a way I can have QRTEngine in conjuction to have a browser-based timing?

    Thank you!

    Christina

Viewing 1 post (of 1 total)
  • The forum ‘Support’ is closed to new topics and replies.