Fixed some deprecated calls
This commit is contained in:
parent
6f5cbcc23a
commit
3a3433d571
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user