External application to call a series of .ebs2 files?

669 views
Skip to first unread message

frankbosco

unread,
Mar 13, 2009, 11:33:32 AM3/13/09
to E-Prime
Dear E-Prime group,

I am searching for a (presumably) simple external application (e.g., a
small VB-based program) to call several EBS2 files to run in a desired
order (preferably random order). I would like to administer a battery
of experiments in a group setting, and am having a great deal of
trouble integrating the procedures from each separate .ES2 file into
one "main" .ES2 file with blocklists (E-Prime support suggested that
my individual procedures exceed E-Prime's copy/paste capacity, and E-
Prime's automatic renaming of duplicate objects is making the task
even more difficult).

Would anyone be willing to share something along these lines? Any
help would be greatly appreciated. I am not very familiar with
programming languages.

Thanks in advance!
Frank

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Frank A. Bosco
Doctoral Student
Dept. of Management (OB/HR)
Fogelman College of Business & Economics
The University of Memphis
fbo...@memphis.edu
Office: (901) 678-4531
Cell: (901) 387-7864
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

David McFarlane

unread,
Mar 13, 2009, 11:47:30 AM3/13/09
to e-p...@googlegroups.com
Frank,

This question has come up before (e.g., see
http://www.pstnet.com/forum/Topic2485-12-1.aspx ), and I keep
suggesting AutoIt
(<http://www.autoitscript.com/autoit3>http://www.autoitscript.com/autoit3
). So far no one has reported back on this, and I never have time to
try it myself. Perhaps you could give that a try and let us all know
how it works.

Other than that, you might try a good old DOS-style batch
file. Also, someone once suggested (sorry, I do not have the link)
using links in a .pdf to guide the course of a battery of
tests. That would still require some manual interaction, but might
help a little.

Please let us know what you find.

-- David McFarlane, Professional Faultfinder

frankbosco

unread,
Mar 14, 2009, 2:21:45 AM3/14/09
to E-Prime
David,

Thanks very much for your suggestion! I've created a script for this
purpose in Autoit (it works very well). I don't know how to attach a
file in this window, so please feel free to download it from my
personal website (see link below), and share. In the .zip file, I
have included the Autoit script file, a compiled version, and a
basic .txt instruction file.

http://www.frankbosco.com/call_ebs.zip

All the best,
Frank


On Mar 13, 10:47 am, David McFarlane <mcfar...@msu.edu> wrote:
> Frank,
>
> This question has come up before (e.g., seehttp://www.pstnet.com/forum/Topic2485-12-1.aspx), and I keep

David McFarlane

unread,
Mar 16, 2009, 3:00:55 PM3/16/09
to e-p...@googlegroups.com
Frank,
Wow, this looks really cool, thanks very much for taking on the
assignment and writing back. Looks like it will be worth my time to
look into AutoIt further, and continue recommending it to others.

Thanks,
-- David McFarlane, Professional Faultfinder


liwenna

unread,
Apr 16, 2009, 10:56:33 AM4/16/09
to E-Prime
It is like magic!!!

This is exactly what I need to run my battery of tests. Well... almost
exactly... except for the random part that is. I am trying to get that
part out, yet I am experiencing troubles using auto-it as my
university ICT guys won't let us install nifty little programs like
this.

Would there be a way to have autoit also insert subject and session
numbers? Perhaps even make a shiny litle autoit interface wherein you
enter subject and session numbers and then run the whole everything
from that? I'll work on it myself and keep you guys informed if
something good comes from it, just wondering if you, Frank, had
allready tried something similar?

Greetings,

liwenna
> > > >ofexperimentsin a group setting, and am having a great deal of
> > > >trouble integrating the procedures from each separate .ES2 file into
> > > >one "main" .ES2 file with blocklists (E-Prime support suggested that
> > > >my individual procedures exceed E-Prime's copy/pastecapacity, and E-

frankbosco

unread,
Apr 16, 2009, 2:55:03 PM4/16/09
to E-Prime
Hi Liwenna,

Thanks for your message. Re: having autoit automatically insert
subject/session numbers, I have not tried this (now that I think about
it, it would be very handy for me)... Perhaps try something like the
following:

To start, you'd need a basic autoit data collection box at the start
of the executable (i.e., before the randomly selected .ebs2 files
begin) - autoit provides a good example of this code in one of their
sample code files (see example file "inputbox.au3") . The next part
(having autoit automatically populate the subject/session values) is
more complicated, but perhaps try something like the following:

In the current code, there are lines that include (something like)
"winwait.open; winwait.close" -- you may be able to tell autoit to
wait until the "enter subject #" box appears (by simply providing
autoit with the name of that box, as is done in my current code with
"E-Run"), then have autoit insert a subject/session number collected
at the start (i.e., from the input box in the previous step). You may
be able to tell autoit to wait until "enter Ss #" box appears, then
code it to press "TAB" (x) times, the value from the input box, then
"RETURN" (these can be done with ASCII code). I know it sounds silly,
but it might actually work...

Tell you what - I'll play around with this idea (very) late tonight,
then send you a code file if I figure it out... For now, you can
download a newer version of the ebs2 call autoit file from my personal
website: [www.frankbosco.com/ebs_call_new.au3] -- this version
includes code to call a few ebs2 files in a determined sequence (after
a series of randomly-selected ebs2 files).

Hope that helps!

Best,
Frank

liwenna

unread,
Apr 17, 2009, 4:34:07 AM4/17/09
to E-Prime
Hello Frank,

Thanks for your quick reply! It would be great if you could try the
numbers-thing. At my university I can only 'run' the au3 scripts, and
edit them in notepad, but in order to do that I first need to figure
out the language... My guess is that if you get the program to run
orderly, editing the code is fare more simple, right? But as said, ICT
guys won't let me. At home I also can't do that as I am the proud
owner of a Mac, which I really love but sometimes it's a pain (and yes
I should get myself some parallels).

I am homeworking today but I'll try the script you posted first thing
on monday!

Sincerely,

liwenna.

Rick O'Gorman

unread,
Apr 17, 2009, 5:29:52 AM4/17/09
to e-p...@googlegroups.com
Liwenna:

As an aside to your topic, I also have a Mac. You can get a program
called Virtualbox (www.virtualbox.org) for *free* from Sun which does
the same kind of thing as Parallels. Its a little more techy but I
didn't have too much trouble setting it up. You still need a legal
Windows copy, but probably you can get a discounted copy from your univ.

I run E-Prime on that setup and it works fine. Getting the dongle
recognised was a little tricky, as you have to tell Virtualbox to access
the USB dongle and may also have to get drivers for it (one time I did,
the next time I didn't as Windows found some itself, not the ones I used
previously)--I got them from
http://www.aladdin.com/support/hasp/enduser.aspx, using the HASP HL ones
I think (I tried both options there). It might depend on whether you use
an individual ddongle, network dongle or no dongle (if that's an option).

The E-Prime people (PST) are completely unhelpful in this regard, as
'they don't support Macs' which is a total cop-out. They went so far as
to deny any responsibility to help me with my bootcamp Windows
install--even though its running natively and is as legitimate a version
of Windows as any other. I found that a disgrace and frankly has made me
keep a firm eye out for E-Prime alternatives, when the chance presents
itself.

Rick
--
Rick O'Gorman, PhD
Psychology, Faculty of Development and Society
Collegiate Crescent Campus,
Sheffield Hallam University,
Sheffield
S10 2BP

Phone: 0114 225 5788 Fax: 0114 225 2430

http://www.shu.ac.uk/psychology/staff/OGorman.html

No passion can survive a woman's seeing her lover hold
his fork in the wrong way.
~Edith Wharton

liwenna

unread,
Apr 17, 2009, 7:36:54 PM4/17/09
to E-Prime
Thank you Rick!

I just came home from a friends wedding (why am I checking this e-
prime group in the middle of the night? - beats me...) I'll definately
check out the virtualbox!
I see that we have some common grounds actually... for my graduation
research I attempted a modifiied replication of Mark van Vugt's ' male
warrior hypothesis' experiment, which, unfortunately, wasn't all that
succesfull. On the topic of this group: it was a nice e-prime design,
wherein we tried to let subjects believe that there were co-players
while there actually where none.
I'll let you know when I have succes with virtualbox.

As for now, sleep well o/

liwenna


>
> As an aside to your topic, I also have a Mac. You can get a program
> called Virtualbox (www.virtualbox.org) for *free* from Sun which does
> the same kind of thing as Parallels. Its a little more techy but I
> didn't have too much trouble setting it up. You still need a legal
> Windows copy, but probably you can get a discounted copy from your univ.
>
> I run E-Prime on that setup and it works fine. Getting the dongle
> recognised was a little tricky, as you have to tell Virtualbox to access
> the USB dongle and may also have to get drivers for it (one time I did,
> the next time I didn't as Windows found some itself, not the ones I used
> previously)--I got them fromhttp://www.aladdin.com/support/hasp/enduser.aspx, using the HASP HL ones

Greg Osenbach

unread,
Apr 17, 2009, 7:54:25 PM4/17/09
to e-p...@googlegroups.com
Was there anything special you had to do to get e-prime to install in a virtual box virtual machine?  I have tried installing it in my virtual machine several times and it always crashes during the install...

Greg

Rick O'Gorman

unread,
Apr 18, 2009, 7:34:11 AM4/18/09
to e-p...@googlegroups.com
Hi Greg,

I don't remember any problems with installing E-Prime on my VM per se,
only with getting it to see the dongle, which was a pain. This was
partly because I had to learn how to get Virtualbox to allow the guest
OS (WinXP) to see the USB dongle. The first time I did this, Windows
also didn't try to find drivers, so I used Aladdin's HASP driver, but
the wrong kind (but they still worked). The second time (I had to
reinstall when we upgraded from 2.x beta to 2.x gold) I used the right
ones. My bootcamp also failed to look for drivers with the beta (a
pattern?) but did find them for the gold install.

I think both times I copied across the install file rather than just run
it from the CD--maybe that's a factor?

Are you using VB, or one of the commercial options (Fusion, Parallels)?

Rick

Greg Osenbach wrote:
> Was there anything special you had to do to get e-prime to install in a
> virtual box virtual machine? I have tried installing it in my virtual
> machine several times and it always crashes during the install...
>
> Greg
>
> On Fri, Apr 17, 2009 at 5:29 AM, Rick O'Gorman <ricko...@gmail.com
> <mailto:ricko...@gmail.com>> wrote:
>
>
> Liwenna:
>
> As an aside to your topic, I also have a Mac. You can get a program
> called Virtualbox (www.virtualbox.org <http://www.virtualbox.org>)
> <http://www.frankbosco.com/ebs_call_new.au3>] -- this version
> >> includes code to call a few ebs2 files in a determined sequence
> (after
> >> a series of randomly-selected ebs2 files).
> >>
> >> Hope that helps!
> >>
> >> Best,
> >> Frank
> >>
> >> On Apr 16, 9:56 am, liwenna <liwe...@gmail.com
> <mailto:liwe...@gmail.com>> wrote:
> >>
> >>> It is like magic!!!
> >>> This is exactly what I need to run my battery of tests. Well...
> almost
> >>> exactly... except for the random part that is. I am trying to
> get that
> >>> part out, yet I am experiencing troubles using auto-it as my
> >>> university ICT guys won't let us install nifty little programs like
> >>> this.
> >>> Would there be a way to have autoit also insert subject and session
> >>> numbers? Perhaps even make a shiny litle autoit interface
> wherein you
> >>> enter subject and session numbers and then run the whole everything
> >>> from that? I'll work on it myself and keep you guys informed if
> >>> something good comes from it, just wondering if you, Frank, had
> >>> allready tried something similar?
> >>> Greetings,
> >>> liwenna
> >>> On Mar 16, 9:00 pm, David McFarlane <mcfar...@msu.edu
> <mailto:mcfar...@msu.edu>> wrote:
> >>>> Frank,
> >>>> Wow, this looks really cool, thanks very much for taking on the
> >>>> assignment and writing back. Looks like it will be worth my
> time to
> >>>> look into AutoIt further, and continue recommending it to others.
> >>>> Thanks,
> >>>> -- David McFarlane, Professional Faultfinder
> >>>> At 3/14/2009 02:21 AM Saturday, you wrote:
> >>>>> David,
> >>>>> Thanks very much for your suggestion! I've created a script
> for this
> >>>>> purpose in Autoit (it works very well). I don't know how to
> attach a
> >>>>> file in this window, so please feel free to download it from my
> >>>>> personal website (see link below), and share. In the .zip
> file, I
> >>>>> have included the Autoit script file, a compiled version, and a
> >>>>> basic .txt instruction file.
> >>>>> http://www.frankbosco.com/call_ebs.zip
> >>>>> All the best,
> >>>>> Frank
> >>>>> On Mar 13, 10:47 am, David McFarlane <mcfar...@msu.edu
> <mailto:mcfar...@msu.edu>> wrote:
> >>>>>> Frank,
> >>>>>> This question has come up before (e.g.,
> >>>>> seehttp://www.pstnet.com/forum/Topic2485-12-1.aspx
> <http://www.pstnet.com/forum/Topic2485-12-1.aspx>), and I keep
> >>>>>>> fbo...@memphis.edu <mailto:fbo...@memphis.edu>

Greg Osenbach

unread,
Apr 18, 2009, 10:17:33 AM4/18/09
to e-p...@googlegroups.com
I use Sun Virtual Box.  The installer runs fine.  I have tried with both the install files copied from the CD and a mounted .iso file.  when it gets near the end of the installation process, The virtual machine crashes.  I have tried with several versions of vurtual box and on several different laptops with the same results.  I had actually come to the conclusion that for some odd reason, e-prime could not be used in a virtual machine.  However hearing that someone got it to work, that gives me hope to be able to get it running eventually.  Although I should note that this was an XP virtual machine running in both XP and Vista for hosts.  Not a mac.

Rick O'Gorman

unread,
Apr 18, 2009, 11:55:34 AM4/18/09
to e-p...@googlegroups.com
Hi Greg,

Well, that's one difference, and I suppose there are different bugs in
the versions of VB for Mac and XP. However, still seems odd. Definitely
went smoothly for me on the Mac host/XP guest using VB. I assume you're
using a recent version of VB (2.1 or better)? Other than that, I'm out
of ideas.

Rick

> > <mailto:ricko...@gmail.com <mailto:ricko...@gmail.com>>> wrote:
> >
> >
> > Liwenna:
> >
> > As an aside to your topic, I also have a Mac. You can get a
> program
> > called Virtualbox (www.virtualbox.org

> <http://www.virtualbox.org> <http://www.virtualbox.org>)

> > <mailto:goo...@frankbosco.com

> <mailto:fbo...@memphis.edu <mailto:fbo...@memphis.edu>>

liwenna

unread,
Apr 20, 2009, 5:13:26 AM4/20/09
to E-Prime
*small update*

The script to call files in a fixed order is working as properly as
expected. Rick, thank you so very much.
The auto-it forum is offline right now (maintenance) so toying around
with the script to make it give in subject and session numbers will
have to wait.



On Apr 18, 5:55 pm, Rick O'Gorman <rickogor...@gmail.com> wrote:
> Hi Greg,
>
> Well, that's one difference, and I suppose there are different bugs in
> the versions of VB for Mac and XP. However, still seems odd. Definitely
> went smoothly for me on the Mac host/XP guest using VB. I assume you're
> using a recent version of VB (2.1 or better)? Other than that, I'm out
> of ideas.
>
> Rick
>
> Greg Osenbach wrote:
> > I use Sun Virtual Box. The installer runs fine. I have tried with both
> > the install files copied from the CD and a mounted .iso file. when it
> > gets near the end of the installation process, The virtual machine
> > crashes. I have tried with several versions of vurtual box and on
> > several different laptops with the same results. I had actually come to
> > the conclusion that for some odd reason, e-prime could not be used in a
> > virtual machine. However hearing that someone got it to work, that
> > gives me hope to be able to get it running eventually. Although I
> > should note that this was an XP virtual machine running in both XP and
> > Vista for hosts. Not a mac.
>
> > On Sat, Apr 18, 2009 at 7:34 AM, Rick O'Gorman <rickogor...@gmail.com
> > <mailto:rickogor...@gmail.com>> wrote:
>
> > Hi Greg,
>
> > I don't remember any problems with installing E-Prime on my VM per se,
> > only with getting it to see the dongle, which was a pain. This was
> > partly because I had to learn how to get Virtualbox to allow the guest
> > OS (WinXP) to see the USB dongle. The first time I did this, Windows
> > also didn't try to find drivers, so I used Aladdin's HASP driver, but
> > the wrong kind (but they still worked). The second time (I had to
> > reinstall when we upgraded from 2.x beta to 2.x gold) I used the right
> > ones. My bootcamp also failed to look for drivers with the beta (a
> > pattern?) but did find them for the gold install.
>
> > I think both times I copied across the install file rather than just run
> > it from the CD--maybe that's a factor?
>
> > Are you using VB, or one of the commercial options (Fusion, Parallels)?
>
> > Rick
>
> > Greg Osenbach wrote:
> > > Was there anything special you had to do to get e-prime to
> > install in a
> > > virtual box virtual machine? I have tried installing it in my
> > virtual
> > > machine several times and it always crashes during the install...
>
> > > Greg
>
> > > On Fri, Apr 17, 2009 at 5:29 AM, Rick O'Gorman
> > <rickogor...@gmail.com <mailto:rickogor...@gmail.com>
> ...
>
> read more »

Rick O'Gorman

unread,
Apr 20, 2009, 6:03:16 AM4/20/09
to e-p...@googlegroups.com
Liwenna,

I am thinking you meant thanks to Greg here?

Rick

liwenna

unread,
Apr 20, 2009, 7:42:17 AM4/20/09
to E-Prime
Actually... I meant thanks to Frank ^.^

This topic is getting more and more complex.

I am gonna give up on autoit for today...
> ...
>
> read more »

liwenna

unread,
Apr 23, 2009, 10:16:17 AM4/23/09
to E-Prime
Ok...

I think that it's simply not possible to mess with eprime when it
comes to the startup info.
After being not so successful with combining a 'loginbox'script and
Franks' "call a number of ebs files" script I posted on the autoit
forums for help, and someone made a script that *should* do the
trick... but it doesn't . see:
http://www.autoitscript.com/forum/index.php?showtopic=93731&st=0&gopid=673368&#entry673368

I tried some things in eprime itself, to see whether there would be
workarounds to setting 'subject' and 'session' but there seem to be
none. For instance: I tried to insert a simple piece of script to
change "session" and "subject" from the default right into the estudio-
file:

c.SetAttrib "Subject", "2"
c.SetAttrib "Session", "3"

but e-prime won't buy that either... it's stays set at 1 and 1.

perhaps there are possibilities trough package calls?? I never used
those so I have no idea of what their powers are?

otherwise I think we'll stay stuck with instructing subjects to enter
in the numbers.


End of this update ^.^

-liw
> ...
>
> read more »

liwenna

unread,
Apr 24, 2009, 5:39:49 AM4/24/09
to E-Prime
LO AND BEHOLD!!!

It worked out ! \o/

In the two links below two autoitscripts can be downloaded. They work
under the same conditions as Frank Bosco's scripts but these one will
also prompt you for subject and sessionnumber once and autofill these
into the eprime experiments. Maybe the interface of the loginbox could
be made a litle more shiny and a little less autoit like but otherwise
it seems to work all fine. Major thanks go out to the autoitforum
person who actually had it all done in minutes... isn't it amazing?!

I have no personal uploadspace so it's on a filesharing machine... If
someone cares to host it, that would be nice too, little script, take
hardly any space.

http://www.2shared.com/fadmin/5474738/cd5d2d5c/scritp_to_call_ebs2_files_in_random_order_and_autofill_startup_info.au3.html
http://www.2shared.com/fadmin/5474737/5de230cd/scritp_to_call_ebs2_files_in_fixed_order_and_autofill_startup_info.au3.html

Please let me know how these work out for you guys. Maybe in abundancy
but: don't use the script for timed experiments... no idea what it'll
do to the timing.

Greetings,

liwenna



On Apr 23, 4:16 pm, liwenna <liwe...@gmail.com> wrote:
> Ok...
>
> I think that it's simply not possible to mess with eprime when it
> comes to the startup info.
> After being not so successful with combining a 'loginbox'script and
> Franks' "call a number of ebs files" script I posted on the autoit
> forums for help, and someone made a script that *should* do the
> trick... but it doesn't . see:http://www.autoitscript.com/forum/index.php?showtopic=93731&st=0&gopi...
> ...
>
> read more »

frankbosco

unread,
Apr 24, 2009, 8:39:26 AM4/24/09
to E-Prime
Hi Liwenna et al.,

Wow - this is awesome! Sorry I never got back to you guys on this --
I tried to modify my code to add participant numbers, etc., but
utterly failed :(

I'd be happy to post the files on my site for others to download --
http://www.frankbosco.com/call_ebs_fixed_random.zip

Best,
Frank


On Apr 24, 4:39 am, liwenna <liwe...@gmail.com> wrote:
> LO AND BEHOLD!!!
>
> It worked out ! \o/
>
> In the two links below two autoitscripts can be downloaded. They work
> under the same conditions as Frank Bosco's scripts but these one will
> also prompt you for subject and sessionnumber once and autofill these
> into the eprime experiments. Maybe the interface of the loginbox could
> be made a litle more shiny and a little less autoit like but otherwise
> it seems to work all fine. Major thanks go out to the autoitforum
> person who actually had it all done in minutes... isn't it amazing?!
>
> I have no personal uploadspace so it's on a filesharing machine... If
> someone cares to host it, that would be nice too, little script, take
> hardly any space.
>
> http://www.2shared.com/fadmin/5474738/cd5d2d5c/scritp_to_call_ebs2_fi...http://www.2shared.com/fadmin/5474737/5de230cd/scritp_to_call_ebs2_fi...
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages