Set Mouse Position
Dear all
In occasions, I need to set the position of the mouse to a certain location in the screen. I noticed that Vizard has some functions for getting mouse position. But I couldn't find anything for setting mouse position. I know that there are other libraries such as ctypes and win32api that you can use for setting the mouse position. I am wondering whether there is anything implemented in Vizard. Very many thanks. Greetings :-) Amir |
Try the following:
Code:
import viz |
Hi Jeff
Very many thanks for the code. What is the difference between your code and simply using the following code as you also use win32api? win32api.SetCursorPos((int(x), int(y))) This is a nice piece of code demonstrating it Code:
import win32api Amir |
All times are GMT -7. The time now is 08:10 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC