Skip to content

Instantly share code, notes, and snippets.

@iohnatan
iohnatan / check-grammar.ahk
Created January 27, 2026 17:59
Autohotkey script to check the grammar of a text.
; Ctrl + Win + g
^#g::check_grammar_of_selected_text()
check_grammar_of_selected_text() {
; https://www.autohotkey.com/docs/v1/misc/Clipboard.htm#ClipboardAll
clip_saved := ClipboardAll
Send, ^c
selected_text := Clipboard
; restore clipboard.
Clipboard := clip_saved