also specify the exe path
This commit is contained in:
parent
d3ec409f18
commit
343b00ceef
@ -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,
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user