also specify the exe path
This commit is contained in:
parent
d3ec409f18
commit
343b00ceef
@ -3,6 +3,7 @@ General:
|
||||
log_level: 'DEBUG'
|
||||
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_path: 'D:\\SteamLibrary\\steamapps\\common\\Path of Exile\\PathOfExileSteam.exe'
|
||||
Chat:
|
||||
# Define chat messages with the following placeholders:
|
||||
# message, date, channel, user, guild, to_from, item, amount, currency, tab, row, col, league,
|
||||
|
@ -8,7 +8,7 @@ from src import config
|
||||
def send_text(text: str) -> None:
|
||||
app = Application()
|
||||
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:
|
||||
data.log.warning(f'Window Title "{config.conf["General"]["poe_window_title"]}" not found')
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user