Stop Movie troubles
David McFarlane
mcfarla9 at msu.edu
Thu Dec 6 23:38:39 UTC 2012
Roberto,
Oops that's embarrassing, in my haste I overlooked your link,
sorry. But then, I would not have gotten a followup with your
runtime error message, which I think is diagnostic.
Hmm, one way to get that runtime error is just to fail to initialize
some object variable. E.g., the code
Dim Text1 as TextDisplay
Text1.Text = "Hello"
will produce that run-time error, but the code
Dim Text1 as TextDisplay
Set Text1 = New TextDisplay
Text1.Text = "Hello"
or
Dim Text1 as TextDisplay
Set Text1 = StimText ' assuming StimText already exists
Text1.Text = "Hello"
will work.
I suspect that your error has nothing to do with using
MovieDisplay.Stop (or whatever) per se, but has to do with more
general rules of E-Basic/VBA usage.
BTW, this is also the sort of thing that PST Web Support is very good for.
Hmm, after I wrote all that, I put 'e-prime "object variable or With
block variable not set"', and came up with
http://www.pstnet.com/support/kb.asp?TopicID=4782 , which tells how
EP2 has an improved error message for this situation, and shows
another example of this problem. (And now that I have written this
up, I will add a link to this thread to my personal FAQ for the next
time this comes up :) .)
Hope that helps,
-- David McFarlane
At 12/6/2012 06:04 PM Thursday, you wrote:
>Hi David,
>Thanks for the reply. That's actually the same thread i had
>referenced in my previous message. As from the suggestions in that
>post, using Movie1.Stop (or something along those lines) stops the
>video but shuts the trial down with an error message: "object
>variable or With block variable not set". Any ideas where i'm going
>wrong? Ive been struggling with this for a while, either way i will
>post back with anything i find anything...
>
>Roberto
>
>
>On Thu, Dec 6, 2012 at 1:35 PM, David McFarlane
><<mailto:mcfarla9 at msu.edu>mcfarla9 at msu.edu> wrote:
>Roberto,
>
>Glad that you have found the Group helpful. For this one, I typed
>"e-prime moviedisplay stop" into Google for you, and came up with
>the following thread which should
>help:
><https://groups.google.com/d/topic/e-prime/XYEHpARxY0g>https://groups.google.com/d/topic/e-prime/XYEHpARxY0g
>.
>
>-----
>David McFarlane
>E-Prime training
>online:
><http://psychology.msu.edu/Workshops_Courses/eprime.aspx>http://psychology.msu.edu/Workshops_Courses/eprime.aspx
>Twitter: @EPrimeMaster
>(<https://twitter.com/EPrimeMaster>https://twitter.com/EPrimeMaster)
>
>
>
>At 12/5/2012 11:00 PM Wednesday, you wrote:
>Hi all,
>This message board has helped me a lot! I was hoping someone would
>be able to help me with a problem I have not yet been able to solve.
>
>Im setting up an experiment that has this structure:
>1. Intro screens (obviously)
>2. Slide with sub objects: text and SoundOut
>3. Slide with sub objects: MovieDisplay and SoundOut (i.e. movie and
>question presented simultaneously)
>4. SoundOut object on its own (i.e. a beep) with recorded response
>(i.e. press 1 or 2).
>5. Text slide with response (1 to 6).
>
>I am running into trouble in step 3. I would ultimately love for
>the movie to keep playing until a response is made after the beep
>(in step 4). This way a subject can see the video (plus hear some
>audio) and then make a response after a beep noise to which it would
>cause the stopping of the video. Thus, i have set the MovieDisplay
>with the settings as End Movie Action: "Terminate" and Stop Movie
>after: "No" so it can keep playing. However, when i do this the
>movie continues playing until its end, even after making a response
>after the auditory beep. I have tried to insert in-line code after
>the beep (i.e. Movie1.Stop) as this fellow poster did:
><https://groups.google.com/forum/#!msg/e-prime/XYEHpARxY0g/R0isrcBcBhQJ>https://groups.google.com/forum/#!msg/e-prime/XYEHpARxY0g/R0isrcBcBhQJ
>, but this just closes down the entire program.
>
>Does anyone have any suggestions? Is there any way i can tell
>eprime to end the movie (or the slide itself) after a response to
>the beep (in step 4) is made? I am not very proficient with code,
>although i have tried many shenanigans to get around this!
>
>Thank you for any help or advice!
>Roberto
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
More information about the Eprime
mailing list