![]() Every 25ms, the mouse coordinates are logged as attributes, along with a timestamp. Inside the loop, the current time is constantly monitored. The InLine script contains a loop that will run until a response is received. The TextDisplay is configured with a '0' Duration so that InLine script will execute during the object. Mp_out.y = ((mp_out.This sample experiment illustrates how to continuously log mouse coordinates.Ī 'TextDisplay' object is presented and the participant is asked to estimate the location of a previous stimulus. ![]() Mp_out.x = ((mp_out.x * (nVirtualWidth - 1)) - (nVirtualLeft * 65536)) / nVirtualWidth Mp_in.x = pt.x & 0x0000FFFF //Ensure that this number will pass through.Ĭpt = GetMouseMovePointsEx(&mp_in, &mp_out, 64, mode) Int nVirtualTop = GetSystemMetrics(SM_YVIRTUALSCREEN) Int nVirtualLeft = GetSystemMetrics(SM_XVIRTUALSCREEN) Int nVirtualHeight = GetSystemMetrics(SM_CYVIRTUALSCREEN) Int nVirtualWidth = GetSystemMetrics(SM_CXVIRTUALSCREEN) Then, for each point that is returned from GetMouseMovePointsEx, perform the following transform: GetSystemMetrics to get the following values: These situations can occur if multiple monitors are present.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |