Im trying to use PyAutoIt to select a file and hit "open", but it is not writing the full path to the file, just the fila nema and extension, and because by default the file manager doesn't start in the directory the file is in, i get an error saying the file doesn't exist.
Hi!
Im trying to use PyAutoIt to select a file and hit "open", but it is not writing the full path to the file, just the fila nema and extension, and because by default the file manager doesn't start in the directory the file is in, i get an error saying the file doesn't exist.
Can someone help ?
handle = "[CLASS:#32770; TITLE:Open]" autoit.win_wait(handle, 60) autoit.control_set_text(handle, "Edit1", 'C:\\codigos\\TCBot\\LastIdeaCropped.png') autoit.control_click(handle, "Button1")