Comments
Loading Comment Form...
Loading Comment Form...
When developing or reading something in a browser, I often copy and paste text into ChatGPT to ask questions.
Finding this cumbersome, I created a way to instantly send selected text to GPT.
This requires installing the official ChatGPT app.
Copy the following:
#Requires AutoHotkey v2.0
; ────────────────────────────────────────────────
; Hotkey: Ctrl + Shift + q
; Step 1 : コピー
; Step 2 : ChatGPT デスクトップ アプリのクイックバー呼び出し
; Step 3 : ペーストして送信
; ────────────────────────────────────────────────
^+q:: {
ClipSaved := ClipboardAll() ; 既存クリップボードを退避
Send "^c" ; 選択テキストをコピー
ClipWait 0.5 ; コピー完了待ち
Send "^+g" ; ChatGPT アプリのオーバーレイを開く :contentReference[oaicite:0]{index=0}
Sleep 500 ; ウインドウが出るまで 0.5 秒ほど待機
Send "^v" ; 貼り付け
Clipboard := ClipSaved ; クリップボードを元に戻す
}
return
Install and launch AutoHotkey v2: https://www.autohotkey.com → Download → Select v2 Installer. Launch after installation.
Save the above code to a file, such as send_to_chatgpt.ahk.
Double-click to run in the background.
For automatic startup, place a shortcut in the shell:startup folder.
Change the ChatGPT app shortcut (this is to avoid conflicts with other app shortcuts). ChatGPT → Settings → App → Change the Hot Key to Shift+ctrl+g.
Now, pressing Shift+ctrl+g will instantly send text to ChatGPT, from anywhere.
If pasting doesn't work, try increasing the sleep value to around 1000.