当前位置: 动力学知识库 > 问答 > 编程问答 >

Python - Get Path of Selected File in Current Windows Explorer

问题描述:

I am trying to do this in Python 2.7. I have found an answer for it in C# here, but I am having trouble recreating it in Python. The answer suggested here does explain the concept which I understand, but I have no idea how to get it going.

Basically I just want to mark a file, press Winkey+C and have its path copied. I know how to do the hotkey part (pyhk, win32 [RegisterHotKey]), but my trouble is working around with the filepath.

Thanks in advance!

网友答案:

Sorry but what you are trying to achieve does not make much sense because you can have multiple Explorer Windows with files selected in them, multiple displays and even multiple terminal Sessions running on the same machine.

分享给朋友:
您可能感兴趣的文章:
随机阅读: