<div dir="ltr">Matt,<div><br></div><div>There are no significant differences between the version 1 and version 2 scripts. The line numbering could be slightly different, so apply the following rules if the numbers are not clear: </div>
<div><br></div><div>- The Dim statements can be placed at the start of the DragScale function. Typically below the other Dim statements.</div><div>- The two initialization lines should be placed before the while-loop. For example, just before the Mouse.SetCursorPos line.</div>
<div>- The third part should be placed at the end of the while-loop. I.e., before <i>Wend</i>.</div><div><br></div><div>Best</div><div>Paul</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 5 May 2014 16:58, Matt Riddle <span dir="ltr"><<a href="mailto:matthewpriddle@gmail.com" target="_blank">matthewpriddle@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If I'm working with the Eprime 1 version of this, could I just in theory take the lines from the package and insert them inline in the eprime 1 script? <br>
<br>Thanks, <br><br>-Matt<br><br>On Monday, May 5, 2014 3:57:39 AM UTC-4, Paul Groot wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi Matt,</span><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">I think that would be possible by modifying the DragScale function in the VAS.epk2 package. A while-loop is used in this function to refresh the needle when it is moved around. It's not very difficult to add a few lines that will save the needle position periodically. The modified attachment should do something like that. The 1-sec positions are now saved as attribute with incremental suffix (xyz.1, xyz.2 etc.). Another option would be to force logging at each interval by inserting a call to c.Log. In that case it is not required anymore to add the suffix, so all results would be inserted into the same xyz column of the output file. However, you will get more rows instead of columns.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Best</div><div style="font-family:arial,sans-serif;font-size:13px">Paul</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">P.S. These are the inserted lines:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div><div><font face="arial, sans-serif"><i>line 10+11:</i></font></div>
<div><font face="courier new, monospace">Dim lSavePosAt As Long ' next time to save position</font></div><div><font face="courier new, monospace">Dim lSavePosCount As Integer ' counter to</font></div><div>
<font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><i>line 41+42:</i></font></div><div><div><font face="courier new, monospace">lSavePosAt = Clock.ReadMillisec + 1000 ' save position every second</font></div>
<div><font face="courier new, monospace">lSavePosCount = 0</font></div><div style="font-family:arial,sans-serif"><br></div><div style="font-family:arial,sans-serif"><i>lines 133-141:</i></div><div><div><font face="courier new, monospace"> If Clock.ReadMillisec>=lSavePosAt Then</font></div>
<div><font face="courier new, monospace"> lSavePosAt = lSavePosAt + 1000</font></div><div><font face="courier new, monospace"> lSavePosCount = lSavePosCount + 1</font></div><div><font face="courier new, monospace"> percent = 100*((ptPress.X-VAS_<u></u>SliderDummy.Left)/sw)</font></div>
<div><font face="courier new, monospace"> If percent<0 Then percent = 0</font></div><div><font face="courier new, monospace"> If percent>100 Then percent = 100</font></div><div><font face="courier new, monospace"> ' save the percent value</font></div>
<div><font face="courier new, monospace"> c.SetAttrib attributeName & "." & CStr(lSavePosCount), percent</font></div><div><font face="courier new, monospace"> End If</font></div></div><div style="font-family:arial,sans-serif">
<br></div><div style="font-family:arial,sans-serif"><br></div></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">...</font></div>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div></div><div><br><br><div class="gmail_quote">On 3 May 2014 17:00, Matt Riddle <span dir="ltr"><<a>matthew...@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <br><br>I'm fairly new to anything beyond basic ePrime functions, so I apologize if this seems like a simple question. <br>
<br>I'd like to implement some form of Paul Groot's visual analog scale, but what I would like eprime to do is record the position on the scale every second or so. <br>So let's say the participant was letting his mind wander, and was continuously moving the scale up and down according to how they were feeling, and then<br>
having ePrime log wherever the indicator is on the scale. What would be the easiest way to go about doing this? I don't know if the scale treats the indicator<br>as a mouse cursor or what, so I'm a little clueless what to do. <br>
<br>Thanks in advance for your help! <br><span><font color="#888888"><br>-Matt <br></font></span></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a>e-prime+u...@<u></u>googlegroups.com</a>.<br>
To post to this group, send email to <a>e-p...@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/4379bc47-ef57-4d31-be0d-85e78682c9dd%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/<u></u>msgid/e-prime/4379bc47-ef57-<u></u>4d31-be0d-85e78682c9dd%<u></u>40googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/<u></u>optout</a>.<br>
</font></span></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/ad0961dd-6833-4339-89bd-07b7107bb334%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/e-prime/ad0961dd-6833-4339-89bd-07b7107bb334%40googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</font></span></blockquote></div><br></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@googlegroups.com">e-prime+unsubscribe@googlegroups.com</a>.<br />
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com">e-prime@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/CAKAdR-uDBYw3zMzCCWEeMXUa7TkiAH-05ovy6xjk6Oe68PN5fw%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/e-prime/CAKAdR-uDBYw3zMzCCWEeMXUa7TkiAH-05ovy6xjk6Oe68PN5fw%40mail.gmail.com</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />