问题描述:

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.

相关阅读:
Top