Skip to content

An AutoHotkey script that uses ChatGPT API to process text.

License

Notifications You must be signed in to change notification settings

IAmStoxe/ChatGPT-AutoHotkey-Utility

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT-AutoHotkey-Utility

✅ Download here

An AutoHotkey script that uses the ChatGPT API to process selected text.

image

image

How to use

  1. Install AutoHotkey v2. Note that this script will not work on earlier versions of AutoHotkey.
  2. Copy your OpenAI API key here (you may need to create a new secret key‍)
  3. Open ChatGPT AutoHotkey Utility.ahk using your favorite text editor
  4. Paste your OpenAI API key on the API_Key variable

image

  1. Launch ChatGPT AutoHotkey Utility.ahk
  2. Highlight a text that you want to process using ChatGPT API and press the back quote key to bring up the menu

image

(Image from emacs.stackexchange.com)

Customizing menu, prompts, and hotkey

You can customize prompts and the menu order by doing the following:

Menu

Under Menus and ChatGPT prompts, add a menu by adding this code:

MenuPopup.Add("&8 - Text_To_Appear", Function_To_Execute_When_Selected)

The character next to the "and" sign (&) is the hotkey for that particular menu that, when pressed, activates it.

You can also add a line separator using this code:

MenuPopup.Add()

Prompt

You can add a prompt using this code:

Function_To_Execute_When_Selected(*) {
    ChatGPT_Prompt := "Your prompt here:"
    Status_Message := "Status message that will show while processing the request"
    ProcessRequest(ChatGPT_Prompt, Status_Message, Retry_Status)
}

Hotkey

You can change the activation hotkey under Hotkey. See here for the list of possible hotkeys.

image

Credits

About

An AutoHotkey script that uses ChatGPT API to process text.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • AutoHotkey 100.0%