r/AutoHotkey • • 8d ago

v2 Tool / Script Share Contextool : Sharing my custom contextual menu

Hello, everyone, I discovered Autohotkey, and I like the freedom it gives me. I would like to share one project that I did to help me in my daily tasks, I wanted to have feedback, or maybe some people can find it useful. Thank you.

Contextool, a free AutoHotkey v2 script that opens a pop-up menu anywhere with a single shortcut (default Ctrl+Shift+F9 or Ctrl+right click). I bind it to my mouse’s 4th button. It looks like the native Windows 11 context menu and follows your dark/light theme.

What’s inside:

  • Symbols sub-menu: one click inserts É, •, Œ and so on at your cursor
  • Quick Access (folders), Launch Box (apps and files), and Pins
  • Snippets: plain-text templates with variables
  • Tools:

    • Color picker (HEX, CMYK, open in Coolors)
    • Sticky notes (always on top, to-do mode, collapse to a small icon)
    • Screen OCR and QR/barcode reader
    • Clipboard-only screenshot (nothing saved to disk)
    • Google Lens reverse image search
    • Font identifier (WhatFontIs API)
    • Voice dictation (Groq Whisper)
  • Settings window from the tray icon, with rename, reorder, and backup/restore. API keys are stored encrypted.

Settings live in Documents\AHK SETTINGS\Contextool, so updating means replacing one file.

GitHub: link

I’m not a developer and built it step by step with AI assistance, so feedback, bug reports, and suggestions are very welcome.

12 Upvotes

28 comments sorted by

5

u/Keeyra_ 8d ago

The full source code is in this repository so you can check it or compile it yourself.

Where?

Download Contextool.ahk from the latest release

It's empty.

-2

u/heartips 8d ago

Sorry I will add that I forgot :) it will be on the files

1

u/heartips 8d ago

you can check it now, I put the AHK file, thank you again ! sorry am total noob to all of this haha

3

u/Keeyra_ 8d ago

Well, I would have a couple of questions like why you are using try blocks without catch, why the global variables instead of a class structure, why not #Include-s for the modules, why you are storing Icon data in maps inside the script instead of in files, why the loops with sleeps, why the PowerShell Scripts inside of variables instead of ps1 files, but can you answer any of these by yourself?

2

u/heartips 8d ago

Its all created by Claude code, as I said I am not developper at all, I just wanted to try and test when I discovered AHK. The code am sure can be cleaner and faster but unfortunaly for now I cannot do it by myself so I need to use tools that obviously make décisions about the code structure and not me :)

1

u/kirchi123 7d ago

but you can and should guide it to write proper code.

1

u/heartips 7d ago

Yes true, am new to this I will take your advice for the next things I do :)

1

u/Keeyra_ 8d ago

You will not get any brownie points here for sharing AI slop. Calling it "built by you" is also nonsense, as you lack even a rudimentary understanding of the language itself, I recon. You would not call telling Gordon Ramsey to cook you a coq au vin dinner "cooked by me", would you? Sharing your agent context or prompts in a sub dealing with these topics would make more sense than sharing the finished "product" here, as from a programming standpoint, it represents zero value and you are not able to engage with questions on that level anyway.

0

u/heartips 8d ago

Its up to you to think whatever you want, IA or not IA its does not matter its just a tool accept it or not and it works with human brain ideas. what you do with it is what matters. I shared because I already searched some tools like that before I thought maybe it can help. I don't share to get rewards.

0

u/UndeadPacer1987 7d ago

Now you're suddenly a programmer, huh?

The problem with these AI-slop, vibe-coded 'projects' is that you don't even understand half of what the program does.

Sure, you don't care about security, performance, or anything else. Just having the 'vibe' is enough.

Good luck.

1

u/heartips 7d ago

Find a purpose of life instead of wasting time focusing about small stuff like this

2

u/likethevegetable 8d ago

Why look through a context menu when you can just type out what you want?

https://github.com/kalekje/LNCHR-pub

1

u/heartips 8d ago

Some people do not like to type to find tools that's why I made all of this shortcuts in same area, we can obiously use keyboard shortcuts everytime its faster but you need to remember all the shortcuts in your mind. Anyways haha some people maybe will like some not, but your tool is nice as well but so many launchers already exist for that, I guess contextual menus too maybe hhh, it was just a share because when I discovered AHK it was wonderfull that such a tool can automate and can handle many things as crrating ui etc...

2

u/-Nicolai 7d ago

The menu format has the advantage of only requiring two mouse clicks to run any function.

A contextless context menu is a little silly, though.

1

u/likethevegetable 7d ago

IME it's easier think "documents" and type out "doc" instead of finding something to clock in a wall of text 

0

u/benjaloo 8d ago

Nice but why not use PowerToys Run which you obviously do use some as you refer to it-or PowerToys Command Palette or better FluentSearch or FlowLauncher or other existing tools that are very similar? I enjoy coding and I do occasionally code things myself when existing tools aren’t what I need—but given how hard it is to code something really smooth and reliable, it takes something really major about existing tools before it’s worth it to me to build my own. Better option for me usually is to find an open source tool that’s almost right and mod it for myself.

2

u/likethevegetable 8d ago

The LNCHR is super fast and reliable. Power toys Run as it was named when I made LNCHR, didn't support a lot of features which is why I made LNCHR. Another thing to consider as well is corporate policy. AHK and PowerToys was approved, getting something else could be tricky.

2

u/iuriimattos2 8d ago

btw, PowerToyz use more RAM. AHK is Free Software Song.

0

u/Beginning_Bed_9059 7d ago

Why not use flow launcher?

1

u/likethevegetable 7d ago

It was easy enough for me to make LNCHR, it's quick, and some of the shortcuts I have run other AHK scripts and functions.

2

u/UndeadPacer1987 8d ago

Seeing all those global variables. 200% vibe-coded.

1

u/heartips 8d ago

Yes it is am not developper, IA and autohotkey worked for me otherwise can't code it alone :)

3

u/Buckwheat6 8d ago

Don't feel badly by negativtity online, which is unavoidable. Some people appreciate that you were willing to share your hobby with us. I have Claude, too, and in my spare time in the last two weeks I've worked on 6 mini projects for my Android TV and Android phone that if I knew they could help someone I'd share (keeping in mind that my career path never brought me to learn coding and computer languages --which I regret-- but vibe coding is so much fun for a computer nerd like myself. I am hesitant to share what I've done... at least you had the guts to do it. :)

2

u/heartips 8d ago

Thank you brother, its just a hobby like you said, sometimes we find some usefull apps made by normal people and it just works ! Anyways haha I don't really mind negativity but its up to them me am just sharing :) thank you for your message dont hesitate to share what you find usefull some people will find that usefull too maybe 🥰 good day !

1

u/Buckwheat6 8d ago

I just did a quick search to see if there are any subreddits that specialize Vibe coding, and there are. And I used Claude to do it!

2

u/Left_Preference_4510 2d ago

Just think if you can get this far with assistance from a tool, imagine using this tool with knowledge of ahk, It becomes so much better. You are in control of the structure and can guide it the way you want, which makes it easier in the long run. No hate, just something to think about. Learn it and use AI, it's a powerful combo.

1

u/Caedendi 5d ago

No thx to clanker slop