Тема: AHK: Рабочая папка скрипта с GUI
Имеется скрипт, который при перетаскивании в него файла1 создает файл2.
gui, add, text, y+20 w400, Drop files here.
gui, add, edit, readonly w400 h80 vstatus
gui, show,,50i
return
GuiDropFiles:
gui, submit, nohide
FileAppend, test, test.txt
Return
GuiClose:
GuiEscape:
ExitAppКак сделать так, чтобы он создавал файл2 в папке из которой мы переносим файл1?
Пока на ум приходит такое решение:
gui, add, text, y+20 w400, Drop files here.
gui, add, edit, readonly w400 h80 vstatus
gui, show,,50i
return
GuiDropFiles:
gui, submit, nohide
Loop, parse, A_GuiControlEvent, `n
SplitPath, A_LoopField,, Dir
SetWorkingDir, %Dir%
FileAppend, test, test.txt
Return
GuiClose:
GuiEscape:
ExitAppМожет можно проще?

