strHit returnings blank value
I have received code from another lab (that works on their computer) to run a task that accepts mouse clicks as the answer and then it is meant to check those cursor coordinates with a subobject on the previous slide to see if the participant clicked within a particular area. In the inline code, it passes strHit the mouse x,y coordinates. However, on my computer, strHit returns a blank value and I can't figure out how to debug why. Does anyone know why the HitTest would return a blank?
The code is as follows:
Dim theState As SlideState
Set theState = Instruction5.States("Default")
Dim ptMouse As Point
Dim strHit As String
Mouse.GetCursorPos ptMouse.x, ptMouse.y
strHit = theState.HitTest(ptMouse.x, ptMouse.y)
You might find more help at the E-Prime Google Group, groups.google.com/group/e-prime.
Please sign in to leave a comment.