Skip to content

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

@SirPigari

Description

@SirPigari

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions