![]() |
|
#3
|
|||
|
|||
|
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
import time
import math
for i in range(100):
x = 500+math.sin(math.pi*i/100)*500
y = 500+math.cos(i)*100
win32api.SetCursorPos((int(x), int(y)))
time.sleep(.1)
Amir |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mouse bug in V3 and V4 | Renato Lima | Vizard | 2 | 05-11-2011 07:38 PM |
| Mouse event: how to detect no mouse move event, how to set mouse position? | Zhi | Vizard | 3 | 04-11-2011 07:25 PM |
| how to remove velocity when mouse is disabled? | jvacare1 | Vizard | 2 | 02-18-2010 11:25 AM |
| Navigating an avatar using mouse position(2D) in 3D environment | james007 | Vizard | 1 | 10-16-2009 12:29 PM |
| set mouse position | AlyssaK | Vizard | 1 | 01-28-2009 05:05 PM |