closing another application when Eprime resumes from suspend
David McFarlane
mcfarla9 at msu.edu
Mon Feb 8 19:14:35 UTC 2010
Matt,
Thanks for posting back with the response from PST. Just in case
anyone else wants to use the AppClose command, note that you will not
find it in the Index of the online E-Basic Help. Instead, if you
want to see the documentation then you will need to use the Find
feature to find the topic. I will have to take that up with PST Web Support.
-- David McFarlane, Professional Faultfinder
>Hey Dave,
>
>Thanks for the suggestion. Unfortunately, we don't have a license for
>MediaLab, so it looks like I'm stuck to Eprime. PST did get back to me
>after almost 2 weeks (they're usually much better at responding).
>Apparently there's an AppClose command that will do just what I want.
>However, I'm having trouble getting it to work. Not sure if this is
>because I have the application header wrong, or something else.
>Anyone have experience using the AppClose() function?
>
>Thanks,
>-Matt
>
>
>
>On Jan 28, 4:42 pm, David McFarlane <mcfar... at msu.edu> wrote:
> > Matt,
> >
> > Don't you hate it when someone gives you a useless answer to a
> > question you did not ask? Well, I have never explored E-Prime's
> > Suspend/Resume features, but I think you could run your design much
> > better in Empirisoft MediaLab (possibly combined with their DirectRT)
> > rather than E-Prime. But maybe somebody else here has a real
> answer for you.
> >
> > -- David McFarlane, Professional Faultfinder
> > "If all you have is a hammer, every problem looks like a nail."
> >
> >
> >
> > >This is my first forum post, and I am an E-prime 2 user. In my
> > >protocol, I am displaying some instructions, suspending E-prime to go
> > >to a web browser, returning to Eprime for a distractor task, and
> > >suspending E-prime again to open a new web browser window. I am doing
> > >this by modifying the "Suspend/Resume" sample on PST's support site
> > >(http://www.pstnet.com/e-prime/support/samples.asp?
> > >Mode=View&SampleID=27). I created two instances of the inline object
> > >in the sample. After setting all the variables to zero at the end of
> > >the first inline and removing the declaration statements in the second
> > >inline, I sandwiched my list object for the distracter task in the
> > >middle.
> >
> > >This works great when the first browser instance is closed before the
> > >logical expression...
> >
> > >nExitCode = STILL_ACTIVE And (Clock.Read - nStartTime < X)
> >
> > >...evaluates to false because X is reached. However, if the first
> > >browser instance is left open when E-prime resumes control, then the
> > >second time I suspend Eprime, it resumes as soon as it opens the
> > >second browser window. I think this has something to do with Eprime
> > >evaluating that the first instance of the browser is still open, since
> > >the second inline should change nStartTime to a new value as soon as
> > >the second browser is launched.
> >
> > >Do any of you have insights on how I can get Eprime to either 1)close
> > >the first browser window OR 2) not flake out when calling for a second
> > >browser to be open?
> >
> > >Thanks for your help,
> > >-Matt
>
>--
>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 this group at
>http://groups.google.com/group/e-prime?hl=en.
--
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 this group at http://groups.google.com/group/e-prime?hl=en.
More information about the Eprime
mailing list