MenuClip - AutoHotkey Clipboard Manager [Ditto-style]

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
takanuva15
Posts: 24
Joined: 22 Nov 2019, 23:05
Location: USA
Contact:

MenuClip - AutoHotkey Clipboard Manager [Ditto-style]

03 May 2020, 15:12

Hi all,

MenuClip is the first script that I've posted to the forum. It's basically a super minimal version of Ditto; I made this to help me get acquainted with writing large scripts in Autohotkey.

Features:
  • Stores text clips into memory (doesn't support images or files)
  • Displays stored clips in a context menu via Ctrl+Shift+V
  • Stores 100 clips by default. (Afterwards, it will delete the oldest one and insert the newest clip at the top)
  • Has configurable options (eg shortcut, number of clips to store, gui size)
  • Can specify editors that use Shift+Insert for pasting instead of Ctrl+V
  • Has a dark theme option (based on IntelliJ dark theme; can be automatically swapped in at a specified time)
  • Saves clips to file so that they are restored when the script is restarted
  • Has a search box to filter clips list
Demo (sorry I don't know how to scale this down):
Image

Dark theme:
Image

The script is in maintenance so I'm not adding new features (just use Ditto for a professional clipboard manager), but I will fix critical bugs if you find them (please post an issue on the GitHub repo).

Obviously there will be bugs, and I know there is some incorrect code floating around in the GUI-related classes, so this script is mostly a primer to help out other people getting started with Autohotkey. (With that being said, I do use the script in my work just for the sake of the fact that I wrote it)

PS. I did my best to use object-oriented design in the structure of the classes.

Links:
  • MenuClip source code on GitHub
  • Story backlog [trello.com/b/wD95pQRR/menuclip-kanban-board]
  • UML (may be out-of-date) [lucidchart.com/documents/edit/8b32b807-f1e5-4cb6-afa5-1380075d861b/0_0?beaconFlowId=FC88485F5AAE657C]

Currently running AutoHotkey v1.1.33.10 on a Windows 10 machine. (Also testing v2 with v2.0-a133)
All code I post on the AutoHotkey forum is under the MIT License unless otherwise noted in the post. (Basically, it's free for anyone to use/modify, but please credit me if you decide to use it as part of another post or project that will be public.)
"The tomorrow of yesterday is today, so don't make an excuse to delay!"
User avatar
RAFACN
Posts: 12
Joined: 20 May 2016, 10:06
Location: BRAZIL

Re: MenuClip - AutoHotkey Clipboard Manager [Ditto-style]

30 May 2020, 21:51

nice!
User avatar
SirSocks
Posts: 360
Joined: 26 Oct 2018, 08:14

Re: MenuClip - AutoHotkey Clipboard Manager [Ditto-style]

31 May 2020, 17:48

Looks great! I'll give it a try.
jcreel303
Posts: 8
Joined: 10 Mar 2021, 16:11

Re: MenuClip - AutoHotkey Clipboard Manager [Ditto-style]

26 Mar 2021, 15:18

Hello,
Great project, it's working for me quite well after fiddling around with it

It would be extremely useful if I could activate this with only one key press (F3 specifically is where I would put it) but I don't see any way to get into the source code to do this.

I have an on screen keyboard that holds down the ctrl and shift buttons until I press them again which makes it difficult to use this if I want to use my on screen keyboard. It works extremely well with my physical keyboard so far though.

Please let me know if this would be possible for me to make this adjustment.

Cheers
User avatar
rommmcek
Posts: 1480
Joined: 15 Aug 2014, 15:18

Re: MenuClip - AutoHotkey Clipboard Manager [Ditto-style]

26 Mar 2021, 20:49

Try to right click MenuClip icon and select Edit Configuration or
try replacing SHOW_MENU_HOTKEY=^+v with SHOW_MENU_HOTKEY=F3 in the config.ini file directly.
jcreel303
Posts: 8
Joined: 10 Mar 2021, 16:11

Re: MenuClip - AutoHotkey Clipboard Manager [Ditto-style]

08 Apr 2021, 00:01

Thank you for pointing me in the right direction, this worked like a charm!

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: fertalizer and 227 guests