The actual thing I did and want to do:
I have a autohotkey script
1.ahkthat do something with directory, something like:#Requires Autohotkey v2.0 if(A_Args.length > 0){ srcFolderPath := A_Args[1] DoSomethingWithPath(srcFolderPath) }I add a custom contextmenu item (windows 10) for it in
HKCR\Directory\shell\DoThing\command, the value is"C:\App\AutoHotkey.exe" "C:\Script\1.ahk" "%1", then when I select a folderfolder1then right click and chooseDoThing,1.ahkis called and received the full path offolder1as argumentHowever when I select multiple folders
folder1...folder99then right click and selectDoThing,1.ahkis called 99 times, there're possible 99 overwrite/readonly warning which I wanto avoid[Goal] I want
1.ahkto receive an array of arguments that contains 99 path strings instead of call1.ahk99 times when I select 99 folders and clickDoThing, change1.ahkto#Requires Autohotkey v2.0 if(A_Args.length > 0){ srcFolderPathArray := A_Args DoSomethingWithPathArray(srcFolderPathArray) }
If possible I want avoid method like "99 instances write to temp.txt and 1.ahk read it"
Or is it possible to pass all arguments as array in the beginning?
Thanks for any help of advice