toggle quoted messageShow quoted text
@Albert, for my use it is not a problem since those dialogs report as as app owner the app that have invoked them... In NotePad, press Ctrl+o to display the open file window and you can see the app in execution is still NotePad...
So, my script will say: You must be in a Windows File Explorer window...
@Robert, do you need to get the file selected in one of those open/save dialogs invoked by one specific app or from a dialog invoked by your script?
I have created an open file dialog to one of my add-ons in development and I can get the full path of selected file...
Às 14:23 de 15/09/2021, Robert Hänggi escreveu:
Alberto, I would wish that there was a similar procedure for the
WXWidgets has a (user) window message that can give you the currently
selected file, however, I wasn't successful in sending it from
"outside" the process.
There was also a procedure described on the AutoIt forum which works
essentially with the DropTarget interface.
It needed a dll from that forum which made it less attractive and the
code is quite complicated.
Unfortunately, I can't find it anymore.
On 15/09/2021, Alberto Buffolino <firstname.lastname@example.org> wrote:
Robert Hänggi, il 15/09/2021 09.49, ha scritto:
I think the code is also used in the column review add-on for e.g.Alberto:
searching for files.
yeah, and it still works very well today, thanks to your suggestion and
other valuable contributions from here :)
For Rui, be careful, this approach does not work in all contexts, surely
not in open dialog window; not very important for you, I think, but you
could want to warn users about it (I did it in ColumnsReview).