开发者

Using Python COM to select files in windows explorer?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜