Howdy, Stranger!

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

Supported by

Taking screenshots with opensesame

edited July 2016 in OpenSesame

Hi all!

I would like to be able to save the contents of my sketchpad items as image files (in other words, take a screenshot). I would like this to occur throughout the task automatically. Is this possible? Would I need to use inline script to make this happen?

Thank you!

Sarah

Comments

  • edited 2:23AM

    Hi Sarah,

    You should be able to achieve this with an inline script. There are python modules for this, see for instance this page: http://stackoverflow.com/questions/2846947/get-screenshot-on-windows-with-python

    I am wondering though; what do you want to use this for? You can also deduce what your trial screen would've looked like by logging all experimental variables and then diving into your logfile. I hope you're not planning to assign data to conditions by means of manually looking at hundreds of screenshots?

    Cheers,

    Josh

  • edited 2:23AM

    Hi Josh,

    Okay thank you! I wanted to use it for exactly that but I thought about it after posting and realized that that wouldn't really work.

    Thank you though!

  • edited 2:23AM

    Just as a reference for someone who is really looking for a way to turn canvases into screenshots: A long time ago, I wrote a script that does exactly this (make screenshots from canvases that is). I planned to make it into a plugin, but never got to it. You can find the code at https://github.com/smathot/OpenSesame/issues/318.

    Buy Me A Coffee

  • balbal
    edited November 2016

    Hi,
    I would like to know how to use the code above to save a sketchpad item as an image.
    I copied and pasted the code into a inline script icon (placed after my sketchpad icon), but the code seems to make a new canvas (with text) and then save this item as the image. I need the image saved to be of the sketchpad I have just made. How do I alter the code to do this?
    And how do I alter the code so that the image's filename saves as the name of one of my variables (i.e. I want to set the image name as the name of the original image used in the sketchpad item, save as variable [file_name]). Struggling to do this as filename in the code above is a string, so I'm not sure how to reference a variable here.
    Thanks!

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