Script don't work if explorer is running in separate process

Get help with using AutoHotkey and its commands and hotkeys
vsub
Posts: 406
Joined: 29 Sep 2015, 03:39

Script don't work if explorer is running in separate process

31 Aug 2019, 04:30

The option is Folder Options=>View=>Launch folder windows in separate process
It is preventing this script from working

Code: Select all

for Explorer in ComObjCreate("Shell.Application").Windows
{
Folder := Explorer.Document.SelectedItems
Selected := Explorer.Document.SelectedItems.Item.Path
}
For Item in Folder
Selected := Item.Path
Is there is any way to make it work
The point of the script is,if I select a folder and run the script,the script will send the folder path to a program and if I don't select anything,the script will send the current folder to a program
I don't want to use the clipboard so the only other way is ComObj but it is not working because of that option

Return to “Ask For Help”

Who is online

Users browsing this forum: AHKStudent, BNOLI, coccosoids, F4Jonatas, Gavnar, Loop, Micromegas and 183 guests