multiclipboard

Here’s what the program does:
• The command line argument for the keyword is checked.
• If the argument is save, then the clipboard contents are saved to the
keyword.
• If the argument is list, then all the keywords are copied to the clipboard.
• Read the command line arguments from sys.argv.
• Read and write to the clipboard.
• Save and load to a shelf file.

#! python3
# mcb.pyw - Saves and loads pieces of text to the clipboard.
# Usage: py.exe mcb.pyw save <keyword> - Saves clipboard to keyword.
# py.exe mcb.pyw <keyword> - Loads keyword to clipboard.
# py.exe mcb.pyw list - Loads all keywords to clipboard.
import shelve, pyperclip,sys
mcbShelf = shelve.open('mcb')
#TODO: save clopboard content
#TODO: list keywordsand load content
# save clopboard content
if len(sys.argv) == 3 and sys.argv[1].lower()=='save':
    mcbShelf[sys.grgv[2]] = pyperclip.paste()
elif len(sys.argv)==2:
    #TODO: list words and load content
    if sys.argv[1].lower()=='list':
        pyperclip.copy(str(list(mcbShelf.keys())))
    elif sys.argv[1] in mcbShelf:
        pyperclip.copy(mcbShelf[sys.argv[1]])
mcbShelf.close()

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
1、Notepad++插件,共30个,在npp.7.5.1,32位版本中使用正常,其它32位的Notepad++中应该都没问题。64位的Notepad++不要下。 2、其中Xml Tools 2.4.9.2 x86 文件下的dll文件需用放到安装目录Notepad++中(与notepad++.exe在同一目录)。 3、插件列表: 2017-11-11 14:26 APIs 2017-11-11 14:26 Config 2017-11-11 12:19 disabled 2017-11-11 14:26 Doc 2012-12-12 01:36 102,400 AutoSaveU.dll 2010-05-23 21:41 204,800 ComparePlugin.dll 2010-06-04 15:56 53,248 docMonitor.unicode.dll 2010-03-24 19:36 237,568 Explorer.dll 2010-06-04 15:56 110,592 FileSwitcher.dll 2010-06-04 15:59 3,584 guidguard.dll 2009-09-09 21:32 270,336 HexEditor.dll 2017-02-19 16:03 433,152 HTMLTag_unicode.dll 2007-10-20 20:22 17,428 HTMLTag-entities.ini 2017-10-06 14:02 278,016 JSMinNPP.dll 2017-08-29 08:43 98,992 mimeTools.dll 2010-06-04 16:02 282,624 MultiClipboard.dll 2010-06-04 16:02 50,176 NppAutoIndent.dll 2010-06-04 15:56 143,360 NppCCompletionPlugin.dll 2017-08-29 08:43 135,344 NppConverter.dll 2010-06-04 16:03 524,288 NppExec.dll 2017-08-29 08:43 21,680 NppExport.dll 2015-06-02 12:02 73,216 NPPJSONViewer.dll 2010-06-04 16:05 971,264 nppRegEx.dll 2015-05-30 00:44 206,848 NppSaveAsAdmin.dll 2010-06-04 16:06 487,424 NppSnippets.dll 2010-06-04 16:06 19,456 NPPSvn.dll 2009-02-08 03:06 229,376 NppTextFX.dll 2017-04-16 00:47 434,176 PluginManager.dll 2015-05-30 00:44 210,432 regrexplace.dll 2010-06-04 16:06 77,312 SourceSwitch.dll 2015-05-30 00:44 662,528 sql.dll 2010-06-04 16:06 4,096 switcher.dll 2010-06-04 16:06 180,224 TagsView.dll 2010-06-04 16:07 86,016 XBrackets.dll 2016-11-01 03:37 2,140,160 XMLTools.dll

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值