labvanced logoLabVanced
Contact
    • Remote Physiological Measurements
    • Eye Tracking
    • Head & Face-Tracking
    • Emotion Detection
    • Heart Rate Detection (rPPG)
    • Generative AI
    • Audio Transcription
    • EEG & Hardware Integrations
    • Decision Making
    • Reaction Times
    • Keyboard Inputs
    • Mouse Tracking
    • Mobile / Touch
    • Questionnaires
    • Gamepad / Joystick Integration
    • Audio Recordings
    • Audio Transcription
    • Video Recordings
    • Screen Recordings
    • Photos / Snapshots
    • Video Conferencing
    • Canvas Drawings
    • Build with AI
    • Build with Spreadsheets
    • Using the Experiment Editor
    • Coding
    • Creating Questionnaires
    • Balancing & Randomization
    • UX & Website Testing
    • Single Session Studies
    • Factorial Designs
    • Longitudinal & Multi-session Studies
    • Individual & Case Studies
    • Real-time Multi-user Studies
    • Interviews & Video Calls
    • Surveys & Questionnaires
    • Experience Sampling & Diaries
    • Classroom & Group Testing
    • Interventions & Clinical Trials
    • In the Browser
    • Mobile App
    • Desktop App
    • WebBridge Chrome Extension
    • Stroop Test
    • Flanker Task
    • N-back Task
    • Implicit Association Test
    • Trail Making Test
    • Digit Span
    • Corsi Block Tapping
    • Tower of London
    • Balloon Analog Risk Task
    • Preferential Looking
    • Browse more →
    • DASS-21
    • GAD-7
    • Rosenberg Self-Esteem Scale
    • PHQ-9
    • Ten-Item Personality Inventory
    • Big Five Personality Test
    • Adult ADHD Self-Report Scale
    • Browse more →
    • Building a Multi-user Study
    • Webcam Eye Tracking with AOIs
    • Website Frame Eye Tracking
    • Conditional Eye Tracking Opt-in
    • ChatGPT Study
    • Desktop App Study with EEG
    • Between-subjects Group Balancing
    • Building a Reading Study
    • Stroop Task
    • Lexical Decision Task
    • Browse more →
    Public Experiment Library
    • Arts Research
    • Clinical Psychology & Neuropsychology Medicine
    • Cognitive Psychology
    • Developmental Psychology
    • Behavioral Economics & Decision Science
    • Educational Research & Psychology
    • HCI & Human Factors
    • Linguistics & Language Sciences
    • Consumer & Marketing Research
    • Social & Personality Psychology
    • Sport & Movement Science
    • UX & Website Testing
    • Executive Functions
    • Language & Reading
    • Decision-Making & Reasoning
    • Attention
    • Overview
    • HCI & Human Factors
    • UX & Website Testing
    • Consumer & Marketing Research
    • White-Label App
    • PageGazer
    • Webcam vs. Lab Eye Tracking in InfantsAnna Banki & Gabriela Markova
    • Eye Tracking for Influencer MarketingDr. Alexander Edeling
    • Eye Tracking Infant Word ComprehensionDr. Giulia Calignano
    • Sentence Reading and Grammar JudgmentsDr. Jonathan Mirault
    • Regulating Emotions with MusicDr. Katrin Starcke
    • Game-Based Grammar Learning in ChildrenDr. Mireia Marimon
    • Gaze Cueing and AutismMax Soares Miehstein
    • Personality and Hearing in NoiseDr. Malte Wöstmann
    • All interviews →
    • Lab Notes
    • How to Cite Labvanced
    • Labvanced Platform Paper (2017)
    • Webcam Eye Tracking Validation (2024)
    • Webcam Eye Tracking Studies
    • Cognitive Psychology Studies
    • Developmental Psychology Studies
    • Linguistics Studies
    • See all publications →
    • Getting Started
    • Guide
    • Video Tutorials
    • Walkthroughs
    • Live Chat
    • Webinars & Onboarding Calls
    • AI Assistant
    • FAQ
    • Importing Templates Guide
    • Test Templates
    • Live Eye Tracking Metrics
    • Mouse Tracking Demo
    • ChatGPT Demo
    • Audio Recording Object Demo
    • Adding Image Stimuli Demo
    • Score & Feedback Demo
    • Browse all technical demos →
    • Timing Precision
    • Stimuli Presentation
    • Headphone Checks
    • Bot Checks
    • Participant Management
    • Comparisons
    • Research Blog
    • Prolific Integration
    • CloudResearch Integration
    • Sona Systems Integration
    • BeSample Integration
    • Panelabs Integration
    • Clickworker Integration
    • Labvanced Webhook API
    • Labvanced REST API
    • About Us
    • Newsletter Archive
    • Terms & Conditions
    • Data Security & Data Privacy
    • Technical & Organisational Measures
    • Accessibility
    • W-8BEN-E Form
    • Data Processing Agreement Template
    LinkedInYouTubeDiscord
    • Individual
    • Lab
    • Department / Consortium
    • Teaching
    • Campus
    • Commercial
    • Browse recording top-ups →
    • Browse AI token top-ups →
    • Overview
    • Study Building
    • Subject Recruitment
    • Dedicated Support
    Checkout
  • Contact
    • EN
      • 中國人
      • Deutsch
      • Français
      • Español
      • English
      • 日本語
    • Logout
    • Loginlogin icon
    Platform
    Labvanced makes it easy to implement the most advanced study design and reliably collect your data.
    Biosignals & AI
    Remote Physiological MeasurementsEye TrackingHead & Face-TrackingEmotion DetectionHeart Rate Detection (rPPG)Generative AIAudio TranscriptionEEG & Hardware Integrations
    Behavioral Recordings
    Decision MakingReaction TimesKeyboard InputsMouse TrackingMobile / TouchQuestionnairesGamepad / Joystick Integration
    Media Recordings
    Audio RecordingsAudio TranscriptionVideo RecordingsScreen RecordingsPhotos / SnapshotsVideo ConferencingCanvas Drawings
    Implementation Techniques
    Build with AIBuild with SpreadsheetsUsing the Experiment EditorCodingCreating QuestionnairesBalancing & RandomizationUX & Website Testing
    Study Formats

    Your study can take whatever format your research needs. Here are a few popular examples.

    Single Session StudiesFactorial DesignsLongitudinal & Multi-session StudiesIndividual & Case StudiesReal-time Multi-user StudiesInterviews & Video CallsSurveys & QuestionnairesExperience Sampling & DiariesClassroom & Group TestingInterventions & Clinical Trials
    Where Studies Run

    Run your study online in the browser, on mobile or tablet with the mobile app, or in-lab with the desktop app.

    In the BrowserMobile AppDesktop AppWebBridge Chrome Extension
    Tests
    Explore cognitive tests, questionnaires, walkthroughs, and our public experiment library: a starting point for your next study.
    Popular Cognitive Tests
    Stroop TestFlanker TaskN-back TaskImplicit Association TestTrail Making TestDigit SpanCorsi Block TappingTower of LondonBalloon Analog Risk TaskPreferential Looking
    Browse more →
    Questionnaires & Scales
    DASS-21GAD-7Rosenberg Self-Esteem ScalePHQ-9Ten-Item Personality InventoryBig Five Personality TestAdult ADHD Self-Report Scale
    Browse more →
    Public Experiment Library

    Take a look at what other researchers in the community are doing through our extensive, open catalog of shared studies.

    Open the public library →
    Walkthroughs

    Step-by-step builds of complete studies, from a blank project to a running experiment, that you can follow along or adapt.

    Building a Multi-user StudyWebcam Eye Tracking with AOIsWebsite Frame Eye TrackingConditional Eye Tracking Opt-inChatGPT StudyDesktop App Study with EEGBetween-subjects Group BalancingBuilding a Reading StudyStroop TaskLexical Decision Task
    Browse more →
    Research
    One platform for students, academics, and industry researchers studying human behavior.
    Harvard UniversityStanford UniversityCambridge UniversityUCLNYUMax Planck InstituteUCLATU Munich

    Trusted by researchers at 1,500+ universities worldwide

    Academic Research
    Arts ResearchClinical Psychology & Neuropsychology MedicineCognitive PsychologyDevelopmental PsychologyBehavioral Economics & Decision ScienceEducational Research & PsychologyHCI & Human FactorsLinguistics & Language SciencesConsumer & Marketing ResearchSocial & Personality PsychologySport & Movement ScienceUX & Website Testing
    Research Areas
    Executive FunctionsLanguage & ReadingDecision-Making & ReasoningAttention
    Industry / Commercial
    OverviewHCI & Human FactorsUX & Website TestingConsumer & Marketing ResearchWhite-Label AppPageGazer
    Researcher Interviews

    Conversations with researchers about the studies they ran with Labvanced, what worked, and what they learned.

    Webcam vs. Lab Eye Tracking in InfantsAnna Banki & Gabriela MarkovaEye Tracking for Influencer MarketingDr. Alexander EdelingEye Tracking Infant Word ComprehensionDr. Giulia CalignanoSentence Reading and Grammar JudgmentsDr. Jonathan MiraultRegulating Emotions with MusicDr. Katrin StarckeGame-Based Grammar Learning in ChildrenDr. Mireia MarimonGaze Cueing and AutismMax Soares MiehsteinPersonality and Hearing in NoiseDr. Malte Wöstmann
    All interviews →
    Our Research
    Lab NotesHow to Cite Labvanced
    Peer Reviewed Studies

    A selection of peer-reviewed work built on Labvanced: our own platform and validation papers, and studies by the research community grouped by area. Hundreds more are listed on the full publications page.

    Labvanced Platform Paper (2017)Webcam Eye Tracking Validation (2024)Webcam Eye Tracking StudiesCognitive Psychology StudiesDevelopmental Psychology StudiesLinguistics Studies
    See all publications →
    Resources
    Valuable resources to help you learn the platform, stay updated, and more.
    Documentation
    Getting StartedGuideVideo TutorialsWalkthroughs
    Support
    Live ChatWebinars & Onboarding CallsAI AssistantFAQ
    Templates & Demos

    These are a few popular examples. Browse our guide and a selection of technical demos to get started with implementation.

    Importing Templates GuideTest TemplatesLive Eye Tracking MetricsMouse Tracking DemoChatGPT DemoAudio Recording Object DemoAdding Image Stimuli DemoScore & Feedback Demo
    Browse all technical demos →
    Methodology
    Timing PrecisionStimuli PresentationHeadphone ChecksBot ChecksParticipant ManagementComparisonsResearch Blog
    Integrations & APIs
    Prolific IntegrationCloudResearch IntegrationSona Systems IntegrationBeSample IntegrationPanelabs IntegrationClickworker IntegrationLabvanced Webhook APILabvanced REST API
    Company & Legal
    About UsNewsletter ArchiveTerms & ConditionsData Security & Data PrivacyTechnical & Organisational MeasuresAccessibilityW-8BEN-E FormData Processing Agreement Template
    LinkedInYouTubeDiscord
    Pricing
    Our licenses and additional services at a glance.
    Licenses
    IndividualLabDepartment / ConsortiumTeachingCampusCommercial
    Top-Ups

    Need more recordings for your lab or your own research? Simply use one of these recording top-up packages.

    Browse recording top-ups →

    Need more AI tokens for the AI assistant and study translations? Simply use one of these AI token top-up packages.

    Browse AI token top-ups →
    Additional Services

    Hire Labvanced’s expert team to quickly bring your project to the level of rigor it needs.

    OverviewStudy BuildingSubject RecruitmentDedicated Support
    Checkout

    Ready to purchase a license or top-up? Head straight to checkout.

    Go to checkout →
    • 中國人
    • Deutsch
    • Français
    • Español
    • English
    • 日本語
    • Getting Started
    • Guide
      • GETTING STARTED

        • Task Editor
        • Frames
          • Canvas Frame
          • Page Frame
          • Website Frame
          • Overlays & Dialogs | Labvanced
        • Trial Timeline
        • Stimulus Presentation
        • Correctness of Response
        • Objects
        • Events
        • Variables
        • Task Wizard
        • AI Assistant
        • Trial System
        • Experiment Design
          • Creating a Study
          • Importing Templates in Labvanced
          • Data Frame Patterns
          • Multi-user Experiment Design
          • Longitudinal Experiment Design
      • FEATURED TOPICS

        • Randomization & Balance
        • Eye Tracking
          • Presenting Stimuli in an Eye Tracking Task
          • How to Choose Eye Tracking Calibration Settings
          • Setting Up Eye Tracking in a Task
          • Recording and Exporting Gaze Data
          • Using Shapes as Areas of Interest (AOI) for Eye Tracking
          • The Participant Calibration Experience
        • Web Bridge
          • Selecting Website AOIs | Anchor, Adjust, and Verify AOI Tracking
          • Tracking Mouse Behavior on a Website AOI | Web Bridge Guide
        • Questionnaires
        • Desktop App
        • Sample Studies
        • Participant Recruitment
        • API Access
          • REST API
          • Webhook API
          • WebSocket API
        • Other Topics

          • Precise Stimulus Timings
          • Multi User Studies
          • Head Tracking in Labvanced | Guide
      • MAIN APP TABS

        • Overview: Main Tabs
        • Dashboard
        • My Studies
        • Shared Studies
        • My Files
        • Experiment Library
        • My Account
        • License & Services
      • STUDY TABS

        • Overview: Study-Specific Tabs
        • Study Design
          • Tasks
          • Blocks
          • Sessions
          • Groups
        • Task Editor
          • Task Controls
          • The Trial System
          • Frame Types
          • Objects
          • Object Property Tables
          • Variables
          • System Variables Table
          • The Event System
          • Text Editor Functions
          • Eye Tracking Options in the Task Editor
          • Head Tracking in a Task
          • Multi-User Studies
        • Settings
        • Variables
        • Media
        • Texts & Translate
        • Launch & Participate
        • Subject Management
        • Dataview and Export
    • Video Tutorials
      • Video Overview
      • Getting Started in Labvanced
      • Creating Tasks
      • Element Videos
      • Events & Variables
      • Advanced Topics
    • Walkthroughs
      • Introduction
      • Stroop Task
      • Lexical Decision Task
      • Posner Gaze Cueing Task
      • Change Blindness Flicker Paradigm
      • Eye-tracking Sample Study
      • Infant Eye-tracking Study
      • Attentional Capture Study with Mouse Tracking
      • Rapid Serial Visual Presentation
      • ChatGPT Study
      • Eye Tracking Demo: SVGs as AOIs
      • Multi-User Demo: Show Subjects' Cursors
      • Gamepad / Joystick Controller- Basic Set Up
      • Desktop App Study with EEG Integration
      • Between-subjects Group Balancing and Variable Setup
      • Building a Multi-user Study
      • Website Frame Eye Tracking Walkthrough
      • Conditional Webcam Eye Tracking
      • Text Segmentation Study Building
      • Building a Study with AI
    • FAQ
      • Features
      • Support Policy & Guidelines
      • Security & Data Privacy
      • Licensing
      • Precision of Labvanced
      • Programmatic Use & API
      • Using Labvanced Offline
      • Troubleshooting
      • Study Creation Questions

    Show Subjects' Cursors: Multi-User Demo

    Overview

    In a multi-user experiment where multiple participants are taking part in the experiment in real time, you may want to make their cursors visible to each other. In this demo, we will show you how to set that up.

    Preview of the multi user mouse tracking feature in Labvanced

    Note on Implementation

    Please note that there are several approaches you can implement sharing cursor locations of multiple participants in Labvanced since the platform is flexible and thus it’s important to consider your experimental design before committing to an approach.

    To make this point clear, we will present two approaches for accomplishing this:

    • Approach 1: a demo that utilizes arrays for distributing the cursor position
    • Approach 2: in a section further down, we will discuss a demo where single values for x- and y-coordinates can be used as well

    Approach 1: Cursor Display Using Mouse Tracking and Arrays

    This demo includes two objects (one mouse per user) and are listed on the side panel in the Object panel. This approach can be used for multi-user studies where there are 2+ participants.

    Objects

    Underneath is the Object Properties panel where all visual styling can be handled. Currently, both cursors have a Visibility of 1 (this means opacity =100%) as shown below:

    The cursor objects being added to the Labvanced editor for setting up a multi user study in Labvanced

    For this demo, we will change the Visibility to be 0, as shown below. Later, when the experiment starts, we will make one of the cursors visible. ie, if you are Participant 1, then you will see the cursor object here of Participant 2 and vice versa. This is described under the Event:Init section below.

    Hidding the cursors in Labvanced so that when the multi participant study experiment starts one of the cursor visibility is shown when the experiment starts

    If you don’t want to have two objects for cursors. Refer to this section to see an alternative method with just a single cursor object.

    Custom Variables

    Here we are listing all the custom variables that were created for the purposes of this demo. You can create them in advance or within the editor while building your experiment.

    The variables created in the multiuser study for cursor sharing

    Events Overview

    To add an event click the [+] Frame Event (on this frame only).

    We have the following events in this demo:

    1. Event:Init: Making the other participant’s mouse visible
    2. Event: sendMove: Sending the mouse coordinates
    3. Event: receiveMove: Receiving the mouse coordinates

    Below, the structure for each of the events is described.

    EVENT: init

    This event specifies what will happen when the frame initiates. In this case, our goal is for Participant 1 to see Participant 2’s mouse and vice versa.

    Trigger

    The trigger for the event is On Frame Init because we want to assign the cursor object visibility as soon as the frame initializes.

    The On Frame Init in Labvanced

    Action

    After specifying this and clicking the ‘Next’ button, you can select the actions that will occur upon Frame Initialization.

    Below, we show that the action we use is a Control Action → ‘If… Then’, so:

    • If Role_Id is equal to 1 (Note: Role_Id is a variable that is unique to multi-user studies and assigns the participant their ID).
    • Then, Set Object Property of the mouse_user_2 object’s Visibility to 1.
    • Note: The combination of these two actions essentially means: “If you are Participant 1 (Role_Id==1), then you will see the mouse_user_2 object.”
    • Note: How is the Role_Id == 1 specified in the editor? Refer to the step-by-step section below where this is explained in finer detail.

    specifying that if the Role id of the first participant is 1 then record the mouse tracking data

    Under the Else If section we do the same thing but for participant 2 (Role_Id==2). The target object is mouse_user_1 which should have the Visibility value of 1.

    specifying that if the Role id of the second participant is 2 then record the mouse tracking data

    EVENT: sendMove

    Next, we have to establish a ‘bridge’ between the two participants where if you move your mouse, those values are tracked/stored and sent over to the other participant.

    Trigger

    Thus, the Mouse trigger is used for this event where any ‘Move’ that is being done will trigger the event.

    Indicating that the event trigger is a mouse trigger.

    Actions

    Again, a Control Action → If…Then command is needed:

    indicating that the role id is equal to one

    Record the mouse tracking array and share to other subjects in the multiparticipant study

    Where if your Role_Id==1, then the following Variable Actions take place:

    • Set / Record a Variable: Point / define the variable moveMouse1 and set it to equal to the trigger-specific value of Mouse [X,Y] Array.
    • Distribute Variable: Share this variable with Participant 2.

    Else if, your Role_Id==2 …

    specifying that the role id is equal to two

    Then:

    • The moveMouse2 will record the Mouse [X,Y] Array (just like in the previous example above) but we will use it to store the mouse tracking values of Participant 2 and set it to equal to their Mouse [X,Y] Array.
    • Then, distribute this variable to participant 1.

    Set the mouse tracking to measure the array and coordinate values

    Summary- Up to this point we have:

    • Created variables to store the mouse tracking [X,Y] array of each participant (moveMouse1 for Participant 1’s cursor and moveMouse2 for Participant 2’s cursor)
    • And have established a bridge where the mouse tracking value is sent over to the other participant using the Distribute Variable action.

    EVENT: receiveMove

    Next, we need to specify what will happen with these mouse tracking values. In this case, upon receiving the mouse movements in an array format, we want to change the mouse cursor object to reflect the movements! In other words, using the [X,Y] array, we will bind those values to the mouse cursor so that it essentially moves, showing what the other participant is doing on the screen! Thus, to accomplish this, the trigger and actions described below will be used.

    Trigger

    Since the mouse tracking values are being stored in variables, any time these variables change, it means that the mouse is moving. Thus we can use the Variable Value Changed trigger to update the cursor location on the screen by selecting the two specific variables that hold the mouse tracking values as shown below:

    Setting the trigger if the mouse tracking values change

    Action

    Next we want to use the Select From Array (Read) action in order to fetch the x- and y-coordinate values from the variable arrays of the cursor because we plan on using them to set the coordinates of the object.

    Thus, we select the moveMouse1 variable which has the array of the [X,Y] of participant 1 and call on the first value which was a Fixed Index of 1 and store that value in a numeric variable called x_mouse1 because the x-values are listed 1st in the array.

    Set the mouse tracking array and save the individual values and storing them as variables with x- and y- values

    We add another Select From Array (Read) action and for the Fixed Index write 2 because we want to call on the second array value which are the y-coordinates and store that in the y_mouse1 variable.

    In order to make the cursor image move, we need to update its image coordinates in real time by having it take on the x- and y-values that are equivalent to the x- and y-coordinates from mouse tracking (which we fetched and stored in variables x_mouse1 and y_mouse1 in the actions above).

    To accomplish this, we need to chose the Set Object Property action so that the Target of the mouse_user_1 (in the image below it’s just written as ‘mouse’ because the dialog box shortens the title) and its property X has a value (=) of x_mouse1+5 which is an arithmetic operation. Refer to this step-by-step explanation of how this is set up.

    Set object property of participant one's mouse location to take on the mouse tracking values

    At this point you may be wondering why the +5 appears in the input field… This is because we need to create an offset since this object is actually a text object that includes an embedded image (as described at the beginning of this walkthrough). So, if you need to build your study and have the users see their own customized cursors as we do here but also to click on other objects in the study, then it won’t be possible unless you create this offset (unless you choose to omit the image of the cursor and just keep the text label).

    Moving on, we choose +Add Property and point to the same image object, select the Y property and set it equal to the variable y_mouse1.

    We repeat the same process but just select the other variables which we have dedicated for participant 2:

    Taking the mouse tracking arrays of participant 2 and storing them as single variables for storing x- and y- values of each variable

    Here we point to the object mouse_user_2 and assign the respective variables:

    Using the x- and y-mouse tracking values to update the mouse cursor object to share the location of the mouse cursor location in the multiparticipant study

    Together, all these actions make the two cursor objects move for both participants by reading values from the array variable and then using these numeric values to set the x- and y-values of the object.

    EVENT: end

    Next we create an event to officially end the data recording process and store the data by inserting an ‘end’ button which when it’s used as a trigger it will lead to a Control Action where the Accept/End Session action takes place.

    Trigger

    To end the session, the button trigger is where clicking the End Button will trigger the session to end.

    Indicating the button as a trigger

    Action

    The action is the Accept/End Session.

    End the session

    Again, please note that this demo is for learning purposes and is just one method of many for sharing the mouse and cursor location in a multi-user study setting. Another example of how this effect can be accomplished is described in the upcoming sections.

    Approach 2: Single Variable Approach for Sharing Cursors in Multi-User Studies

    In this other demo, instead of arrays, we show how you have the option of using single values (ie. calling on X- and Y-coordinates directly).

    Preview of a multi user study where there is a mouse cursor location being shared

    Here is a full preview of this demo, including a preview of the data recorded at the end:

    Single Object for the Cursor

    This demo also differs from the previous one in the sense that instead of two objects for the cursor there is only one. This approach is great for multi-user studies that just want to show where the cursor of the ‘opponent’ or ‘teammate’ is located.

    Adding the mouse cursor object to the Labvanced editor for the purpose of a multi participant study

    Custom Variables

    This other demo includes the following custom variables and their specifications. While this demo has less variables, it requires more events / actions being used as opposed to the previous example with arrays.

    Custom variables created for a multi participant

    EVENT: sendMove

    The trigger is the mouse moving:

    The mouse trigger being selected

    The action is to record the trigger-specific values of the mouse’s X-coordinate and Y-Coordinate in two separate variables which are specifically named to indicate participant 1.

    Recording x- and y-values as separate values based on Participant one's mouse tracking

    The next actions under this if/then condition serve to distribute these two values to participant 2.

    Distributing the mouse tracking variable to participant 2 in a multi user study

    Then we add an ‘Else If’ condition to record the trigger-specific values of the mouse’s X-coordinate and Y-Coordinate in two separate variables which are specifically named to indicate participant 2.

    Recording x- and y-values as separate values based on Participant two's mouse tracking

    The next actions are used to distribute these two values to participant 1.

    Distributing the mouse tracking variable to participant one in a multi user study

    EVENT: receiveMove1

    Now we need an event to transmit the mouse coordinates. Thus, if these specific variable values associated with Participant 1 change, they will be used as a trigger:

    Setting that when the mouse tracking variables change, then the trigger

    Then we update the cursor location’s object property to take on these values using an action. In essence, if you are Participant 2, then the Opponent object takes on the coordinates of the variables of Participant 1:

    Setting the cursor property equal to the mouse tracking values

    EVENT: receiveMove2

    We do the same thing here. If you are Participant 1, then the Opponent object takes on the coordinates of the variables of Participant 2:

    The variable values changing of mouse tracking being used as an event trigger

    Setting the mouse cursor values to be equal to the values of participant 2 in a multi user study

    Conclusion

    This demo shows two of the many ways that mouse coordinates can be used to update object properties in order to transmit cursor location in a multi-user study set up. You can use arrays

    Demo Details: Inputting Values Step-By-Step

    If you are still finding your way around Labvanced or just need some extra clarification, the sections below show you, step-by-step, how to implement certain commands and the steps you need to take using the menus to implement them:

    • Specifying Role_ID==1 in a Requirement Action
    • Selecting the Mouse [X,Y] Array to be Recorded in a Variable for Mouse Tracking
    • Using Arithmetic Operations to Set an Object Property

    Specifying Role_ID==1 in a Requirement Action

    In the demo above, this line appears frequently, so how can you get it like that?

    Specifying that the Role id is one

    First +Add Action and selection Control Actions → Requirement Actions (If…Then) because this is the context in how it frequently appears in this demo.

    Selecting the Control Action and specifying the If...Then action

    Next, + Requirement so you can specify the If Condition in greater detail.

    For the first pencil icon (formally known as The Value Select Menu) choose Variable → Select Variable in order to point to the Role_Id variable.

    Selecting a variable

    This will open the Variable menu where all local / global variables are stored. At the top panel, under Global Variables you will find the Role_Id variable. Select it.

    Selecting the Role ID

    Next, on the other pen icon, you need to specify the value of the participant's role id. So, go to Constant Value → Numeric.

    Selecting the constant value

    And simply type in the number 1. Ta-da!

    Role ID is set to 1

    Using Arithmetic Operations to Set an Object Property

    Setting the cursor location is done by using the Set Object Property action, specifying the target object, its property, and then specifying the variable value that is to be used as the new value for the object property.

    Using the object property to call on the values to set it to a mouse cursor

    Select the Object Action:

    Set Object property, selecting the action

    For the Target click the first none and select the first cursor object mouse_user_1 from the list. For the second list of the object properties, select the X option:

    Selecting the mouse user object

    Then, click the pen icon. Choose Operations from the menu and select Arithmetic option:

    Selecting the Arithmetic operations

    Click the first pen icon and choose Variable → Select Variable and a dialog box of the variables will appear from which you can select the x_mouse1 variable:

    Select Variable action

    Then, click the second pen icon and choose Constant Value → Numeric and type in the number 5 in the field that appears.

    Choosing the constant value option

    Because this relates to the demo where the object is a combination of an image plus text, we need to offset the value by 5 points so that the object underneath is clickable:

    Setting the set object property to be equal to the mouse tracking values

    Click the +Add Property underneath and indicate that the y_mouse1 variable will be assigned to the Y object property of the mouse_user_1 object.

    The set object property values in a multi user study using the mouse tracking values

    Prev
    Eye Tracking Demo: SVGs as AOIs
    Next
    Gamepad / Joystick Controller- Basic Set Up