Converting Inquisit 5 script to run on version 4


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
carloskij - 6/5/2019
Hi all, 
I found in the Inquisit library the attached version of Davidson et al.'s hearts and flowers task. Unfortunately, it is written for Inquisit 5 and my department has a licence for Inquisit 4, on which it doesn't work. Can someone help me in converting the code for Inquisit 4?

C.

Here's a list of things you typically have to change: https://www.millisecond.com/forums/FindPost27217.aspx

carloskij
carloskij
Associate Member (63 reputation)Associate Member (63 reputation)Associate Member (63 reputation)Associate Member (63 reputation)Associate Member (63 reputation)Associate Member (63 reputation)Associate Member (63 reputation)Associate Member (63 reputation)Associate Member (63 reputation)
Group: Forum Members
Posts: 1, Visits: 2
Hi all, 
I found in the Inquisit library the attached version of Davidson et al.'s hearts and flowers task. Unfortunately, it is written for Inquisit 5 and my department has a licence for Inquisit 4, on which it doesn't work. Can someone help me in converting the code for Inquisit 4?

C.
Attachments
hearts_flowers.txt (366 views, 44.00 KB)
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
George Newman - Thursday, November 22, 2018
Ah I see. So there is no way to present the stimulus frames "behind" the trial its self? And that's why the custom trial works while the likert doesn't, because you can layer the response  buttons on top of the html?

> So there is no way to present the stimulus frames "behind" the trial its self?

No, there is no such thing as a "trial itself" layer.

> And that's why the custom trial works while the likert doesn't, because you can layer the response  buttons on top of the html?

No, it's plainly a bug in how Inquisit 4 handles the <html> element in certain situations. In essence, the mouse is captured by the HTML window. Inquisit 5 doesn't have that problem.

Does that clarify?

George Newman
George Newman
Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)
Group: Forum Members
Posts: 9, Visits: 26
Ah I see. So there is no way to present the stimulus frames "behind" the trial its self? And that's why the custom trial works while the likert doesn't, because you can layer the response  buttons on top of the html?
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
George Newman - Thursday, November 22, 2018
Apologies you, were right. It was straightforward. I was just being mildly stupid. 

Just out of interest, what determines which element appears in front of which? because it seems that this set up works because the buttons, b1, b2 etc, are layered on top of the scale.jpg but i can't see that explicitly in the code anywhere? If I could layer some elements in-front i might be able to do it with the original scale.

Thanks again.

The order in /stimulustimes or -frames determines what is drawn on top of what, see https://www.millisecond.com/forums/FindPost26096.aspx

George Newman
George Newman
Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)
Group: Forum Members
Posts: 9, Visits: 26
Apologies you, were right. It was straightforward. I was just being mildly stupid. 

Just out of interest, what determines which element appears in front of which? because it seems that this set up works because the buttons, b1, b2 etc, are layered on top of the scale.jpg but i can't see that explicitly in the code anywhere? If I could layer some elements in-front i might be able to do it with the original scale.

Thanks again.
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
George Newman - Sunday, November 18, 2018
Huh. That seems to work (even when plug my harmint.htm)! Still can't see where I went wrong in my code but I'm happy for that to be one of life's little mysteries! Thank you very much. I will proceed using this method. One last thing, is there a template for this exact thing but with a 7 point scale? I'm struggling to make a pictures that add on the extra two points i need. 

Thanks again for all your help.


No, there isn't a pre-made 7-point sample that I''m aware of. Extending the existing one to 7 points should be straightforward, though, what exactly are you struggling with?

George Newman
George Newman
Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)
Group: Forum Members
Posts: 9, Visits: 26
Huh. That seems to work (even when plug my harmint.htm)! Still can't see where I went wrong in my code but I'm happy for that to be one of life's little mysteries! Thank you very much. I will proceed using this method. One last thing, is there a template for this exact thing but with a 7 point scale? I'm struggling to make a pictures that add on the extra two points i need. 

Thanks again for all your help.


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
George Newman - Friday, November 16, 2018
Hey again

So the custom <trial> work-around runs into similar (but not the same) problem. It won't display the response buttons at the same time as the html (although it does display the cursor). If I set the stimulusframes of the html to 100, for example, then what happens is the scale is displayed until the html appears, at which point it disappears. Is this still the same bug?

As to the screen shot, that works fine (thank you) but I'm not sure about will happen when it is displayed on screens of different sizes. Will it scale? I'm worried that it might end up cutting off some of the words, or covering the question text or even possibly the response buttons below. Is there anyway I can guarantee that this sort of thing won't happen?

Thanks again.

Re. the <picture> approach, scaling across different screen sizes should not be an issue if you make use of /canvasaspectratio in the respective script's <defaults> and use percentages in /size and /position attributes.

Re. the <trial> issue, I seem to be unable to reproduce this one, but I don't have your HTML file. The attached example works fine for me in Inquisit 4.

Attachments
example.zip (388 views, 74.00 KB)
George Newman
George Newman
Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)Partner Member (847 reputation)
Group: Forum Members
Posts: 9, Visits: 26
Hey again

So the custom <trial> work-around runs into similar (but not the same) problem. It won't display the response buttons at the same time as the html (although it does display the cursor). If I set the stimulusframes of the html to 100, for example, then what happens is the scale is displayed until the html appears, at which point it disappears. Is this still the same bug?

As to the screen shot, that works fine (thank you) but I'm not sure about will happen when it is displayed on screens of different sizes. Will it scale? I'm worried that it might end up cutting off some of the words, or covering the question text or even possibly the response buttons below. Is there anyway I can guarantee that this sort of thing won't happen?

Thanks again.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search