Fixed some deprecated calls

This commit is contained in:
Oliver Hartmann 2021-03-14 18:43:54 +01:00
parent 6f5cbcc23a
commit 3a3433d571

View File

@ -7,9 +7,9 @@ from src import config
def send_text(text: str) -> None:
app = Application()
app.connect(title='Path of Exile')
win = app.window_(title_re='Path of Exile')
win = app.window(title_re='Path of Exile')
text = escape_mods(text)
win.TypeKeys('{ENTER}^A{DELETE}' + text + '{ENTER}', with_spaces=True, pause=config.conf['General']['after_sendkeys_key_wait'])
win.type_keys('{ENTER}^A{DELETE}' + text + '{ENTER}', with_spaces=True, pause=config.conf['General']['after_sendkeys_key_wait'])
def escape_mods(text: str) -> str: