pydirectinput icon indicating copy to clipboard operation
pydirectinput copied to clipboard

pydirectinput.move(0, -50*100) doesnt work

Open SirPigari opened this issue 1 year ago • 0 comments

this is my code:

if running: check_key(binds["wall"]) for _ in range(4): check_key(binds["place_build"]) move_mouse(80 * sensitivity, 0) time.sleep(0.12) move_mouse(5, -50 * sensitivity) check_key(binds["cone"]) check_key(binds["place_build"]) check_key(binds["floor"]) check_key(binds["place_build"]) move_mouse(0, 50 * sensitivity) # Move mouse up by 50px check_key(binds["floor"]) check_key(binds["place_build"]) check_key(binds["cone"]) check_key(binds["place_build"]) move_mouse(0, 50 * sensitivity) # Move mouse down by 50px move_mouse(0, 50 * sensitivity) # Move mouse down by 50px again

the move_mouse is:

def move_mouse(x, y): pydirectinput.move(x, y)

the for loop runs only one and then it doesnt move (the loop continues but it doesnt move)

SirPigari avatar Nov 23 '24 20:11 SirPigari