WorldViz User Forum

WorldViz User Forum (
-   Vizard (
-   -   manually set mouse cursor position (

sskalicky 08-17-2018 10:28 AM

manually set mouse cursor position

I'm designing an experiment where the user picks an object with the mouse to initiate a trial. I'd like to reset the mouse cursor to the center of the screen before the start of a new trial, but I can't seem to find a way to set the position. Any help?

Jeff 08-18-2018 09:21 AM

Here's some example code:


import viz
import vizact
import win32api


def setCursorCenter():
vizact.onkeydown(' ',setCursorCenter)

sskalicky 08-20-2018 07:41 AM

Many thanks Jeff!

All times are GMT -7. The time now is 11:56 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC