You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a script that needs to be triggered by each scroll up and down.
mode = int(mode)
if mode == 1:
a_key = 1
b_key = #scroll down
elif mode == 2:
a_key = -1
b_key = #scroll up
else:
sys.exit()
while True:
if keyboard.is_pressed(key)
while a < 30:
mouse.wheel(a_key)
time.sleep(1)
if |**scroll detect**| (b_key)
while a < 30:
mouse.wheel(a_key)
time.sleep(1)
The full script looks like this
I want to detect the top and bottom at this "Scroll detect" part.
Since it is not allowed to scroll in the same direction as a_key, we can use other modules than the mouse module, but we prefer the mouse module as much as possible.
Please help me.
The text was updated successfully, but these errors were encountered:
I am writing a script that needs to be triggered by each scroll up and down.
The full script looks like this
I want to detect the top and bottom at this
"Scroll detect"
part.Since it is not allowed to scroll in the same direction as
a_key
, we can use other modules than the mouse module, but we prefer the mouse module as much as possible.Please help me.
The text was updated successfully, but these errors were encountered: