also specify the exe path

This commit is contained in:
Oliver Hartmann 2023-01-06 01:35:29 +01:00
parent d3ec409f18
commit 343b00ceef
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ General:
log_level: 'DEBUG' log_level: 'DEBUG'
after_sendkeys_key_wait: 0.001 # Amount of seconds to wait after a keypress. Default is 0.01 after_sendkeys_key_wait: 0.001 # Amount of seconds to wait after a keypress. Default is 0.01
poe_window_title: 'Path of Exile' poe_window_title: 'Path of Exile'
poe_path: 'D:\\SteamLibrary\\steamapps\\common\\Path of Exile\\PathOfExileSteam.exe'
Chat: Chat:
# Define chat messages with the following placeholders: # Define chat messages with the following placeholders:
# message, date, channel, user, guild, to_from, item, amount, currency, tab, row, col, league, # message, date, channel, user, guild, to_from, item, amount, currency, tab, row, col, league,

View File

@ -8,7 +8,7 @@ from src import config
def send_text(text: str) -> None: def send_text(text: str) -> None:
app = Application() app = Application()
try: try:
app.connect(title=config.conf['General']['poe_window_title']) app.connect(title=config.conf['General']['poe_window_title'], path=config.conf['General']['poe_path'])
except ElementNotFoundError: except ElementNotFoundError:
data.log.warning(f'Window Title "{config.conf["General"]["poe_window_title"]}" not found') data.log.warning(f'Window Title "{config.conf["General"]["poe_window_title"]}" not found')
return return