This is intended to be a useful reference for any AutoHotkey scriptwriter regardless of their experience. If you find any of the examples to be confusing please let me know so I can update them for clarity.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
SetBatchLines, -1 | |
#MaxHotkeysPerInterval 200 | |
#Include <VA> | |
; Create the slider window | |
Gui, Add, Progress, w100 h20 x0 y0 Range0-100 vVolSlider, 0 | |
Gui, Add, Text, w100 h20 x0 y0 vVolText BackgroundTrans Center +0x200, 0 | |
Gui, +AlwaysOnTop -Caption +ToolWindow | |
Gui, Show, Hide w100 h20 x0 y0, Volume |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import time | |
import ctypes | |
from ctypes import wintypes | |
import struct | |
import threading | |
# --- Windows API Setup --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
#Persistent | |
SetBatchLines, -1 | |
#Include <Socket> | |
/* | |
Launch AutoHotkey code from a StreamDeck efficiently using GET requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
SetBatchLines, -1 | |
#Include <Socket> | |
MATRIC_CONFIG_PATH := A_Desktop "\..\Documents\.matric\config.json" | |
APP_NAME := "AutoHotkey" | |
API_PORT := 50300 | |
RESP_PORT := 50301 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
import time | |
# HTTP | |
import BaseHTTPServer | |
import SimpleHTTPServer | |
import SocketServer | |
import threading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FixIE(Version=0, ExeName="") | |
{ | |
static Key := "Software\Microsoft\Internet Explorer" | |
. "\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION" | |
, Versions := {7:7000, 8:8888, 9:9999, 10:10001, 11:11001} | |
if Versions.HasKey(Version) | |
Version := Versions[Version] | |
if !ExeName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Code box to CodeQuickTester | |
// @namespace https://github.com/G33kDude | |
// @version 0.6 | |
// @description Adds a button to open AHKScript code boxes in CodeQuickTester | |
// @author GeekDude | |
// @match *://autohotkey.com/boards/viewtopic.php* | |
// @grant none | |
// @updateURL https://gist.github.com/G33kDude/d3d9e4fd7c739dab3527/raw/CodeBox2QuickTest.user.js | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Include precode.ahk | |
global W=20,H=20,b=[] | |
OnCellAlive(x,y){ | |
OnCellDead(x,y,1) | |
}OnCellDead(x,y,n=0){ | |
SetCell(x,y,b[x,y]:=n) | |
}SetupBoard(W,H) | |
r:: | |
i:=0,c=[] | |
while i<W*H,n=-s:=b[x:=mod(i,W),y:=i++//W],j=0{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Width := 20, Height := 20 | |
KeyMap := {"up": "up", "left": "left", "down": "down", "right": "right"} | |
Map := [], BlankSquares := [] | |
Loop, % Width | |
{ | |
x := A_Index | |
Loop, % Height | |
{ | |
y := A_Index |
NewerOlder