Тема: AHK: Реализация в GUI технологии D&D
Приветствую.
Есть ли возможность создать GUI-окна/интерфейса с поддержкой Drag-and-drop?
Я давно это делал, но не могу вспомнить как это реализовал, а код утерян.
В справке нашёл
GuiDropFiles: Launched whenever files/folders are dropped onto the window as part of a drag-and-drop operation (but if the label is already running, drop events are ignored). The following built-in variables are available within GuiDropFiles:
1. A_GuiControl, which contains the text or variable name of the control upon which the files were dropped (blank if none).
2. A_EventInfo and ErrorLevel, which both contain the number of files dropped.
3. A_GuiX and A_GuiY, which contain the X and Y coordinates of where the files were dropped (relative to the window's upper left corner).
4. A_GuiEvent, which contains the names of the files that were dropped, with each filename except the last terminated by a linefeed (`n).
Там и примеры есть, но у меня не получается их повторить.
Мне нужно в окно перетащить ярлык и запомнить его параметры... примеры есть, но они, после модификации, не срабатывают как мне надо.
Мне на кнопки-шаблоны надо поместить ярлык, а далее сделать так что бы кнопка запускала приложение.
Подскажите, может нужно создать окно с определёнными свойствами?
Я чего-то не понимаю.
OS Windows 10 x64 Pro(AutoHotkey v1.1.37.02)