Code Monkey home page Code Monkey logo

ai-tools-ahk's Introduction

AI-Tools-AHK



Table of Contents

What's this?

This is a Windows tool that enables running custom OpenAI prompts on text in any window using global hotkeys.

i.e. Low-friction AI text editing ("spicy autocomplete") anywhere in Windows.

Where can it be used?

Almost anywhere in Windows where you can enter text.  

Installation

To get started, first download and extract the latest release .zip file. If you already have AutoHotkey installed, simply run AI-Tools.ahk. If not, use the .exe version, which allows you to use the script without having AutoHotkey installed. The script doesn't install anything and is portable, so you can run it from any location.

When you run the script for the first time, it will create a new settings.ini file in the same directory. This file contains the script's settings, which you can edit to change the hotkeys or add your own prompts.

Additionally, the script will prompt you to enter your OpenAI API key. If you don't have one yet, you can obtain an API key from OpenAI.

Usage

The default hotkeys and prompts are set to the following:

Ctrl+Shift+j - (Auto-select text - Fix spelling) - Auto selects the current line or paragraph and runs the "Fix Spelling" prompt and replaces it with the corrected version.

Ctrl+Shift+k - (Auto-select text - Prompt Menu) - Auto selects the current line or paragraph and opens the prompt menu.

Ctrl+Alt+Shift+k - (Manual-select text - Prompt Menu) - Opens the prompt menu to pick the prompt to run on the selected text.

Options

The settings.ini file contains the settings for the script. You can edit this file to change the prompts, the API mode and model to use, and individual model settings.

Start with windows

To have the script start when windows boots up, select "Start With Windows" from the tray icon.
 

Supported OpenAI APIs and Models

OpenAI

/v1/chat/completions (Default) - gpt-3.5-turbo
/v1/completions - text-davinci-003
/v1/edits - text-davinci-edit-001

Azure

/openai/deployments/***/completions - text-davinci-003

Compatibility

Tested on Windows 10 Pro 22H2 64-bit.

Credits

TheArkive (JXON_ahk2), iseahound (SetSystemCursor), and the AHK community.

ai-tools-ahk's People

Contributors

ecornell avatar you-n-g avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.