Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] Randomizing widgets

edited January 2014 in OpenSesame

Hi there,

I developed a form_base where I display a picture of an emotion and four possible choices below it.
Since I plan on doing 40 trials, is there any way I can randomize the order of the choices.

This is the script for my form base:

set margins "50;100;50;100"
set rows "4;1;1"
set spacing "10"
set cols "1;1;1;1"
widget 0 0 4 2 image path="[facestims]"
widget 0 2 1 1 button var="e_happy" text="Happy"
widget 1 2 1 1 button var="e_sad" text="Sad"
widget 2 2 1 1 button var="e_angry" text="Angry"
widget 3 2 1 1 button var="e_fearful" text="Fearful"

Thanks in advance.

-Rose

Comments

  • edited 10:05AM

    hi
    I used inline instead of form base
    just replace the form base with this inline
    the image widget is commented because I am not sure of it
    but the buttons work fine
    http://pastebin.com/cgMGUKip
    Dror

  • edited December 2013

    Hi drorgarbi,

    Thanks for the quick reply!

    I tried the inline script you provide, but when I run the experiment this error message comes up:

    Error: Inline script error
    In: inline_script (run phase)
    File "dist\libopensesame\item.py", line 432, in get
    Python traceback:
    runtime_error: Error: Runtime error
    Description: Variable '' is not set in item 'inline_script'.
    You are trying to use a variable that does not exist. Make sure that you have spelled and capitalized the variable name correctly. You may wish to use the variable inspector (Control + I) to find the intended variable.
    Full traceback in debug window

    Also, the pictures don't show, just the buttons.
    The pictures are in the experimental loop under the following variable name: facestims

    Here's the script that I am using: http://pastebin.com/ZeghQVvD

  • edited December 2013

    hi
    this is the new inline with the images working
    just paste this script in the run phase of the inlinescript
    and put the inline object in a loop that has the facestims var with all the images as values.

    the error is from the form start time line, I fixed it and placed it in the right place
    http://pastebin.com/bAQJCX04

  • edited December 2013

    Thank you so much drorgarbi!

    It works like a charm :D

    For future reference, I made a slight change under "#Create five widgets" so I could record the participant's response http://pastebin.com/z4ay7Vh4

    Again, thank you.

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games