Redirecting between websurvey and Inquisit on a local computer


Author
Message
Topher Hübel
Topher Hübel
Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)
Group: Forum Members
Posts: 12, Visits: 28

I've got one survey on https://www.soscisurvey.de/

And I have a programmed experiment with some surveys on a local computer.
Is it possible to redirect from the local Inquisit experiment to a web survey?


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Yes (in a sense). See the "Running Sequences of Inquisit Scripts and Other Applications" topic in the documentation. In a nutshell, you write a Windows batch file (or shell script equivalent under OSX) that runs your Inquisit scripts and fires up a browser with the URL to your survey afterwards.

Topher Hübel
Topher Hübel
Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)
Group: Forum Members
Posts: 12, Visits: 28
"C:\Program Files (x86)\Microsoft Application Virtualization Client\sfttray.exe" /launch "Inquisit 4 v 4.0.2.0" "\\fs02\huebel$\Dokumente\MASCOT\MASCOT.iqx" -s %1 -g 1
"C:\Program Files\Internet Explorer\iexplore.exe"
"C:\Program Files (x86)\Microsoft Application Virtualization Client\sfttray.exe" /launch "Inquisit 4 v 4.0.2.0" "\\fs02\huebel$\Dokumente\MASCOT\survey.iqx" -s %1 -g 1

1) I programmed that, but it only fires up all two experiments and the browser at the same time and not in a row.
2) How can I Programm to open a certain web page?


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
You'll have to familiarize yourself with batch syntax. You'll want to use the start command and its /wait switch, cf. http://technet.microsoft.com/en-us/library/bb491005.aspx .

Also see http://msdn.microsoft.com/en-us/library/ie/hh826025%28v=vs.85%29.aspx

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
If using Windows batch files, you'll want to do something like this:

@echo off
set INQUISITPATH="C:\Program Files\Millisecond Software\Inquisit 4\Inquisit.exe"
set SCRIPTPATH="D:\myscript.iqx"
set /p SID=Enter subject ID:
set /p GID=Enter group ID:

start "" /wait %INQUISITPATH% %SCRIPTPATH% -s %SID% -g %GID%
start iexplore.exe https://www.google.com/?q=%SID%%GID%

Topher Hübel
Topher Hübel
Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)
Group: Forum Members
Posts: 12, Visits: 28

@echo off
set INQUISITPATH="C:\Program Files (x86)\Microsoft Application Virtualization Client\sfttray.exe" /launch "Inquisit 4 v 4.0.2.0"
set SCRIPTPATH="\\fs02\huebel$\Dokumente\MASCOT\MASCOT.iqx"
set SCRIPTPATH2="\\fs02\huebel$\Dokumente\MASCOT\surveys.iqx"
set /p SID=Enter subject ID:
set /p GID=Enter group ID:

start "" /wait %INQUISITPATH% %SCRIPTPATH% -s %SID% -g %GID%
start /wait iexplore.exe https://www.soscisurvey.de/DUCTUS/
start "" /wait %INQUISITPATH% %SCRIPTPATH2% -s %SID% -g %GID%

Nearly everything is working fine now, but the Internet Explorer and the second Experiment fire up at the same time.
I can't manage that. Any idea how to fix it?

That would be great!


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
> ... but the Internet Explorer and the second Experiment fire up at the same time.

Not on my system. Start of the 2nd script is properly delayed until the iexplore.exe process shuts down.

Topher Hübel
Topher Hübel
Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)
Group: Forum Members
Posts: 12, Visits: 28
Weird. I shut down my computer and started it again today. Now it's working properly.

Thank you for your help!
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Strange indeed. If this happens again, perhaps use a different browser than IE that's available on your system (e.g. Firefox, Chrome). Calling those via the command line basically works the same.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search