Compare commits
2 commits
118b284f80
...
3d20c3b5a9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d20c3b5a9 | ||
|
|
2941857bcf |
|
|
@ -1,3 +1,4 @@
|
||||||
|
from typing import Callable
|
||||||
import pynput.keyboard as keyboard
|
import pynput.keyboard as keyboard
|
||||||
import pynput.mouse as mouse
|
import pynput.mouse as mouse
|
||||||
from secrets import randbelow
|
from secrets import randbelow
|
||||||
|
|
@ -74,6 +75,23 @@ def full_setup():
|
||||||
click_at(position_open_divine_charge)
|
click_at(position_open_divine_charge)
|
||||||
random_sleep_between(100,200)
|
random_sleep_between(100,200)
|
||||||
click_at(position_select_all_divine_charge)
|
click_at(position_select_all_divine_charge)
|
||||||
|
random_sleep_between(100,200)
|
||||||
|
click_at(position_bank_chest_after)
|
||||||
|
random_sleep_between(1_800, 2_200)
|
||||||
|
k.tap('1')
|
||||||
|
|
||||||
|
def add_keybind(keybind: str | Key, action: Callable):
|
||||||
|
def on_release(key):
|
||||||
|
try:
|
||||||
|
if key == keybind:
|
||||||
|
action()
|
||||||
|
else:
|
||||||
|
if key.char == keybind:
|
||||||
|
action()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
random_sleep_between(2_000, 3_000)
|
keyboard.Listener(on_release=on_release).start()
|
||||||
full_setup()
|
|
||||||
|
while True:
|
||||||
|
time.sleep(1000)
|
||||||
Loading…
Reference in a new issue