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
Comments
Hi @mgade,
I had a go at fixing your task. You'll probably have to do some adjustment (especially checking that all you need is stored in the data log), but I've got something that shuld allow you to move forward building your experiment.
This task is structured to present a visual display where participants must click on one of two labeled rectangles (“vocal” or “consonant”) and ensures that only valid clicks on these regions are accepted. The logic is designed to avoid accidental or irrelevant clicks while keeping the participant’s experience seamless.
Each trial begins with a fixation screen, followed by two sketchpads that serve distinct purposes. The first sketchpad, named Rectangles, contains only the clickable rectangles. It is invisible to participants but plays a crucial technical role: it defines the Regions of Interest (ROIs) that the mouse response object will use to detect valid clicks. The second sketchpad, TargetDisplay, is the one the participant actually sees. It includes the same rectangles in the same positions, but also the target stimulus and the labels (“vocal” and “consonant”).
This separation is important. If the visible sketchpad were used directly for click detection, the text items (“vocal”, “consonant”, or even “target”) would also register as clickable elements, because OSWeb treats any named or unnamed text as a potential ROI. By linking the mouse response to the “Rectangles” sketchpad instead, only the rectangle shapes are recognized as valid click areas, while the visible display remains uncluttered and accurate.
After the target display is shown, the experiment enters a new_loop, which contains a short sequence. This sequence includes three elements:
cursor_roi) and setting variables such aschoiceand a Boolean flagvalid_click. If the participant clicked on “vocal” or “consonant”,valid_clickis set to1; otherwise, it’s0.The repeat_cycle uses a simple condition:
This means the loop repeats until a valid click is made. If the participant clicks outside the designated rectangles, the sequence restarts, waiting again for a proper response. Once the click is valid, the loop exits and the trial proceeds to data logging.
This design elegantly combines visual clarity with strict response control. The dual-sketchpad setup isolates the clickable zones from the visible text, preventing unwanted ROI overlaps, while the repeat mechanism ensures that only deliberate, valid responses are recorded.
If you open your browser's console, you'll see that I'm logging there what is being clicked on so that you can check what is going on (to make your browser's console visible, hit CTRL + SHIFT + I (or the equivalent on a Mac if you're using Mac).
Right after a mouse click, javascript code processesi it:
// store the choice vars.choice = vars.cursor_roi; // 'vocal' or 'consonant' // Store what was clicked vars.choice = vars.cursor_roi; // Determine if the click was on a valid ROI // Numeric flag for the loop condition (OSWeb-friendly) vars.valid_click = (vars.choice === 'vocal' || vars.choice === 'consonant') ? 1 : 0; // if you have a variable 'correct_response' per trial: vars.correct = Number(vars.cursor_roi === vars.correct_response); // Print the clicked region and coordinates in the browser console console.log('Choice:', vars.cursor_roi); console.log('X position:', vars.cursor_x); console.log('Y position:', vars.cursor_y);I tested it in Chome on my computer and the task runs smoothly, things appear where they are supposed to.
Hopefully this should give you the basis you need to carry on developing your task.
Here it is:
I programmed it using the latest version of Open Sesame: 4.1.3 , running OsWeb 2.2).
Best,
Fabrice.