Millisecond Forums

/ ontrialbegin

https://forums.millisecond.com/Topic36345.aspx

By freegor - 7/2/2024

Hi everyone,
I'm Igor and this is my first day in which I'm trying to modify an Inquisit script.
My problem is with the following lines of script:
<trial testE>

<trial testE>
/ inputdevice = keyboard
/ ontrialbegin = [
    values.selectStim = list.testE_itemnumbers.nextvalue;
    values.wordposition = list.wordPositions_testE.nextvalue;
    values.congruence = list.congruency_testE.nextvalue;
    values.correctButton = item.correctButton_testE.item(values.selectStim);
    values.wordposition == 0){
        values.word_y = parameters.center_y;
    }
]

    
The error says that I'm missing a ']'. Perhaps, I put it into the script in the wrong way.
Could you please help me out?
I'm just at the beginning and my head is already exploding! :hehe:
By Dave - 7/2/2024

Igor Iarrobino - 7/2/2024
Hi everyone,
I'm Igor and this is my first day in which I'm trying to modify an Inquisit script.
My problem is with the following lines of script:
<trial testE>

<trial testE>
/ inputdevice = keyboard
/ ontrialbegin = [
    values.selectStim = list.testE_itemnumbers.nextvalue;
    values.wordposition = list.wordPositions_testE.nextvalue;
    values.congruence = list.congruency_testE.nextvalue;
    values.correctButton = item.correctButton_testE.item(values.selectStim);
    values.wordposition == 0){
        values.word_y = parameters.center_y;
    }
]

    
The error says that I'm missing a ']'. Perhaps, I put it into the script in the wrong way.
Could you please help me out?
I'm just at the beginning and my head is already exploding! :hehe:

Please attach the entire script. To attach files, select +Insert -> Add File

As for the incomplete code snippet you posted, the syntax here is broken:

/ ontrialbegin = [
  values.selectStim = list.testE_itemnumbers.nextvalue;
  values.wordposition = list.wordPositions_testE.nextvalue;
  values.congruence = list.congruency_testE.nextvalue;
  values.correctButton = item.correctButton_testE.item(values.selectStim);
  values.wordposition == 0){
   values.word_y = parameters.center_y;
  }

]

If anything, that ought to read

/ ontrialbegin = [
  values.selectStim = list.testE_itemnumbers.nextvalue;
  values.wordposition = list.wordPositions_testE.nextvalue;
  values.congruence = list.congruency_testE.nextvalue;
  values.correctButton = item.correctButton_testE.item(values.selectStim);
  if(values.wordposition == 0){
   values.word_y = parameters.center_y;
  }

]
By freegor - 7/2/2024

Dave - 7/2/2024
Igor Iarrobino - 7/2/2024
Hi everyone,
I'm Igor and this is my first day in which I'm trying to modify an Inquisit script.
My problem is with the following lines of script:
<trial testE>

<trial testE>
/ inputdevice = keyboard
/ ontrialbegin = [
    values.selectStim = list.testE_itemnumbers.nextvalue;
    values.wordposition = list.wordPositions_testE.nextvalue;
    values.congruence = list.congruency_testE.nextvalue;
    values.correctButton = item.correctButton_testE.item(values.selectStim);
    values.wordposition == 0){
        values.word_y = parameters.center_y;
    }
]

    
The error says that I'm missing a ']'. Perhaps, I put it into the script in the wrong way.
Could you please help me out?
I'm just at the beginning and my head is already exploding! :hehe:

Please attach the entire script. To attach files, select +Insert -> Add File

As for the incomplete code snippet you posted, the syntax here is broken:

/ ontrialbegin = [
  values.selectStim = list.testE_itemnumbers.nextvalue;
  values.wordposition = list.wordPositions_testE.nextvalue;
  values.congruence = list.congruency_testE.nextvalue;
  values.correctButton = item.correctButton_testE.item(values.selectStim);
  values.wordposition == 0){
   values.word_y = parameters.center_y;
  }

]

If anything, that ought to read

/ ontrialbegin = [
  values.selectStim = list.testE_itemnumbers.nextvalue;
  values.wordposition = list.wordPositions_testE.nextvalue;
  values.congruence = list.congruency_testE.nextvalue;
  values.correctButton = item.correctButton_testE.item(values.selectStim);
  if(values.wordposition == 0){
   values.word_y = parameters.center_y;
  }

]

Hi Dave,
thank you for your kind and quick answer.
I thought of an unwanted interruption of the script.
I was just trying to change the snippet so that I would superimpose the word position at the centre of the emotional face instead of putting it on the top/bottom of it.
Now, you can find attached the entire script.

By Dave - 7/3/2024

Igor Iarrobino - 7/3/2024
Dave - 7/2/2024
Igor Iarrobino - 7/2/2024
Hi everyone,
I'm Igor and this is my first day in which I'm trying to modify an Inquisit script.
My problem is with the following lines of script:
<trial testE>

<trial testE>
/ inputdevice = keyboard
/ ontrialbegin = [
    values.selectStim = list.testE_itemnumbers.nextvalue;
    values.wordposition = list.wordPositions_testE.nextvalue;
    values.congruence = list.congruency_testE.nextvalue;
    values.correctButton = item.correctButton_testE.item(values.selectStim);
    values.wordposition == 0){
        values.word_y = parameters.center_y;
    }
]

    
The error says that I'm missing a ']'. Perhaps, I put it into the script in the wrong way.
Could you please help me out?
I'm just at the beginning and my head is already exploding! :hehe:

Please attach the entire script. To attach files, select +Insert -> Add File

As for the incomplete code snippet you posted, the syntax here is broken:

/ ontrialbegin = [
  values.selectStim = list.testE_itemnumbers.nextvalue;
  values.wordposition = list.wordPositions_testE.nextvalue;
  values.congruence = list.congruency_testE.nextvalue;
  values.correctButton = item.correctButton_testE.item(values.selectStim);
  values.wordposition == 0){
   values.word_y = parameters.center_y;
  }

]

If anything, that ought to read

/ ontrialbegin = [
  values.selectStim = list.testE_itemnumbers.nextvalue;
  values.wordposition = list.wordPositions_testE.nextvalue;
  values.congruence = list.congruency_testE.nextvalue;
  values.correctButton = item.correctButton_testE.item(values.selectStim);
  if(values.wordposition == 0){
   values.word_y = parameters.center_y;
  }

]

Hi Dave,
thank you for your kind and quick answer.
I thought of an unwanted interruption of the script.
I was just trying to change the snippet so that I would superimpose the word position at the centre of the emotional face instead of putting it on the top/bottom of it.
Now, you can find attached the entire script.


Why so complicated? If you only want a single Y position (center of the screen), just set both the top_y and bottom_y parameter to 50%. You don't need to change anything else.

Also, any inline comments must be preceded by //. You can't just type into elements like so



it ought to be



Generally see the Programmer's Manual available at https://www.millisecond.com/support/Inquisit%20Programmer's%20Manual.pdf