I would like to select some files on my desktop and then using python script(that will be launched by keyboard combinatoion pressing) get path of all selected files.
I know how to trigger the script by key combination press ,but I have a problem with files path
Any help will be appreciated
I understand pyHook just reads the low level keyboard events. What you want to do is not possible with your approach. You need to get the Windows Explorer to actually tell you the paths you want to know, it needs to invoke the script itself. For this you need shell extension. You can use pywin32 to create them in Python. Here's the documentation to get you started.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With