I need to run a right click windows context item and have the script being run pick up the url of active explorer window to be passed into script execution.
I have already created entries and updated the registry with a .bat and can make the script work if the user copies the address of the active window to the clipboard and then right clicks inside of the active folder and chooses the item from the menu. From research I have done, I do not seem to be able to find a way to do what I want with Python so far. I thought I might use psutils, but this has not proven useful, but I believe this may be due to out of date module, which I am updating.
I expect the user to just be able to right click in the folder and run the script without having to copy the explorer address to the clipboard first, so any pointers towards a better way to get the url will be welcome.