jacexh / pyautoit

Python binding for AutoItX3.dll
MIT License
266 stars 74 forks source link

It´s only writing the filename.ext on file manager, not the full path. #33

Open cesarbhering opened 4 years ago

cesarbhering commented 4 years ago

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")

image

HWolfW commented 4 years ago

Does the open box start with anything in the Edit1 field when it opens or is it blank at first?