You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use win_wait to find a window that has a comma in it's title. It can't seem to find the window and for some reason it never returns a timeout error.
from ahk import AHK
ahk = AHK()
try:
win = ahk.win_wait(title='comma,.txt - Notepad', timeout=5) # this part never returns anything
print('Window found') #unreached code
except TimeoutError:
print('Notepad was not found!') #unreached code
It could just be an AHK issue. I looked at the method definition and it looks clean, but I could be missing something.
The text was updated successfully, but these errors were encountered:
I believe this is a bug. The title is not properly escaped in the win_wait implementation resulting in a malformed script where the arguments do not get injected as intended.
To workaround this bug in v0.x, you can escape manually the comma with a tilde:
I am trying to use win_wait to find a window that has a comma in it's title. It can't seem to find the window and for some reason it never returns a timeout error.
It could just be an AHK issue. I looked at the method definition and it looks clean, but I could be missing something.
The text was updated successfully, but these errors were encountered: