• Stars
    star
    118
  • Rank 299,923 (Top 6 %)
  • Language AutoHotkey
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Autohotkey scripts to make you more productive when using Windows.

Top AutoHotkey scripts to get more out of Windows

Useful AutoHotkey scripts (Windows) for quick lookup, in-line calculator, remap keys, battery alert, and more.

Explanation

http://gourav.io/blog/autohotkey-scripts-windows

How to run script

  • Download and install main program (one-time step) https://www.autohotkey.com
  • Download a script (*.ahk) or copy paste script content in a text file and then rename it with .ahk extension e.g. my-script.ahk
  • Right-click -> Run script.
    You can also run scripts by double-click, or do right-click ->Open with -> AutoHotkey
  • Bonus: you can right-click and Compile script to make it a standalone *.exe program which would run without needing to install AutoHotkey first.

scripts inside /drafts folder are not tested properly and might not work. The rest of the scripts should work fine.

Run script at startup

Method 1:

  • Open startup folder: open Run window by Win+R and then write shell:startup and enter.
  • It'll open explorer at something like this path: C:\Users\{username}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
  • Copy script (*.ahk) -> go to that Startup folder -> right-click and select Paste shortcut.

OR

Method 2:

  • Put script_autorun_startup.vbs at startup folder. Make sure to put the correct path of your ahk scripts in that file first.

Run script as Admin

Put it at the beginning of the script:

; check if it is running as Admin, if not reload as Admin. put at top
if not A_IsAdmin
{
   Run *RunAs "%A_ScriptFullPath%"
   ExitApp
}

OR

Check Run this program as administrator in:

autohothey.exe > properties > compatibility > settings

Docs

Keys and their symbols

Common things often found at the beginning of AutoHotkey scripts

#NoTrayIcon              ;if you don't want a tray icon for this AutoHotkey program.
#NoEnv                   ;Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance force    ;Skips the dialog box and replaces the old instance automatically
;;SendMode Input           ;I discovered this causes MouseMove to jump as if Speed was 0. (was Recommended for new scripts due to its superior speed and reliability.)
SetKeyDelay, 90          ;Any number you want (milliseconds)
CoordMode,Mouse,Screen   ;Initial state is Relative
CoordMode,Pixel,Screen   ;Initial state is Relative. Frustration awaits if you set Mouse to Screen and then use GetPixelColor because you forgot this line. There are separate ones for: Mouse, Pixel, ToolTip, Menu, Caret
MouseGetPos, xpos, ypos  ;Save initial position of mouse
WinGet, SavedWinId, ID, A     ;Save our current active window

;Set Up a Log File:
SetWorkingDir, %A_ScriptDir%  ;Set default directory to where this script file is located. (Note %% because it's expecting and unquoted string)
LogFile := "MyLog.txt"
FileAppend, This is a message`n, %LogFile%  ;Note the trailing (`n) to start a new line. This could instead be a leading (`n) if you want. (Note %% because it's expecting and unquoted string)

Community

More Repositories

1

Clone-Wars

100+ open-source clones of popular sites like Airbnb, Amazon, Instagram, Netflix, Tiktok, Spotify, Whatsapp, Youtube etc. See source code, demo links, tech stack, github stars.
27,759
star
2

Notion-Boost-browser-extension

Chrome & Firefox extension for Notion to add 20+ features like sticky outline, small text & full width by default, hide comments & help button, bolder text etc. Download here: https://gourav.io/notion-boost
JavaScript
504
star
3

Shortcut-Menu-Bar-VSCode-Extension

Add handy buttons like beautify, show opened files, save, toggle terminal, etc to the editor menu bar in VSCode. You can also create your own buttons with custom commands. VSCode Marketplace link: https://marketplace.visualstudio.com/items?itemName=jerrygoyal.shortcut-menu-bar
TypeScript
219
star
4

ChatGPT-Writer

Free Chrome extension that uses ChatGPT AI to generate entire emails or replies based on a few keywords that you input.
132
star
5

Personal-Site-Gourav.io

My personal site & blog made with NextJS, Typescript, Tailwind CSS, MDX, Notion as CMS. Deployed on Vercel : https://gourav.io
TypeScript
119
star
6

MinGW64

MinGW64 compiler for running and debugging C/C++ code in Visual Studio Code
C
63
star
7

Git-for-Dummies

Git commands cheat sheet to make that shift from GUI to terminal!
26
star
8

GimmeSummary-AI

Free chrome extension to summarize articles on the web using ChatGPT AI
16
star
9

Notepad-plus-plus-NppExec-plugin-Multiple-Languages-Compile-and-Run-Scripts

common Script to Compile and Run all languages code in Notepad++ using NppExec plugin
9
star
10

data-structure

various Data Structure C/C++ codes
C++
7
star
11

Flash-Clipboard

Multi copy paste tool for Windows, Mac and Linux. Minimalistic and pretty useful.
JavaScript
7
star
12

nextjs-template

Setup debugging, custom domains, Tailwind CSS, SEO, Typescript, ESLint, analytics, and much more to Next.js project
TypeScript
5
star
13

Popup-Notes-Chrome-Extension

The quickest way to take notes in Chrome. Fast and works offline, download here:
JavaScript
5
star
14

designopedia

Continuously adding the inspiration and checklist for good UI/UX design
4
star
15

jerrygoyal.github.io

My Professional Portfolio
CSS
4
star
16

Dynalist-Allstar-chrome-extension

Open 2 docs side by side in https://Dynalist.io and work on them simultaneously. More cool features on the way! Please note that it is an unofficial chrome extension.
JavaScript
4
star
17

howtofixcrowdstrikeissue.com

How to Fix CrowdStrike Issue?
TypeScript
2
star
18

PingPong-Game

this is a single-user early 90's classic game based on Java
Java
2
star
19

chatgpt-writer-site

TypeScript
2
star
20

User-Management-System-using-ASP.NET-MVC4

Login Signup and Html Table CRUD Operations with MySQL
C#
2
star
21

AirIndia-database-software

Windows database software which handle SQL queries using Java Swing and SQLite.
Java
1
star
22

Meditate-Me

Windows 8.1 metro app using XAML
C#
1
star
23

ASP.NET-MVC-4-Demo-Website

ASP.NET MVC 4 Demo Website which implements various features in MVC
C#
1
star
24

Redis-Using-Windows-Application

Implementation of Redis (in-memory data structure store) using Windows Application
C#
1
star
25

Python-CUI-Games

MIT edX Course 6.00.1x Introduction to Computer Science and Programming Using Python
Python
1
star
26

evrcare-backend

TypeScript
1
star
27

PowerShell-Scripts

Useful Powershell functions like colorize powershell, show git branch, single command for Git add commit push, touch command, up down key for partial search etc.
PowerShell
1
star
28

chrome-extension-template

plasmo tailwind ts react chrome extension
TypeScript
1
star
29

SSEApplication

project at leadsquared.com
C#
1
star
30

ChatGPT-Boost-Browser-Extension

ChatGPT Boost Browser Extension
1
star
31

Demo-Website-with-ASP.NET-Controls

added Registration Page with Validation controls, Login Page with authentication, GridView with insert update delete, UpdatePanel, MasterPage and More..
ASP
1
star
32

MVC4-Project-of-Forms-Authentication-with-Custom-Cookie-and-Encryption

MVC4 Project of Form Authentication with Custom Cookie and Encryption and Decryption of UserData inside Cookie
C#
1
star
33

.NET-Web-Api-With-Basic-Auth-API-Rate-Limiting-and-Session-Handling

This Web API project is built on .NET 4.6 and uses MySQL. This Project implements basic authentication for API, API rate limiting (60 calls/minute), API blocking, and single user session handling.
C#
1
star