'Moving mouse in roblox with python
So i tried multiple ways to move the mouse. For example with pyautogui you can move the mouse, but the problem is that it does move the mouse, but not fully. What i mean by that is it only takes the mouse to the position i want it to when i move the mouse slightly by myself. I also tried the win32 api and con version but still the same problem occurs. Any suggestions how to counter this? Here's some code i tried:
def click(x,y):
win32api.SetCursorPos((x,y))
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0)
time.sleep(0.1) #uses time api, to simulate normal input.
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0)
pyautogui.click(x, y)
pyautogui.move(x, y)
pyautogui.click()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
