开发者

Using Python COM to select files in windows explorer?

开发者 https://www.devze.com 2022-12-31 14:09 出处:网络
Is it possible using Python COM to select files inside of the windows explorer? For example, I am trying to get all \"*.txt\" files inside of windows explore highlighte开发者_运维百科d without having

Is it possible using Python COM to select files inside of the windows explorer? For example, I am trying to get all "*.txt" files inside of windows explore highlighte开发者_运维百科d without having to select them with the mouse, or without other keyboard gymnastics.

thanks in advance.


I am not sure if this useful for you, but you might be able to register a pyhook module and make it listen to which window you are selecting, once you get the path then you can process it with python listdir()

http://sourceforge.net/apps/mediawiki/pyhook/index.php?title=Main_Page

0

精彩评论

暂无评论...
验证码 换一张
取 消