Displaying frame image around specific choice when chosen by participant

18 views
Skip to first unread message

Vanessa S

unread,
Nov 15, 2021, 12:58:07 PM11/15/21
to E-Prime
Hi, 

I am currently designing a lottery choice experiment where participants are shown two images of lotteries on a SlideState where they are able to select the option above using the Up arrow-key and the option below with the Down arrow-key. I want a frame image that is transparent to appear around the lottery the participant chose, depending on whether they pressed the UP/DOWN arrow-key but I am having troubles on figuring how to script this. Essentially, I want to highlight to the participant the option they chose. The duration that the lotteries are shown for is 3000ms but would need the frame to appear only once the participant has made their choice (so delayed). If the participant does not make a choice in time, it currently automatically displays whether they would have won or loss the lottery (wins and losses have been predetermined for each trial so not dependent on what they choose). Could I have some help with how to achieve this frame or if there is another simpler way of doing so? 

Thank you

McFarlane, David

unread,
Nov 17, 2021, 5:06:15 PM11/17/21
to e-p...@googlegroups.com
A frame image that is both "transparent" (i.e., not visible) and "appears" (i.e., is visible) seems like an oxymoron. Also, what do you mean by "frame" -- e.g., do you mean the border around a SlideImage sub-object? Please clarify.

-- David McFarlane

________________________________________
From: e-p...@googlegroups.com <e-p...@googlegroups.com> on behalf of Vanessa S <simoes.van...@gmail.com>
Sent: Monday, November 15, 2021 12:58 PM
To: E-Prime
Subject: Displaying frame image around specific choice when chosen by participant

Vanessa S

unread,
Nov 18, 2021, 5:04:40 AM11/18/21
to E-Prime
Hi David, 

I mean a separate image of just a border, that would be overlayed on top of the chosen lottery image. I do not know if this is possible at all. Sorry for the confusion about the image being transparent. I just meant that you would simply see a border around the SlideImage sub-object. Overall, I want to make it obvious to the participant the choice they made by pressing the up or down arrow key. If you know an easier way to do this I would be grateful to get any input. Thank you. 

Vanessa 

Spape, Michiel

unread,
Nov 18, 2021, 5:16:38 AM11/18/21
to e-p...@googlegroups.com

Hi Vanessa,

There are two easy ways of doing this.

1: If you have E-Prime 3, why not use two buttons and go for that instead? Add a button for you lottery image 1, go properties, edit theme to include the image, change the themes for the circumstances normal, hover, and down.

2: In E-Prime 2, or if you must use a keyboard (it is indeed faster), in general you can make 3 states (duplicate the original) to the slide (‘mySlide’), with state1 setting the border to the first slideimage sub-properties 2, and in state2 the second. Set {UPARROW}{DOWNARROW}{ENTER} as allowable. Add a label (beforeslidelabel) before and an inline after:

If mySlide.RESP = “{UPARROW}” or mySlide.RESP = “{DOWNARROW}” then

    If mySlide.RESP = “{UPARROW}” then mySlide.ActiveState = “Slide1” else mySlide.ActiveState = “Slide2”

    GoTo beforeslidelabel

End if

 

Hope that helps!

Best,

Michiel

--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/154932bc-c9d9-402f-b8c2-20537cee9cben%40googlegroups.com.

David McFarlane

unread,
Nov 18, 2021, 4:49:35 PM11/18/21
to e-p...@googlegroups.com
Michiel already gave an answer that is easy to follow and offers a lot
of flexibility, and you would do well to go that way. Simply as an
academic point, you could manipulate built-in sub-object borders
somewhat more surgically doing something like

CSlideText(mySlide.States("Default").Objects("Text1")).BorderWidth = 1

You could also redraw the Slide or the sub-object doing something like

mySlide.Draw

or

CSlideText(mySlide.States("Default").Objects("Text1")).Draw

But of course if you need to re-arm the input mask then you really need
to loop back and rerun the Slide as Michiel showed.

-- David McFarlane


On 2021-11-18 Thu 5:16 AM, Spape, Michiel wrote:
> Hi Vanessa,
>
> There are two easy ways of doing this.
>
> 1: If you have E-Prime 3, why not use two buttons and go for that
> instead? Add a button for you lottery image 1, go properties, edit theme
> to include the image, change the themes for the circumstances normal,
> hover, and down.
>
> 2: In E-Prime 2, or if you must use a keyboard (it is indeed faster), in
> general you can make 3 states (duplicate the original) to the slide
> (‘mySlide’), with state1 setting the border to the first slideimage
> sub-properties 2, and in state2 the second. Set
> {UPARROW}{DOWNARROW}{ENTER} as allowable. Add a label (beforeslidelabel)
> before and an inline after:
>
> If mySlide.RESP = “{UPARROW}” or mySlide.RESP = “{DOWNARROW}” then
>
>     If mySlide.RESP = “{UPARROW}” then mySlide.ActiveState = “Slide1”
> else mySlide.ActiveState = “Slide2”
>
>     GoTo beforeslidelabel
>
> End if
>
> Hope that helps!
>
> Best,
>
> Michiel
>
> *From:*e-p...@googlegroups.com <e-p...@googlegroups.com> *On Behalf Of
> *Vanessa S
> *Sent:* 18 November 2021 12:05
> *To:* E-Prime <e-p...@googlegroups.com>
> *Subject:* Re: Displaying frame image around specific choice when chosen
Reply all
Reply to author
Forward
0 new messages